v2
2026-10-26
禁止迁移含 HWPoison 页的 folio · v2
v2增加hwpoison检查:compaction跳过含毒页folio,migrate拒绝迁移含毒页folio。
原始补丁链接
子 Patch(2)
1/2
mm/compaction: skip folios containing hwpoisoned pages
[mm/compaction: skip folios containing hwpoisoned pages] memory_failure() sets PG_hwpoison on the error page before it manages to pin the folio via get_hwpoison_page(). Compaction running on another
2/2
mm/migrate: refuse to migrate folios containing hwpoisoned pages
All callers of migrate_pages() without their own poison handling - move_pages(2), mbind(), NUMA balancing, alloc_contig_range() (CMA) and long-term GUP - can race memory_failure() the same way compact