[PATCH 24/31] x86: MCE: Don't print backtrace on machine checks with DEBUG_BUGVERBOSE

From: Andi Kleen
Date: Tue May 26 2009 - 20:01:01 EST

From: Andi Kleen <ak@xxxxxxxxxxxxxxx>

CONFIG_DEBUG_BUGVERBOSE prints backtraces on panics, but we don't
want that on machine checks because these are not kernel bugs.
So disable it here.

Signed-off-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>
kernel/panic.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/kernel/panic.c b/kernel/panic.c
index 984b3ec..fa3b607 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -71,7 +71,8 @@ NORET_TYPE void panic(const char * fmt, ...)
printk(KERN_EMERG "Kernel panic - not syncing: %s\n",buf);
- dump_stack();
+ if (!strstr(fmt, "Machine check"))
+ dump_stack();


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/