]>
Commit | Line | Data |
---|---|---|
ee3b4290 AM |
1 | config DEBUG_PAGEALLOC |
2 | bool "Debug page memory allocations" | |
7bc32f6f AM |
3 | depends on DEBUG_KERNEL |
4 | depends on !HIBERNATION || ARCH_SUPPORTS_DEBUG_PAGEALLOC && !PPC && !SPARC | |
7d46d9e6 | 5 | depends on !KMEMCHECK |
7bc32f6f | 6 | select PAGE_POISONING if !ARCH_SUPPORTS_DEBUG_PAGEALLOC |
c0a32fc5 | 7 | select PAGE_GUARD if ARCH_SUPPORTS_DEBUG_PAGEALLOC |
ee3b4290 AM |
8 | ---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 | |
22f8b458 | 11 | of memory corruption. |
ee3b4290 | 12 | |
7bc32f6f AM |
13 | 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 | ||
6a11f75b AM |
20 | config WANT_PAGE_DEBUG_FLAGS |
21 | bool | |
22 | ||
23 | config PAGE_POISONING | |
7bc32f6f | 24 | bool |
6a11f75b | 25 | select WANT_PAGE_DEBUG_FLAGS |
c0a32fc5 SG |
26 | |
27 | config PAGE_GUARD | |
28 | bool | |
29 | select WANT_PAGE_DEBUG_FLAGS |