Re: [tip: x86/urgent] x86/mm/pat: Acquire init_mm write lock on collapse to avoid UAF

From: Lorenzo Stoakes (ARM)

Date: Wed Sep 02 2026 - 03:04:33 EST


On Tue, Sep 01, 2026 at 04:36:38PM -0700, Dave Hansen wrote:
> On 9/1/26 00:10, Lorenzo Stoakes (ARM) wrote:
> > Dave - you've somehow applied this patch completely incorrectly to x86/urgent,
> > I'm not happy with this going to Linus in this form :/
>
> Me neither, btw.

Yeah, sorry to complain so loudly, but just obviously want to make sure these
are sorted correctly!

>
> So, here it is applied:
>
> > https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git/log/?h=cpa1
>
> The diffstat exactly matches the mbox that I sucked in. I'm going to
> launch some tests overnight.

Thanks!

I had a look through and all LGTM :)

>
> The only things I really munged were a little merge issue with patch 1,
> a SoB ordering issue in patch 3, and a few scattered rewordings in the
> commit messages.

That's all good of course!

>
> Not pushed to x86/urgent, yet.

Ack, understood that you want to beat them about a bit with some tests, let me
know if there's anything else you need on these!

--
Cheers, Lorenzo