lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <1193788979.5623.43.camel@localhost.localdomain> Date: Tue, 30 Oct 2007 20:02:59 -0400 From: Steven Rostedt <rostedt@...dmis.org> To: LKML <linux-kernel@...r.kernel.org> Cc: Linus Torvalds <torvalds@...ux-foundation.org>, Andrew Morton <akpm@...ux-foundation.org>, Ingo Molnar <mingo@...e.hu>, Christoph Hellwig <hch@...radead.org>, Daniel Walker <dwalker@...sta.com> Subject: [PATCH] dump_stack on panic Is there any reason why we don't do a dump_stack on panic? I find this soooo useful in the -rt patch, where Ingo has placed a dump_stack on panic. With mainline, when I hit a panic, I don't always know how it got there. So I find myself adding the dump_stack and trying to create the bug again. This patch simply adds dump_stack to panic. Signed-off-by: Steven Rostedt <rostedt@...dmis.org> diff --git a/kernel/panic.c b/kernel/panic.c index 6f6e03e..bd481d7 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -78,6 +78,7 @@ NORET_TYPE void panic(const char * fmt, ...) vsnprintf(buf, sizeof(buf), fmt, args); va_end(args); printk(KERN_EMERG "Kernel panic - not syncing: %s\n",buf); + dump_stack(); bust_spinlocks(0); /* - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists