summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2018-03-23 15:53:38 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-08 12:12:42 +0200
commite522e2ea300e2345d287478fe034d995fecf96e2 (patch)
tree7979407b7ec39e7cf30f8ff7120d6690a2f47d15 /block
parent812d42a5a9b64ac929fa24ee352908601a910fa3 (diff)
powerpc/64s: Fix i-side SLB miss bad address handler saving nonvolatile GPRs
commit 52396500f97c53860164debc7d4f759077853423 upstream. The SLB bad address handler's trap number fixup does not preserve the low bit that indicates nonvolatile GPRs have not been saved. This leads save_nvgprs to skip saving them, and subsequent functions and return from interrupt will think they are saved. This causes kernel branch-to-garbage debugging to not have correct registers, can also cause userspace to have its registers clobbered after a segfault. Fixes: f0f558b131db ("powerpc/mm: Preserve CFAR value on SLB miss caused by access to bogus address") Cc: stable@vger.kernel.org # v4.9+ Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions