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

From: Mikulas Patocka
Date: Tue Sep 27 2022 - 12:10:58 EST




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>

Mikulas