diff options
| author | Qi Zheng <[email protected]> | 2025-02-11 07:26:25 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-02-18 06:40:03 +0000 |
| commit | f39edcf6349abb2ca2df96acc8645f4d2631d0a7 (patch) | |
| tree | 4ef6419e257679a82862efe269c1dfbd45973f73 /tools/testing/selftests/net/lib/py/utils.py | |
| parent | taskstats: modify taskstats version (diff) | |
| download | kernel-f39edcf6349abb2ca2df96acc8645f4d2631d0a7.tar.gz kernel-f39edcf6349abb2ca2df96acc8645f4d2631d0a7.zip | |
mm: pgtable: fix incorrect reclaim of non-empty PTE pages
In zap_pte_range(), if the pte lock was released midway, the pte entries
may be refilled with physical pages by another thread, which may cause a
non-empty PTE page to be reclaimed and eventually cause the system to
crash.
To fix it, fall back to the slow path in this case to recheck if all pte
entries are still none.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 6375e95f381e ("mm: pgtable: reclaim empty PTE page in madvise(MADV_DONTNEED)")
Signed-off-by: Qi Zheng <[email protected]>
Reported-by: Christian Brauner <[email protected]>
Closes: https://lore.kernel.org/all/20250207-anbot-bankfilialen-acce9d79a2c7@brauner/
Reported-by: Qu Wenruo <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Tested-by: Zi Yan <[email protected]>
Cc: <[email protected]>
Cc: "Darrick J. Wong" <[email protected]>
Cc: Dave Chinner <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Jann Horn <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Zi Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions
