| Akinobu Mita | ee3b429 | 2009-04-02 16:56:30 -0700 | [diff] [blame] | 1 | config DEBUG_PAGEALLOC | 
 | 2 | 	bool "Debug page memory allocations" | 
 | 3 | 	depends on DEBUG_KERNEL && ARCH_SUPPORTS_DEBUG_PAGEALLOC | 
 | 4 | 	depends on !HIBERNATION || !PPC && !SPARC | 
| Vegard Nossum | 7d46d9e | 2008-04-04 00:51:41 +0200 | [diff] [blame] | 5 | 	depends on !KMEMCHECK | 
| Akinobu Mita | ee3b429 | 2009-04-02 16:56:30 -0700 | [diff] [blame] | 6 | 	---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 Pop | 22f8b45 | 2009-07-24 05:31:17 +0200 | [diff] [blame] | 9 | 	  of memory corruption. | 
| Akinobu Mita | ee3b429 | 2009-04-02 16:56:30 -0700 | [diff] [blame] | 10 |  | 
| Akinobu Mita | 6a11f75 | 2009-03-31 15:23:17 -0700 | [diff] [blame] | 11 | config WANT_PAGE_DEBUG_FLAGS | 
 | 12 | 	bool | 
 | 13 |  | 
 | 14 | config 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 Pop | 22f8b45 | 2009-07-24 05:31:17 +0200 | [diff] [blame] | 20 | 	---help--- | 
| Akinobu Mita | 6a11f75 | 2009-03-31 15:23:17 -0700 | [diff] [blame] | 21 | 	   Fill the pages with poison patterns after free_pages() and verify | 
 | 22 | 	   the patterns before alloc_pages(). This results in a large slowdown, | 
| Frans Pop | 22f8b45 | 2009-07-24 05:31:17 +0200 | [diff] [blame] | 23 | 	   but helps to find certain types of memory corruption. | 
| Akinobu Mita | 6a11f75 | 2009-03-31 15:23:17 -0700 | [diff] [blame] | 24 |  | 
| Frans Pop | 22f8b45 | 2009-07-24 05:31:17 +0200 | [diff] [blame] | 25 | 	   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. |