Re: [PATCH] uprobes: use vm_special_mapping close() functionality
From: Andrew Morton
Date: Wed Sep 04 2024 - 17:26:50 EST
On Wed, 04 Sep 2024 13:57:13 +1000 Michael Ellerman <mpe@xxxxxxxxxxxxxx> wrote:
> Sven Schnelle <svens@xxxxxxxxxxxxx> writes:
> > Hi Michael,
>
> Hi Sven,
>
> > Sven Schnelle <svens@xxxxxxxxxxxxx> writes:
> >
> >> The following KASAN splat was shown:
> >>
> >> [ 44.505448] ================================================================== 20:37:27 [3421/145075]
> >> [ 44.505455] BUG: KASAN: slab-use-after-free in special_mapping_close+0x9c/0xc8
> >> [ 44.505471] Read of size 8 at addr 00000000868dac48 by task sh/1384
> ...
> >> [..]
> >
> > As this has a dependency on your special mapping close series, do you
> > want to carry that with your patches?
>
> Andrew has my series in mm-stable, so I think this should go into mm as
> well. I assume he will pick it up.
yup, thanks. Added, with
Fixes: 223febc6e557 ("mm: add optional close() to struct vm_special_mapping")
It appears that peterz is scooping up Sven's "uprobes: use kzalloc to
allocate xol area".