Re: [PATCH] kernfs: fix a crash when two processes delete the same directory

From: Greg Kroah-Hartman
Date: Tue Sep 27 2022 - 12:40:10 EST


On Tue, Sep 27, 2022 at 12:09:19PM -0400, Mikulas Patocka wrote:
>
>
> On Mon, 26 Sep 2022, Greg Kroah-Hartman wrote:
>
> > Can you see if 4abc99652812 ("kernfs: fix use-after-free in
> > __kernfs_remove") in linux-next fixes this for you or not? It seems to
> > be the same issue, as was also reported at:
> > https://lore.kernel.org/r/7f489b14-2fdc-3d91-c87e-6a802bd8592d@xxxxxxxxxxxxxxxxxxx
> >
> > thanks,
> >
> > greg k-h
>
> I'm running the test with the patch 4abc99652812 for 3 hours, no crash, so
> it's probably ok.
>
> Tested-by: Mikulas Patocka <mpatocka@xxxxxxxxxx>

Wonderful, thanks!

greg k-h