powerpc/64s/powernv: Fix memory corruption when saving SLB entries on MCE
authorNicholas Piggin <npiggin@gmail.com>
Sat, 28 Nov 2020 07:07:21 +0000 (17:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Dec 2020 12:16:40 +0000 (23:16 +1100)
commita1ee28117077c3bf24e5ab6324c835eaab629c45
tree1a82712492edccfd173aedab6080c9e90fac878a
parentf54db39fbe40731c40aefdd3bc26e7d56d668c64
powerpc/64s/powernv: Fix memory corruption when saving SLB entries on MCE

This can be hit by an HPT guest running on an HPT host and bring down
the host, so it's quite important to fix.

Fixes: 7290f3b3d3e6 ("powerpc/64s/powernv: machine check dump SLB contents")
Cc: stable@vger.kernel.org # v5.4+
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201128070728.825934-2-npiggin@gmail.com
arch/powerpc/platforms/powernv/setup.c