blob: aa99fd1f7109f03ef24085dd2ab37e5eb7c72534 [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
9 of memory corruptions.
10
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
20 help
21 Fill the pages with poison patterns after free_pages() and verify
22 the patterns before alloc_pages(). This results in a large slowdown,
23 but helps to find certain types of memory corruptions.
24
25 This option cannot enalbe with hibernation. Otherwise, it will get
26 wrong messages for memory corruption because the free pages are not
27 saved to the suspend image.