public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 7/11] s390: kernel stack overflow panic.
@ 2005-06-01 18:03 Martin Schwidefsky
  0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2005-06-01 18:03 UTC (permalink / raw)
  To: akpm, linux-kernel

[patch 7/11] s390: kernel stack overflow panic.

From: Heiko Carstens <heiko.carstens@de.ibm.com>

die() doesn't return, therefore print registers and then panic instead.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

diffstat:
 arch/s390/kernel/traps.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -urpN linux-2.6/arch/s390/kernel/traps.c linux-2.6-patched/arch/s390/kernel/traps.c
--- linux-2.6/arch/s390/kernel/traps.c	2005-03-02 08:37:55.000000000 +0100
+++ linux-2.6-patched/arch/s390/kernel/traps.c	2005-06-01 19:43:19.000000000 +0200
@@ -668,7 +668,10 @@ asmlinkage void space_switch_exception(s
 
 asmlinkage void kernel_stack_overflow(struct pt_regs * regs)
 {
-	die("Kernel stack overflow", regs, 0);
+	bust_spinlocks(1);
+	printk("Kernel stack overflow.\n");
+	show_regs(regs);
+	bust_spinlocks(0);
 	panic("Corrupt kernel stack, can't continue.");
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-01 18:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-01 18:03 [patch 7/11] s390: kernel stack overflow panic Martin Schwidefsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox