x86/traps: die() instead of panicking on a double fault
authorAndy Lutomirski <luto@kernel.org>
Tue, 26 Nov 2019 06:37:44 +0000 (22:37 -0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 26 Nov 2019 21:00:12 +0000 (22:00 +0100)
commit0337b7ebfcb8efb4ea0a9f2b2f284217a1c0e62d
tree233be729a84456024ace6f13f1b6d7102092d61c
parent7d8d8cfdee9a7bd6f9682f253fa98efdd8048a9e
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 <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/traps.c