[PATCH v3 0/3] mm/hugetlb_vmemmap: Fix HVO races and deadlock
From: Muchun Song
Date: Sat Nov 14 2026 - 06:26:07 EST
This series fixes three HVO issues reported by Sashiko.
The first patch serializes HWPoison updates and removal against HVO
remapping so raw_hwp_page state cannot be lost or freed while a
replacement vmemmap head page is being installed. The second patch uses
an HVO-private rwsem to prevent deferred PMD splits from racing with PTE
remapping before the TLB flush. The last patch switches the vmemmap walk
to the lockless walker so a PMD split allocation cannot recurse into
init_mm.mmap_lock through reclaim.
v3:
- Serialize unpoison_memory() against HVO head remapping.
- Update the first patch subject and description for the unpoison race.
- Collect Reviewed-by tags from Jiaqi Yan and
Jose A. Perez de Azpillaga.
- Rebase onto mm/mm-new.
v2: https://lore.kernel.org/20261111093747.50048-1-songmuchun@xxxxxxxxxxxxx/
- Add the HWPoison serialization fix reported by Sashiko.
- Use an HVO-private rwsem for deferred PMD split serialization.
- Add the lockless page-table walk fix for the PMD split deadlock.
v1: https://lore.kernel.org/20261110112456.62827-1-songmuchun@xxxxxxxxxxxxx/
Muchun Song (3):
mm/hugetlb_vmemmap: fix HWPoison state races during optimization
mm/hugetlb_vmemmap: fix PMD split TLB flush race
mm/hugetlb_vmemmap: fix deadlock during PMD split
mm/hugetlb_vmemmap.c | 28 +++++++++++++++++++++++-----
mm/hugetlb_vmemmap.h | 24 ++++++++++++++++++++++++
mm/memory-failure.c | 3 +++
3 files changed, 50 insertions(+), 5 deletions(-)
base-commit: 6ec534d64f85e949a5d58070678dcd7711875a7c
--
2.54.0