android_kernel_oneplus_msm8998/fs/fuse
Miklos Szeredi 82e05e935f fuse: fix READDIRPLUS skipping an entry
commit c6cdd51404b7ac12dd95173ddfc548c59ecf037f upstream.

Marios Titas running a Haskell program noticed a problem with fuse's
readdirplus: when it is interrupted by a signal, it skips one directory
entry.

The reason is that fuse erronously updates ctx->pos after a failed
dir_emit().

The issue originates from the patch adding readdirplus support.

Reported-by: Jakob Unterwurzacher <jakobunt@gmail.com>
Tested-by: Marios Titas <redneb@gmx.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Fixes: 0b05b18381 ("fuse: implement NFS-like readdirplus support")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-02 09:40:49 +01:00
..
control.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00
cuse.c fuse: Add reference counting for fuse_io_priv 2016-04-12 09:08:58 -07:00
dev.c fuse: fix use after free issue in fuse_dev_do_read() 2017-02-23 17:43:09 +01:00
dir.c fuse: fix READDIRPLUS skipping an entry 2017-11-02 09:40:49 +01:00
file.c fuse: initialize the flock flag in fuse_file on allocation 2017-08-16 13:40:28 -07:00
fuse_i.h fuse: Add reference counting for fuse_io_priv 2016-04-12 09:08:58 -07:00
inode.c fuse: fix wrong assignment of ->flags in fuse_send_init() 2016-08-16 09:30:50 +02:00
Kconfig fuse: Move CUSE Kconfig entry from fs/Kconfig into fs/fuse/Kconfig 2013-01-17 13:08:45 +01:00
Makefile CUSE: implement CUSE - Character device in Userspace 2009-06-09 11:24:11 +02:00