Re: [syzbot] [kernfs?] possible deadlock in kernfs_fop_llseek

From: Al Viro
Date: Fri Apr 05 2024 - 20:10:41 EST


On Fri, Apr 05, 2024 at 04:02:03PM -0700, syzbot wrote:
> Hello,
>
> syzbot tried to test the proposed patch but the build/boot failed:
>
> failed to apply patch:
> checking file fs/overlayfs/util.c
> Hunk #1 FAILED at 639.
> 1 out of 1 hunk FAILED

Heh...

ed fs/kernfs/file.c <<'EOF'
/mutex_init/a
else if (file->f_mode & FMODE_WRITE)
mutex_init(&of->mutex);
.
w
q
EOF

(and if the bot is willing to apply that kind of patches, we have a security
problem on hands ;-)