Skip to contentSkip to conversation

fuse: request prepared before protocol version is known

BUG Eric Biggers 2 participants 2 messages Dec 23, 2014 – Jan 8, 2015 VFS

lore
Share & tools
lore
#0 lore raw

I am using Linux 3.19-rc1 and I encountered a bug where stat() would sporatically fail with EIO when called on a file in a FUSE filesystem very shortly after that filesystem has been mounted. This is a regression caused by commit 7078187a: "fuse: introduce fuse_simple_request() helper".

The underlying issue is that the arguments to the FUSE request are being initialized before the protocol version (fc->minor) is known. This was not a problem with the old code because fuse_get_req() will wait until the channel has been initialized.

The only potential solutions I have in mind are adding an explicit waits in all the needed places, or reverting the commit.

Eric

#1 lore raw
Quoted 5 lines · Eric Biggers

I am using Linux 3.19-rc1 and I encountered a bug where stat() would sporatically fail with EIO when called on a file in a FUSE filesystem very shortly after that filesystem has been mounted. This is a regression caused by commit 7078187a: "fuse: introduce fuse_simple_request() helper".

Quoted 7 lines

The underlying issue is that the arguments to the FUSE request are being initialized before the protocol version (fc->minor) is known. This was not a problem with the old code because fuse_get_req() will wait until the channel has been initialized.

The only potential solutions I have in mind are adding an explicit waits in all the needed places, or reverting the commit.

Thanks for the report. See for-linus branch of

git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git for-linus

for the fix.

Thanks,
Miklos