Re: [PATCH mm-hotfixes v2 2/4] x86/mm/pat: acquire mmap lock on page table free to avoid ptdump UAF
From: Borislav Petkov
Date: Sun Jul 12 2026 - 12:54:45 EST
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.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette