summaryrefslogtreecommitdiff
path: root/fs/cifs
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2015-09-15 12:30:08 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-29 19:26:05 +0200
commitf5a73e9c4a1c5dc9f1d90abf782c5f9ac694e443 (patch)
tree6e135d24159d8ac40019ba184325cb113a4946fe /fs/cifs
parentb46f51da057f2a4728f8cc4e30e64e297151db76 (diff)
powerpc/mm: Recompute hash value after a failed update
commit 36b35d5d807b7e57aff7d08e63de8b17731ee211 upstream. 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") 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/cifs')
0 files changed, 0 insertions, 0 deletions