Re: [PATCH mm-hotfixes v3 2/4] x86/mm/pat: acquire mmap lock on page table free to avoid ptdump UAF

From: Dave Hansen

Date: Tue Jul 14 2026 - 13:29:55 EST


On 7/14/26 10:24, Lorenzo Stoakes wrote:
...
> Resolve the issue by acquiring the mmap read lock on init_mm which prevents
> a concurrent ptdump as it acquires the write lock.

The move over to locking on init_mm instead of current->mm fixes the
earlier issues I saw with this. Thanks for doing that!

Reviewed-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>