commit | 2ac015e293bbe3858533009612eac58842daf325 | [log] [tgz] |
---|---|---|
author | Kirill A. Shutemov <[email protected]> | Wed Feb 24 18:58:03 2016 +0300 |
committer | Linus Torvalds <[email protected]> | Wed Feb 24 10:46:30 2016 -0800 |
tree | 9875a35bbccd797295fdef0a9df4ae0e93dfb69e | |
parent | 84e54c46b2f440a365a5224f1e5f173a462b7cca [diff] |
thp: call pmdp_invalidate() with correct virtual address Sebastian Ott and Gerald Schaefer reported random crashes on s390. It was bisected to my THP refcounting patchset. The problem is that pmdp_invalidated() called with wrong virtual address. It got offset up by HPAGE_PMD_SIZE by loop over ptes. The solution is to introduce new variable to be used in loop and don't touch 'haddr'. Signed-off-by: Kirill A. Shutemov <[email protected]> Reported-and-tested-by: Gerald Schaefer <[email protected]> Reported-and-tested-by Sebastian Ott <[email protected]> Reviewed-by: Will Deacon <[email protected]> Cc: Christian Borntraeger <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Aneesh Kumar K.V <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Sasha Levin <[email protected]> Cc: Jerome Marchand <[email protected]> Cc: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>