提交 a443506b 编写于 作者: A Anton Blanchard 提交者: Benjamin Herrenschmidt

powerpc: Don't force MSR_RI in machine_check_exception

We should never force MSR_RI on. If we take a machine check with MSR_RI off
then we have no chance of recovering safely.
Signed-off-by: NAnton Blanchard <anton@samba.org>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 7071854b
......@@ -627,7 +627,6 @@ void machine_check_exception(struct pt_regs *regs)
return;
if (user_mode(regs)) {
regs->msr |= MSR_RI;
_exception(SIGBUS, regs, BUS_ADRERR, regs->nip);
return;
}
......@@ -643,10 +642,8 @@ void machine_check_exception(struct pt_regs *regs)
return;
#endif
if (debugger_fault_handler(regs)) {
regs->msr |= MSR_RI;
if (debugger_fault_handler(regs))
return;
}
if (check_io_access(regs))
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册