v1
2026-10-30
hugetlb UFFD WP重查 · v1
hugetlb UFFDIO_COPY_MODE_WP 重试前重新检查 WP 注册,避免范围重注册后遗留 uffd-wp PTE。
原始补丁链接
子 Patch(2)
1/2
mm/userfaultfd: recheck WP registration in the hugetlb UFFDIO_COPY retry
[mm/userfaultfd: recheck WP registration in the hugetlb UFFDIO_COPY retry] [patchwork series v1] submitter=Jose A. Perez de Azpillaga patches (2): [1/2] mm/userfaultfd: recheck WP registration in th
2/2
selftests/mm: add a uffd test for re-registering during UFFDIO_COPY
Re-register the destination without WP while a UFFDIO_COPY_MODE_WP copy waits for its source page, then check that the copy fails with -EINVAL and leaves no uffd-wp bit behind. This covers both the hu