v3
2026-10-23
修复内存热拔页表销毁 · v3
修复内存热移除时页表构造/析构计数失衡,并修正 riscv/arm64 热插拔页表析构路径。
原始补丁链接
子 Patch(4)
1/4
mm: fix missing page-table destructor in pagetable_free()
Since commit 49f599666420 (“mm: call ctor/dtor for kernel PTEs”), pte_alloc_one_kernel() runs the page-table constructor for kernel PTE tables. HVO (HugeTLB Vmemmap Optimization) uses pte_alloc_one_k
2/4
riscv/mm: fix hotplug page-table destructor handling
RISC-V uses the same memory-hotplug teardown code for linear-map and vmemmap page tables. Late linear-map allocations run page-table constructors, while vmemmap and early allocations may not. free_pt
3/4
riscv/mm: fix missing destructor for hotplug PUD tables
Commit 8472cc4503eb (“riscv: mm: call PUD/P4D ctor in special kernel pgtable alloc”) made alloc_pud_late() run the PUD page-table constructor. However, free_pud_table() still frees non-reserved PUD ta
4/4
arm64/mm: fix destructor for unconstructed hotplug page tables
Commit c594b83457cc (“arm64: mm: call pagetable dtor when freeing hot-removed page tables”) made free_hotplug_pgtable_page() unconditionally run the page-table destructor. This matches page tables all