Akinobu Mita | ee3b429 | 2009-04-02 16:56:30 -0700 | [diff] [blame] | 1 | config DEBUG_PAGEALLOC |
| 2 | bool "Debug page memory allocations" |
Akinobu Mita | 7bc32f6 | 2011-03-22 16:32:46 -0700 | [diff] [blame] | 3 | depends on DEBUG_KERNEL |
| 4 | depends on !HIBERNATION || ARCH_SUPPORTS_DEBUG_PAGEALLOC && !PPC && !SPARC |
Vegard Nossum | 7d46d9e | 2008-04-04 00:51:41 +0200 | [diff] [blame] | 5 | depends on !KMEMCHECK |
Akinobu Mita | 7bc32f6 | 2011-03-22 16:32:46 -0700 | [diff] [blame] | 6 | select PAGE_POISONING if !ARCH_SUPPORTS_DEBUG_PAGEALLOC |
Stanislaw Gruszka | c0a32fc5 | 2012-01-10 15:07:28 -0800 | [diff] [blame] | 7 | select PAGE_GUARD if ARCH_SUPPORTS_DEBUG_PAGEALLOC |
Akinobu Mita | ee3b429 | 2009-04-02 16:56:30 -0700 | [diff] [blame] | 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 |
Frans Pop | 22f8b45 | 2009-07-24 05:31:17 +0200 | [diff] [blame] | 11 | of memory corruption. |
Akinobu Mita | ee3b429 | 2009-04-02 16:56:30 -0700 | [diff] [blame] | 12 | |
Akinobu Mita | 7bc32f6 | 2011-03-22 16:32:46 -0700 | [diff] [blame] | 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 | |
Akinobu Mita | 6a11f75 | 2009-03-31 15:23:17 -0700 | [diff] [blame] | 20 | config WANT_PAGE_DEBUG_FLAGS |
| 21 | bool |
| 22 | |
| 23 | config PAGE_POISONING |
Akinobu Mita | 7bc32f6 | 2011-03-22 16:32:46 -0700 | [diff] [blame] | 24 | bool |
Akinobu Mita | 6a11f75 | 2009-03-31 15:23:17 -0700 | [diff] [blame] | 25 | select WANT_PAGE_DEBUG_FLAGS |
Stanislaw Gruszka | c0a32fc5 | 2012-01-10 15:07:28 -0800 | [diff] [blame] | 26 | |
| 27 | config PAGE_GUARD |
| 28 | bool |
| 29 | select WANT_PAGE_DEBUG_FLAGS |