Re: [PATCH] ovl: avoid deadlock in ovl_create_tmpfile

From: Miklos Szeredi
Date: Fri Jun 14 2024 - 02:54:21 EST


On Fri, 14 Jun 2024 at 03:05, Lizhi Xu <lizhi.xu@xxxxxxxxxxxxx> wrote:
>
> ovl_copy_up() will retrieve sb_writers, and ovl_want_write will also retrieve
> sb_writers, adjusting the order of their execution to avoid deadlocks.
>
> Reported-by: syzbot+b778ac10fe2a0cd72517@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Lizhi Xu <lizhi.xu@xxxxxxxxxxxxx>

Thank you.

This is already fixed in:

git://git.kernel.org/pub/scm/linux/kernel/git/overlayfs/vfs.git #overlayfs-next

Will send a pull request to Linus in the following weeks.

Thanks,
Miklos