From 0337b7ebfcb8efb4ea0a9f2b2f284217a1c0e62d Mon Sep 17 00:00:00 2001 From: Andy Lutomirski Date: Mon, 25 Nov 2019 22:37:44 -0800 Subject: x86/traps: die() instead of panicking on a double fault A double fault has a decent chance of being recoverable by killing the offending thread. Use die() so that we at least try to recover. Signed-off-by: Andy Lutomirski Cc: Borislav Petkov Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Linus Torvalds Signed-off-by: Ingo Molnar --- arch/x86/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/x86') diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index a9b16c3a933d..05da6b5b167b 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -427,7 +427,7 @@ dotraplinkage void do_double_fault(struct pt_regs *regs, long error_code, unsign #endif pr_emerg("PANIC: double fault, error_code: 0x%lx\n", error_code); - show_regs(regs); + die("double fault", regs, error_code); panic("Machine halted."); } #endif -- cgit v1.2.3