v3
2026-10-15
fork 复制 special PMD 修复 · v3
修复 fork 复制特殊 PMD 时未持锁重检及未 deposit 页表,避免保留已 zap 的 PFN 映射。
原始补丁链接
子 Patch(2)
1/2
mm/huge_memory: recheck a special PMD under the lock in copy_huge_pmd()
On 10/14/26 17:46, Konstantin Khorenko wrote: > copy_huge_pmd() reads a special PMD without the page table lock and > copies that value to the child. The mmap write lock held by fork does > not stop u
2/2
mm/huge_memory: deposit a page table for a special PMD copied by fork
Where arch_needs_pgtable_deposit() is true, every huge PMD needs a deposited page table. ppc64 in hash mode keeps the hash slot array of the huge page in it, so vmf_insert_pfn_pmd() deposits one for e