From 4eace7df06d891a5ee709b51d75428e7c10a178c Mon Sep 17 00:00:00 2001 From: Prasad Sodagudi Date: Thu, 25 Feb 2016 12:57:06 +0530 Subject: debug-pagealloc: Panic on pagealloc corruption Currently, we just print the pagealloc corruption warnings and proceed. Sometimes, we are getting multiple errors printed down the line. It will be good to get the device state as early as possible when we get the first pagealloc error. Change-Id: I79155ac8a039b30a3a98d5dd1384d3923082712f Signed-off-by: Subbaraman Narayanamurthy Signed-off-by: Prasad Sodagudi --- mm/debug-pagealloc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'mm/debug-pagealloc.c') diff --git a/mm/debug-pagealloc.c b/mm/debug-pagealloc.c index feae18981174..de50b1b9a791 100644 --- a/mm/debug-pagealloc.c +++ b/mm/debug-pagealloc.c @@ -110,6 +110,7 @@ static void check_poison_mem(unsigned char *mem, size_t bytes) print_hex_dump(KERN_ERR, "", DUMP_PREFIX_ADDRESS, 16, 1, start, end - start + 1, 1); + BUG_ON(PANIC_CORRUPTION); dump_stack(); } -- cgit v1.2.3