summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/book3s_64_mmu.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2015-09-15 12:30:08 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2015-09-16 22:06:03 +1000
commit36b35d5d807b7e57aff7d08e63de8b17731ee211 (patch)
tree1629b6259078a9ef2b0e6eaeeee930a0fb456e57 /arch/powerpc/kvm/book3s_64_mmu.c
parent655471f54c2e395ba29ae4156ba0f49928177cc1 (diff)
downloadblackbird-op-linux-36b35d5d807b7e57aff7d08e63de8b17731ee211.tar.gz
blackbird-op-linux-36b35d5d807b7e57aff7d08e63de8b17731ee211.zip
powerpc/mm: Recompute hash value after a failed update
If we had secondary hash flag set, we ended up modifying hash value in the updatepp code path. Hence with a failed updatepp we will be using a wrong hash value for the following hash insert. Fix this by recomputing hash before insert. Without this patch we can end up with using wrong slot number in linux pte. That can result in us missing an hash pte update or invalidate which can cause memory corruption or even machine check. Fixes: 6d492ecc6489 ("powerpc/THP: Add code to handle HPTE faults for hugepages") Cc: stable@vger.kernel.org # v3.11+ Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Reviewed-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kvm/book3s_64_mmu.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud