aboutsummaryrefslogtreecommitdiff
path: root/mm/debug-pagealloc.c
AgeCommit message (Collapse)AuthorFilesLines
2011-12-06mm, x86: Remove debug_pagealloc_enabledStanislaw Gruszka1-3/+0
When (no)bootmem finish operation, it pass pages to buddy allocator. Since debug_pagealloc_enabled is not set, we will do not protect pages, what is not what we want with CONFIG_DEBUG_PAGEALLOC=y. To fix remove debug_pagealloc_enabled. That variable was introduced by commit 12d6f21e "x86: do not PSE on CONFIG_DEBUG_PAGEALLOC=y" to get more CPA (change page attribude) code testing. But currently we have CONFIG_CPA_DEBUG, which test CPA. Signed-off-by: Stanislaw Gruszka <[email protected]> Acked-by: Mel Gorman <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
2011-10-31debug-pagealloc: add support for highmem pagesAkinobu Mita1-34/+10
This adds support for highmem pages poisoning and verification to the debug-pagealloc feature for no-architecture support. [[email protected]: remove unneeded preempt_disable/enable] Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2011-10-31mm/debug-pagealloc.c: use memchr_invAkinobu Mita1-5/+3
Use newly introduced memchr_inv() for page verification. Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2011-10-31mm/debug-pagealloc.c: use plain __ratelimit() instead of printk_ratelimit()Akinobu Mita1-1/+3
printk_ratelimit() should not be used, because it shares ratelimiting state with all other unrelated printk_ratelimit() callsites. Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-04-01generic debug pageallocAkinobu Mita1-0/+129
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 <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>