Re: [PATCH mm-hotfixes v2 2/4] x86/mm/pat: acquire mmap lock on page table free to avoid ptdump UAF
From: Lorenzo Stoakes
Date: Tue Jul 14 2026 - 05:50:18 EST
On 2026-07-12 09:53 -0700, Borislav Petkov wrote:
> On Sun, Jul 12, 2026 at 11:42:25AM +0100, Lorenzo Stoakes wrote:
> > This patch resolves the issue by acquiring the mmap read lock on init_mm to
>
> s/This patch resolves/Resolve/
>
> > provide mutual exclusion against ptdump, which acquires the init_mm write
> > lock.
>
> ...
>
> > We also include cleanup.h in order to use a scoped_guard() to implement
> > this cleanly.
>
> You don't need to explain that.
>
> Thx.
OK will reword on respin.
>
> --
> Regards/Gruss,
> Boris.
>
> https://people.kernel.org/tglx/notes-about-netiquette
>
Thanks, Lorenzo