aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/mm/.gitignore
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-06-22 08:55:54 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2019-06-25 21:04:27 +1000
commite13e7cd4c0c1cc9984d9b6a8663e10d76b53f2aa (patch)
tree53e402b7bf7325ff96c0fa655188722a47f97611 /tools/testing/selftests/powerpc/mm/.gitignore
parentKVM: PPC: Book3S HV: Invalidate ERAT when flushing guest TLB entries (diff)
downloadlinux-dev-e13e7cd4c0c1cc9984d9b6a8663e10d76b53f2aa.tar.xz
linux-dev-e13e7cd4c0c1cc9984d9b6a8663e10d76b53f2aa.zip
powerpc/64s/exception: Fix machine check early corrupting AMR
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 check handler (it will be set by the late handler that runs in virtual mode if that runs). If the virtual mode handler is reached, it will lock and restore the AMR. Fixes: 890274c2dc4c0 ("powerpc/64s: Implement KUAP for Radix MMU") Cc: Russell Currey <ruscur@russell.cc> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/mm/.gitignore')
0 files changed, 0 insertions, 0 deletions