xref: /linux/mm/Kconfig.debug (revision b8bb76713ec50df2f11efee386e16f93d51e1076)
1config WANT_PAGE_DEBUG_FLAGS
2	bool
3
4config PAGE_POISONING
5	bool "Debug page memory allocations"
6	depends on DEBUG_KERNEL && !ARCH_SUPPORTS_DEBUG_PAGEALLOC
7	depends on !HIBERNATION
8	select DEBUG_PAGEALLOC
9	select WANT_PAGE_DEBUG_FLAGS
10	help
11	   Fill the pages with poison patterns after free_pages() and verify
12	   the patterns before alloc_pages(). This results in a large slowdown,
13	   but helps to find certain types of memory corruptions.
14
15	   This option cannot enalbe with hibernation. Otherwise, it will get
16	   wrong messages for memory corruption because the free pages are not
17	   saved to the suspend image.
18