blob: 4b2443254de260d2e05cdecb8d3eea903d91734f [file] [log] [blame]
Akinobu Mitaee3b4292009-04-02 16:56:30 -07001config DEBUG_PAGEALLOC
2 bool "Debug page memory allocations"
Akinobu Mita7bc32f62011-03-22 16:32:46 -07003 depends on DEBUG_KERNEL
4 depends on !HIBERNATION || ARCH_SUPPORTS_DEBUG_PAGEALLOC && !PPC && !SPARC
Vegard Nossum7d46d9e2008-04-04 00:51:41 +02005 depends on !KMEMCHECK
Akinobu Mita7bc32f62011-03-22 16:32:46 -07006 select PAGE_POISONING if !ARCH_SUPPORTS_DEBUG_PAGEALLOC
Stanislaw Gruszkac0a32fc52012-01-10 15:07:28 -08007 select PAGE_GUARD if ARCH_SUPPORTS_DEBUG_PAGEALLOC
Akinobu Mitaee3b4292009-04-02 16:56:30 -07008 ---help---
9 Unmap pages from the kernel linear mapping after free_pages().
10 This results in a large slowdown, but helps to find certain types
Frans Pop22f8b452009-07-24 05:31:17 +020011 of memory corruption.
Akinobu Mitaee3b4292009-04-02 16:56:30 -070012
Akinobu Mita7bc32f62011-03-22 16:32:46 -070013 For architectures which don't enable ARCH_SUPPORTS_DEBUG_PAGEALLOC,
14 fill the pages with poison patterns after free_pages() and verify
15 the patterns before alloc_pages(). Additionally,
16 this option cannot be enabled in combination with hibernation as
17 that would result in incorrect warnings of memory corruption after
18 a resume because free pages are not saved to the suspend image.
19
Akinobu Mita6a11f752009-03-31 15:23:17 -070020config WANT_PAGE_DEBUG_FLAGS
21 bool
22
23config PAGE_POISONING
Akinobu Mita7bc32f62011-03-22 16:32:46 -070024 bool
Akinobu Mita6a11f752009-03-31 15:23:17 -070025 select WANT_PAGE_DEBUG_FLAGS
Stanislaw Gruszkac0a32fc52012-01-10 15:07:28 -080026
27config PAGE_GUARD
28 bool
29 select WANT_PAGE_DEBUG_FLAGS