v3
2026-10-22
修复hugetlb重映射缺陷 · v3
hugetlb mremap 修复移动长度截断、UFFD missing 下 PMD 共享及递归 i_mmap_rwsem 死锁。
原始补丁链接
子 Patch(3)
1/3
mm/hugetlb: fix mremap move length truncation
[mm/hugetlb: fix mremap move length truncation] move_hugetlb_page_tables() returns the number of bytes moved, but its return type is int while the generic move_page_tables() path uses unsigned long le
2/3
mm/hugetlb: disable PMD sharing for UFFD missing mode
[mm/hugetlb: disable PMD sharing for UFFD missing mode] From: “David Hildenbrand (Arm)” david@kernel.org For UFFDIO_POISON to install a poison marker in a hugetlb mapping, it is sufficient to have
3/3
mm/hugetlb: fix mremap deadlock when PMD sharing is possible
[mm/hugetlb: fix mremap deadlock when PMD sharing is possible] move_hugetlb_page_tables() holds the mapping’s i_mmap_rwsem for write while moving hugetlb PTEs. This prevents races with truncation and