Re: [PATCH v2 0/3] mm: khugepaged: fix tracepoint UAF
Vernon Yang <[email protected]>
| Newsgroups | org.kvack.linux-mm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Aug 17, 2026 at 03:30:49PM -0700, Andrew Morton wrote: > On Sun, 16 Aug 2026 02:16:32 +0800 Lance Yang <[email protected]> wrote: > > > >>Pass the pfn to the tracepoints directly, captured while the folio is > > >>still pinned, closing the use-after-free windows in > > >>mm_khugepaged_scan_file(), mm_khugepaged_scan_pmd() and > > >>mm_khugepaged_collapse_file(). > > > > > >Well spotted! > > > > > >Gave the series a run on x86_64 (KVM), all good (only classic SPARSEMEM > > >untested) :) > > > > Hmm ... stumbled over something else while testing this ... > > Sashiko might have found a couple of pre-existing things. > https://sashiko.dev/#/patchset/[email protected] > > Vernon, you may decide that the second one is on-topic for this patchset? Hi, Andrew, the second one already is on-topic for this patchset, detail look for the PATCH#3 please. -- Cheers, Vernon