Please pick the THP migration deferred-split fix
Subsystems (2)
Hi,
Please pick the following commit for 6.18.y to fix CVE-2026-46017.
commit 3bac01168982ec3e3bf87efdc1807c7933590a85 ("mm: fix deferred split queue races during migration")
On 6.18.y, migration restores userspace mappings before requeueing the destination folio. A concurrent unmap can mark it partially mapped and trigger a warning when migration requeues it. The fix requeues it before restoring the mappings. It also keeps an underused folio on the split queue when the shrinker cannot lock it.
6.18.27 includes the migration prerequisite as 944a6864aa06, upstream commit a2e0c0668a3486f96b86c50e02872c8e94fd4f9c ("mm: migrate: requeue destination folio on deferred split queue").
Both shrinker prerequisites shipped in 6.18.51.
commit ad7c7f4576a5977b4ec4ac5dd090ab3f81ca7c6f ("mm: thp: introduce folio_split_queue_lock and its variants")
commit 776bde7caf80f6af72b087cafe7d9f607b14716d ("mm: thp: use folio_batch to handle THP splitting in deferred_split_scan()")
The fix applies unchanged to 6.18.66. It is in mainline from 7.1 and in 7.0.y from 7.0.4. The fix is also missing from 6.12.y, where migration still restores mappings before requeueing the folio.
Compile-tested on 6.18.66 (huge_memory.o, migrate.o).
Thanks,
Artem Dinaburg
Quoted 4 lines
Please pick the following commit for 6.18.y to fix CVE-2026-46017.
commit
3bac01168982ec3e3bf87efdc1807c7933590a85("mm: fix deferred split queue races during migration")
Queued for 6.18, thanks.
Signature · 2 lines
Thanks, Sasha