diff options
author | Peter Xu <[email protected]> | 2023-11-16 15:15:46 -0500 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-12-06 16:12:45 -0800 |
commit | 4980e837cab7e2acc4dad18dba656c6896c531aa (patch) | |
tree | e07ae75831c0cf96220f9d1ac15a5fcbb160a4f2 /scripts/generate_rust_analyzer.py | |
parent | 0dff1b407def32452a0d80148172889862c64fe7 (diff) |
mm/pagemap: fix wr-protect even if PM_SCAN_WP_MATCHING not set
The new pagemap ioctl contains a fast path for wr-protections without
looking into category masks. It forgets to check PM_SCAN_WP_MATCHING
before applying the wr-protections. It can cause, e.g., pte markers
installed on archs that do not even support uffd wr-protect.
WARNING: CPU: 0 PID: 5059 at mm/memory.c:1520 zap_pte_range mm/memory.c:1520 [inline]
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 12f6b01a0bcb ("fs/proc/task_mmu: add fast paths to get/clear PAGE_IS_WRITTEN flag")
Signed-off-by: Peter Xu <[email protected]>
Reported-by: [email protected]
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Andrei Vagin <[email protected]>
Cc: Muhammad Usama Anjum <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions