linux-stable/fs/fuse
Amir Goldstein 187ae04636 fuse: fix live lock in fuse_iget()
commit 775c5033a0 upstream.

Commit 5d069dbe8a ("fuse: fix bad inode") replaced make_bad_inode()
in fuse_iget() with a private implementation fuse_make_bad().

The private implementation fails to remove the bad inode from inode
cache, so the retry loop with iget5_locked() finds the same bad inode
and marks it bad forever.

kmsg snip:

[ ] rcu: INFO: rcu_sched self-detected stall on CPU
...
[ ]  ? bit_wait_io+0x50/0x50
[ ]  ? fuse_init_file_inode+0x70/0x70
[ ]  ? find_inode.isra.32+0x60/0xb0
[ ]  ? fuse_init_file_inode+0x70/0x70
[ ]  ilookup5_nowait+0x65/0x90
[ ]  ? fuse_init_file_inode+0x70/0x70
[ ]  ilookup5.part.36+0x2e/0x80
[ ]  ? fuse_init_file_inode+0x70/0x70
[ ]  ? fuse_inode_eq+0x20/0x20
[ ]  iget5_locked+0x21/0x80
[ ]  ? fuse_inode_eq+0x20/0x20
[ ]  fuse_iget+0x96/0x1b0

Fixes: 5d069dbe8a ("fuse: fix bad inode")
Cc: stable@vger.kernel.org # 5.10+
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-20 10:39:47 +01:00
..
acl.c fuse: fix bad inode 2021-01-09 13:44:54 +01:00
control.c convenience helper: get_tree_single() 2019-07-04 22:01:58 -04:00
cuse.c fuse: fix memleak in cuse_channel_open 2019-09-24 15:28:01 +02:00
dev.c fuse: fix page dereference after free 2020-11-01 12:01:05 +01:00
dir.c fuse: fix bad inode 2021-01-09 13:44:54 +01:00
file.c fuse: fix bad inode 2021-01-09 13:44:54 +01:00
fuse_i.h fuse: fix live lock in fuse_iget() 2021-03-20 10:39:47 +01:00
inode.c fuse: fix bad inode 2021-01-09 13:44:54 +01:00
Kconfig virtio-fs: add virtiofs filesystem 2019-09-18 20:17:50 +02:00
Makefile virtio-fs: Change module name to virtiofs.ko 2019-10-14 10:20:33 +02:00
readdir.c fuse: fix bad inode 2021-01-09 13:44:54 +01:00
virtio_fs.c virtiofs: schedule blocking async replies in separate worker 2020-06-24 17:50:21 +02:00
xattr.c fuse: fix bad inode 2021-01-09 13:44:54 +01:00