diff options
Diffstat (limited to 'arch/x86_64/kernel/traps.c')
| -rw-r--r-- | arch/x86_64/kernel/traps.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c index 6bda322d3caf..2700b1375c1f 100644 --- a/arch/x86_64/kernel/traps.c +++ b/arch/x86_64/kernel/traps.c | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | #include <linux/moduleparam.h> | 30 | #include <linux/moduleparam.h> |
| 31 | #include <linux/nmi.h> | 31 | #include <linux/nmi.h> |
| 32 | #include <linux/kprobes.h> | 32 | #include <linux/kprobes.h> |
| 33 | #include <linux/kexec.h> | ||
| 33 | 34 | ||
| 34 | #include <asm/system.h> | 35 | #include <asm/system.h> |
| 35 | #include <asm/uaccess.h> | 36 | #include <asm/uaccess.h> |
| @@ -433,6 +434,8 @@ void __kprobes __die(const char * str, struct pt_regs * regs, long err) | |||
| 433 | printk(KERN_ALERT "RIP "); | 434 | printk(KERN_ALERT "RIP "); |
| 434 | printk_address(regs->rip); | 435 | printk_address(regs->rip); |
| 435 | printk(" RSP <%016lx>\n", regs->rsp); | 436 | printk(" RSP <%016lx>\n", regs->rsp); |
| 437 | if (kexec_should_crash(current)) | ||
| 438 | crash_kexec(regs); | ||
| 436 | } | 439 | } |
| 437 | 440 | ||
| 438 | void die(const char * str, struct pt_regs * regs, long err) | 441 | void die(const char * str, struct pt_regs * regs, long err) |
| @@ -455,6 +458,8 @@ void __kprobes die_nmi(char *str, struct pt_regs *regs) | |||
| 455 | */ | 458 | */ |
| 456 | printk(str, safe_smp_processor_id()); | 459 | printk(str, safe_smp_processor_id()); |
| 457 | show_registers(regs); | 460 | show_registers(regs); |
| 461 | if (kexec_should_crash(current)) | ||
| 462 | crash_kexec(regs); | ||
| 458 | if (panic_on_timeout || panic_on_oops) | 463 | if (panic_on_timeout || panic_on_oops) |
| 459 | panic("nmi watchdog"); | 464 | panic("nmi watchdog"); |
| 460 | printk("console shuts up ...\n"); | 465 | printk("console shuts up ...\n"); |
