]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] s390: kernel stack overflow panic
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 22 Jun 2005 00:16:28 +0000 (17:16 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 02:07:33 +0000 (19:07 -0700)
die() doesn't return, therefore print registers and then panic instead.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/s390/kernel/traps.c

index 8b90e9528b911b882f04b9e686e2f727d0dad419..ca34b6f34b38e9efc78fc2a418d8390d9174233f 100644 (file)
@@ -668,7 +668,10 @@ asmlinkage void space_switch_exception(struct pt_regs * regs, long int_code)
 
 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.");
 }