diff options
author | 2023-06-02 10:29:49 +0100 | |
---|---|---|
committer | 2023-06-09 16:25:55 -0700 | |
commit | 3b65f437d9e8dd696a2b88e7afcd51385532ab35 (patch) | |
tree | 3f131babf7a16df936a729327665db69c6856710 /mm/page_alloc.c | |
parent | mm/damon/ops-common: refactor to use {pte|pmd}p_clear_young_notify() (diff) | |
download | linux-rng-3b65f437d9e8dd696a2b88e7afcd51385532ab35.tar.xz linux-rng-3b65f437d9e8dd696a2b88e7afcd51385532ab35.zip |
mm: fix failure to unmap pte on highmem systems
The loser of a race to service a pte for a device private entry in the
swap path previously unlocked the ptl, but failed to unmap the pte. This
only affects highmem systems since unmapping a pte is a noop on
non-highmem systems.
Link: https://lkml.kernel.org/r/20230602092949.545577-5-ryan.roberts@arm.com
Fixes: 16ce101db85d ("mm/memory.c: fix race when faulting a device private page")
Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Lorenzo Stoakes <lstoakes@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: SeongJae Park <sj@kernel.org>
Cc: Uladzislau Rezki (Sony) <urezki@gmail.com>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions