Skip to contentSkip to conversation

s390: kernel stack overflow panic.

PATCH In review Martin Schwidefsky 1 participant 1 message Jun 21, 2005 s390

lore
Share & tools
lore
#0 lore raw

PATCH 10/16 s390: kernel stack overflow panic.

[patch 10/16] s390: kernel stack overflow panic.

From: Heiko Carstens <[email protected]>

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

diffstat:

 arch/s390/kernel/traps.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)
arch/s390/kernel/traps.c +4 -1
diff -urpN linux-2.6/arch/s390/kernel/traps.c linux-2.6-patched/arch/s390/kernel/traps.c
@@ -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.");
 }