提交 b4b8f87b 编写于 作者: A Alexander van Heukelum 提交者: Ingo Molnar

i386, dumpstack: move crash_kexec before bust_spinlocks(0) in oops_end

crash_kexec should not be called with console_sem held. Move
the call before bust_spinlocks(0) in oops_end to avoid the
problem.
Signed-off-by: NAlexander van Heukelum <heukelum@fastmail.fm>
Acked-by: N"Neil Horman" <nhorman@tuxdriver.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 cf52ebed
......@@ -309,6 +309,9 @@ unsigned __kprobes long oops_begin(void)
void __kprobes oops_end(unsigned long flags, struct pt_regs *regs, int signr)
{
if (regs && kexec_should_crash(current))
crash_kexec(regs);
bust_spinlocks(0);
die_owner = -1;
add_taint(TAINT_DIE);
......@@ -318,8 +321,6 @@ void __kprobes oops_end(unsigned long flags, struct pt_regs *regs, int signr)
if (!regs)
return;
if (kexec_should_crash(current))
crash_kexec(regs);
if (in_interrupt())
panic("Fatal exception in interrupt");
if (panic_on_oops)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册