Kconfig.debug 908 B

12345678910111213141516171819202122232425
  1. config DEBUG_PAGEALLOC
  2. bool "Debug page memory allocations"
  3. depends on DEBUG_KERNEL
  4. depends on !HIBERNATION || ARCH_SUPPORTS_DEBUG_PAGEALLOC && !PPC && !SPARC
  5. depends on !KMEMCHECK
  6. select PAGE_POISONING if !ARCH_SUPPORTS_DEBUG_PAGEALLOC
  7. ---help---
  8. Unmap pages from the kernel linear mapping after free_pages().
  9. This results in a large slowdown, but helps to find certain types
  10. of memory corruption.
  11. For architectures which don't enable ARCH_SUPPORTS_DEBUG_PAGEALLOC,
  12. fill the pages with poison patterns after free_pages() and verify
  13. the patterns before alloc_pages(). Additionally,
  14. this option cannot be enabled in combination with hibernation as
  15. that would result in incorrect warnings of memory corruption after
  16. a resume because free pages are not saved to the suspend image.
  17. config WANT_PAGE_DEBUG_FLAGS
  18. bool
  19. config PAGE_POISONING
  20. bool
  21. select WANT_PAGE_DEBUG_FLAGS