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

Lorenzo Stoakes (ARM) ljs at kernel.org
Wed Jul 15 00:28:39 PDT 2026


On Tue, Jul 14, 2026 at 10:31:52AM -0700, Dave Hansen wrote:
> 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.

Thanks very much Dave, that's very kind of you to say :)

Cheers, Lorenzo



More information about the linux-arm-kernel mailing list