-
- Downloads
generic debug pagealloc
CONFIG_DEBUG_PAGEALLOC is now supported by x86, powerpc, sparc64, and s390. This patch implements it for the rest of the architectures by filling the pages with poison byte patterns after free_pages() and verifying the poison patterns before alloc_pages(). This generic one cannot detect invalid page accesses immediately but invalid read access may cause invalid dereference by poisoned memory and invalid write access can be detected after a long delay. Signed-off-by:Akinobu Mita <akinobu.mita@gmail.com> Cc: <linux-arch@vger.kernel.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/avr32/mm/fault.c 0 additions, 18 deletionsarch/avr32/mm/fault.c
- arch/powerpc/Kconfig 3 additions, 0 deletionsarch/powerpc/Kconfig
- arch/powerpc/Kconfig.debug 1 addition, 0 deletionsarch/powerpc/Kconfig.debug
- arch/s390/Kconfig 3 additions, 0 deletionsarch/s390/Kconfig
- arch/s390/Kconfig.debug 1 addition, 0 deletionsarch/s390/Kconfig.debug
- arch/sparc/Kconfig 3 additions, 0 deletionsarch/sparc/Kconfig
- arch/sparc/Kconfig.debug 2 additions, 1 deletionarch/sparc/Kconfig.debug
- arch/x86/Kconfig 3 additions, 0 deletionsarch/x86/Kconfig
- arch/x86/Kconfig.debug 1 addition, 0 deletionsarch/x86/Kconfig.debug
- include/linux/mm_types.h 4 additions, 0 deletionsinclude/linux/mm_types.h
- include/linux/page-debug-flags.h 30 additions, 0 deletionsinclude/linux/page-debug-flags.h
- include/linux/poison.h 3 additions, 0 deletionsinclude/linux/poison.h
- lib/Kconfig.debug 1 addition, 0 deletionslib/Kconfig.debug
- mm/Kconfig.debug 17 additions, 0 deletionsmm/Kconfig.debug
- mm/Makefile 1 addition, 0 deletionsmm/Makefile
- mm/debug-pagealloc.c 129 additions, 0 deletionsmm/debug-pagealloc.c
Loading
Please register or sign in to comment