* [6.18.y] Please pick the THP migration deferred-split fix
@ 2026-12-04 21:18 Artem Dinaburg
0 siblings, 0 replies; only message in thread
From: Artem Dinaburg @ 2026-12-04 21:18 UTC (permalink / raw)
To: stable; +Cc: lance.yang, ziy, david, usama.arif, akpm, linux-mm
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-04 21:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 21:18 [6.18.y] Please pick the THP migration deferred-split fix Artem Dinaburg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox