powerpc/64/kuap: Move kuap checks out of MSR[RI]=0 regions of exit code
authorNicholas Piggin <npiggin@gmail.com>
Wed, 29 Apr 2020 06:56:49 +0000 (16:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 May 2020 23:22:58 +0000 (09:22 +1000)
commitc0d7dcf89e5151b2259d1c2c1b922da3b881d02e
treef21569f030498104b3cf1fcdb86f5edf9f6af521
parent0094368e3bb97a710ce163f9c06d290c1c308621
powerpc/64/kuap: Move kuap checks out of MSR[RI]=0 regions of exit code

Any kind of WARN causes a program check that will crash with
unrecoverable exception if it occurs when RI is clear.

Fixes: 68b34588e202 ("powerpc/64/sycall: Implement syscall entry/exit logic in C")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200429065654.1677541-2-npiggin@gmail.com
arch/powerpc/kernel/syscall_64.c