Re: [PATCH mm-hotfixes v3 0/4] mm: fix UAF caused by race between ptdump and vmap pgtable freeing

From: Dave Hansen

Date: Tue Jul 14 2026 - 13:37:00 EST


On 7/14/26 10:24, Lorenzo Stoakes wrote:
> arch/arm64/include/asm/ptdump.h | 2 --
> arch/arm64/mm/mmu.c | 43 ++++-------------------------------------
> arch/arm64/mm/ptdump.c | 11 ++---------
> arch/x86/mm/pat/set_memory.c | 14 +++++++++++---
> include/linux/mmap_lock.h | 1 +
> mm/pagewalk.c | 36 ++++++++++++++++++++--------------
> mm/ptdump.c | 7 +++++++
> mm/vmalloc.c | 41 ++++++++++++++++++++++++++++++---------
> 8 files changed, 78 insertions(+), 77 deletions(-)

BTW, this is super nice. It fixes a bug, makes the architectures more
consistent, and is effectively neutral on lines-of-code.

Very cool.