v1
2026-09-19
UFFDIO_MOVE清除继承uffd位 · v1
UFFDIO_MOVE 搬移 swap PTE 会把源 uffd-wp 位带到未注册的目的 VMA,move_swap_pte() 改为仅在目的已注册 RWP 时保留该位。
原始补丁链接
子 Patch(2)
1/2
userfaultfd: clear the inherited uffd bit in move_swap_pte()
[userfaultfd: clear the inherited uffd bit in move_swap_pte()] [patchwork series v1] submitter=Donggeun Yoo patches (2): [v1,1/2] userfaultfd: clear the inherited uffd bit in move_swap_pte() [v1,2
2/2
selftests/mm: add a test for UFFDIO_MOVE of a write-protected swap entry
Move a swapped-out page out of a write-protected area into a destination registered for missing faults only, and read pagemap bit 57 at the destination. The destination was never write-protected, so