]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fuse: abort on fatal signal during sync init
authorMiklos Szeredi <mszeredi@redhat.com>
Mon, 16 Mar 2026 13:10:00 +0000 (14:10 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 24 Mar 2026 14:26:32 +0000 (15:26 +0100)
commit204aa22a686bfee48daca7db620c1e017615f2ff
tree7755fcc4e6c5f9cc8fa5167dcc684440a340b32c
parent5a6baf204610589f8a5b5a1cd69d1fe661d9d3cd
fuse: abort on fatal signal during sync init

When sync init is used and the server exits for some reason (error, crash)
while processing FUSE_INIT, the filesystem creation will hang.  The reason
is that while all other threads will exit, the mounting thread (or process)
will keep the device fd open, which will prevent an abort from happening.

This is a regression from the async mount case, where the mount was done
first, and the FUSE_INIT processing afterwards, in which case there's no
such recursive syscall keeping the fd open.

Fixes: dfb84c330794 ("fuse: allow synchronous FUSE_INIT")
Cc: stable@vger.kernel.org # v6.18
Reviewed-by: Joanne Koong <joannelkoong@gmail.com>
Reviewed-by: Bernd Schubert <bernd@bsbernd.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c
fs/fuse/fuse_i.h
fs/fuse/inode.c