powerpc: Don't force MSR_RI in machine_check_exception
authorAnton Blanchard <anton@samba.org>
Tue, 11 Jan 2011 19:45:31 +0000 (19:45 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 21 Jan 2011 03:08:37 +0000 (14:08 +1100)
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: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/traps.c

index 1b2cdc8eec901fce78e21d279ca054684bec158c..6865002df6ce950c5d9eb63b7f92a7e0dc95d4cb 100644 (file)
@@ -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;