diff options
| author | Miaohe Lin <[email protected]> | 2022-04-28 23:16:09 -0700 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-04-28 23:16:09 -0700 |
| commit | f3b9e8cc8b09ba3b41bb068c24a1061e8a70d26f (patch) | |
| tree | 70458dc058264b792658417cabe0c1a7dc636b4f /tools/perf/scripts/python | |
| parent | 7d6e2d96384556a4f30547803be1f606eb805a62 (diff) | |
mm/madvise: fix potential pte_unmap_unlock pte error
We can't assume pte_offset_map_lock will return same orig_pte value. So
it's necessary to reacquire the orig_pte or pte_unmap_unlock will unmap
the stale pte.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 9c276cc65a58 ("mm: introduce MADV_COLD")
Fixes: 854e9ed09ded ("mm: support madvise(MADV_FREE)")
Signed-off-by: Miaohe Lin <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions