[patch 10/16] s390: kernel stack overflow panic.
From: Heiko Carstens <[email protected]>
die() doesn't return, therefore print registers and then panic instead.
Signed-off-by: Martin Schwidefsky <[email protected]>
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-06-17 21:48:29.000000000 +0200
+++ linux-2.6-patched/arch/s390/kernel/traps.c 2005-06-21 17:36:52.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.");
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]