mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 18:36:00 +00:00
LoongArch: Return earlier in die() if notify_die() returns NOTIFY_STOP
After the call to oops_exit(), it should not panic or execute the crash kernel if the oops is to be suppressed. Suggested-by: Maciej W. Rozycki <macro@orcam.me.uk> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
This commit is contained in:
parent
6933c11fb5
commit
a038ae7148
@ -404,6 +404,9 @@ void die(const char *str, struct pt_regs *regs)
|
|||||||
|
|
||||||
oops_exit();
|
oops_exit();
|
||||||
|
|
||||||
|
if (ret == NOTIFY_STOP)
|
||||||
|
return;
|
||||||
|
|
||||||
if (regs && kexec_should_crash(current))
|
if (regs && kexec_should_crash(current))
|
||||||
crash_kexec(regs);
|
crash_kexec(regs);
|
||||||
|
|
||||||
@ -413,8 +416,7 @@ void die(const char *str, struct pt_regs *regs)
|
|||||||
if (panic_on_oops)
|
if (panic_on_oops)
|
||||||
panic("Fatal exception");
|
panic("Fatal exception");
|
||||||
|
|
||||||
if (ret != NOTIFY_STOP)
|
make_task_dead(SIGSEGV);
|
||||||
make_task_dead(SIGSEGV);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void setup_vint_size(unsigned int size)
|
static inline void setup_vint_size(unsigned int size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user