Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Artem Dinaburg <artem@trailofbits.com>
To: stable@vger.kernel.org
Cc: lance.yang@linux.dev, ziy@nvidia.com, david@kernel.org,
	usama.arif@linux.dev, akpm@linux-foundation.org,
	linux-mm@kvack.org
Subject: [6.18.y] Please pick the THP migration deferred-split fix
Date: Fri,  4 Dec 2026 16:18:07 -0500	[thread overview]
Message-ID: <20261204211807.9645-1-artem@trailofbits.com> (raw)

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

                 reply	other threads:[~2026-12-04 21:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204211807.9645-1-artem@trailofbits.com \
    --to=artem@trailofbits.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@kernel.org \
    --cc=lance.yang@linux.dev \
    --cc=linux-mm@kvack.org \
    --cc=stable@vger.kernel.org \
    --cc=usama.arif@linux.dev \
    --cc=ziy@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox