Re: [PATCH] powerpc/64s/exception: Fix machine check early corrupting AMR

2019-06-29 Thread Michael Ellerman
Nicholas Piggin writes: > The early machine check runs in real mode, so locking is unnecessary. > Worse, the windup does not restore AMR, so this can result in a false > KUAP fault after a recoverable machine check hits inside a user copy > operation. > > Fix this similarly to HMI by just avoidin

Re: [PATCH] powerpc/64s/exception: Fix machine check early corrupting AMR

2019-06-29 Thread Michael Ellerman
On Fri, 2019-06-21 at 22:55:54 UTC, Nicholas Piggin wrote: > The early machine check runs in real mode, so locking is unnecessary. > Worse, the windup does not restore AMR, so this can result in a false > KUAP fault after a recoverable machine check hits inside a user copy > operation. > > Fix thi

[PATCH] powerpc/64s/exception: Fix machine check early corrupting AMR

2019-06-21 Thread Nicholas Piggin
The early machine check runs in real mode, so locking is unnecessary. Worse, the windup does not restore AMR, so this can result in a false KUAP fault after a recoverable machine check hits inside a user copy operation. Fix this similarly to HMI by just avoiding the kuap lock in the early machine