powerpc/64s/radix: Fix radix_kvm_prefetch_workaround paca access of not possible CPU
authorNicholas Piggin <npiggin@gmail.com>
Tue, 12 Jun 2018 09:38:08 +0000 (19:38 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 19 Jun 2018 23:13:25 +0000 (09:13 +1000)
commit758380b8155f69b4e2f77f27562f8a7a466749d6
tree0af02cb69c005b84975989068e21693134f50b1b
parente08ecba17b72aeb01859601bc242a5bc48620109
powerpc/64s/radix: Fix radix_kvm_prefetch_workaround paca access of not possible CPU

If possible CPUs are limited (e.g., by kexec), then the kvm prefetch
workaround function can access the paca pointer for a !possible CPU.

Fixes: d2e60075a3d44 ("powerpc/64: Use array of paca pointers and allocate pacas individually")
Cc: stable@kernel.org
Reported-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com>
Tested-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/tlb-radix.c