android_kernel_xiaomi_sm8450/fs/fuse
ruanmeisi 3856e7b118 fuse: nlookup missing decrement in fuse_direntplus_link
commit b8bd342d50cbf606666488488f9fea374aceb2d5 upstream.

During our debugging of glusterfs, we found an Assertion failed error:
inode_lookup >= nlookup, which was caused by the nlookup value in the
kernel being greater than that in the FUSE file system.

The issue was introduced by fuse_direntplus_link, where in the function,
fuse_iget increments nlookup, and if d_splice_alias returns failure,
fuse_direntplus_link returns failure without decrementing nlookup
https://github.com/gluster/glusterfs/pull/4081

Signed-off-by: ruanmeisi <ruan.meisi@zte.com.cn>
Fixes: 0b05b18381 ("fuse: implement NFS-like readdirplus support")
Cc: <stable@vger.kernel.org> # v3.9
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:20:27 +02:00
..
acl.c fuse: fix bad inode 2021-01-09 13:46:24 +01:00
control.c fuse: Remove the control interface for virtio-fs 2022-08-21 15:16:10 +02:00
cuse.c cuse: prevent clone 2021-05-19 10:12:56 +02:00
dax.c fuse: split fuse_mount off of fuse_conn 2020-09-18 15:17:41 +02:00
dev.c fuse: fix pipe buffer lifetime for direct_io 2022-03-16 14:16:01 +01:00
dir.c fuse: revalidate: don't invalidate if interrupted 2023-07-27 08:44:34 +02:00
file.c fuse: fix deadlock between atomic O_TRUNC and page invalidation 2023-04-26 11:27:41 +02:00
fuse_i.h virtiofs: split requests that exceed virtqueue size 2023-04-26 11:27:40 +02:00
inode.c fuse: check s_root when destroying sb 2023-04-26 11:27:40 +02:00
Kconfig virtiofs: implement dax read/write operations 2020-09-10 11:39:23 +02:00
Makefile virtiofs: add a mount option to enable dax 2020-09-10 11:39:22 +02:00
readdir.c fuse: nlookup missing decrement in fuse_direntplus_link 2023-09-19 12:20:27 +02:00
virtio_fs.c fuse: check s_root when destroying sb 2023-04-26 11:27:40 +02:00
xattr.c fuse: fix bad inode 2021-01-09 13:46:24 +01:00