Re: powerpc/traps: restore recoverability of machine_check interrupts
From: Michael Ellerman
Date: Mon Oct 22 2018 - 05:37:32 EST
On Sat, 2018-10-13 at 09:16:22 UTC, Christophe Leroy wrote:
> commit b96672dd840f ("powerpc: Machine check interrupt is a non-
> maskable interrupt") added a call to nmi_enter() at the beginning of
> machine check restart exception handler. Due to that, in_interrupt()
> always returns true regardless of the state before entering the
> exception, and die() panics even when the system was not already in
> interrupt.
>
> This patch calls nmi_exit() before calling die() in order to restore
> the interrupt state we had before calling nmi_enter()
>
> Fixes: b96672dd840f ("powerpc: Machine check interrupt is a non-maskable interrupt")
> Signed-off-by: Christophe Leroy <christophe.leroy@xxxxxx>
> Reviewed-by: Nicholas Piggin <npiggin@xxxxxxxxx>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/daf00ae71dad8aa05965713c62558a
cheers