blob: af7cfb43d2f0526019b86fa35a75202aae222d1c [file] [log] [blame]
Akinobu Mitaee3b4292009-04-02 16:56:30 -07001config DEBUG_PAGEALLOC
2 bool "Debug page memory allocations"
3 depends on DEBUG_KERNEL && ARCH_SUPPORTS_DEBUG_PAGEALLOC
4 depends on !HIBERNATION || !PPC && !SPARC
Vegard Nossum7d46d9e2008-04-04 00:51:41 +02005 depends on !KMEMCHECK
Akinobu Mitaee3b4292009-04-02 16:56:30 -07006 ---help---
7 Unmap pages from the kernel linear mapping after free_pages().
8 This results in a large slowdown, but helps to find certain types
Frans Pop22f8b452009-07-24 05:31:17 +02009 of memory corruption.
Akinobu Mitaee3b4292009-04-02 16:56:30 -070010
Akinobu Mita6a11f752009-03-31 15:23:17 -070011config WANT_PAGE_DEBUG_FLAGS
12 bool
13
14config PAGE_POISONING
15 bool "Debug page memory allocations"
16 depends on DEBUG_KERNEL && !ARCH_SUPPORTS_DEBUG_PAGEALLOC
17 depends on !HIBERNATION
18 select DEBUG_PAGEALLOC
19 select WANT_PAGE_DEBUG_FLAGS
Frans Pop22f8b452009-07-24 05:31:17 +020020 ---help---
Akinobu Mita6a11f752009-03-31 15:23:17 -070021 Fill the pages with poison patterns after free_pages() and verify
22 the patterns before alloc_pages(). This results in a large slowdown,
Frans Pop22f8b452009-07-24 05:31:17 +020023 but helps to find certain types of memory corruption.
Akinobu Mita6a11f752009-03-31 15:23:17 -070024
Frans Pop22f8b452009-07-24 05:31:17 +020025 This option cannot be enabled in combination with hibernation as
26 that would result in incorrect warnings of memory corruption after
27 a resume because free pages are not saved to the suspend image.