linux-xiaomi-chiron/fs/9p
Dominique Martinet b0017602fd 9p: fix EBADF errors in cached mode
cached operations sometimes need to do invalid operations (e.g. read
on a write only file)
Historic fscache had added a "writeback fid", a special handle opened
RW as root, for this. The conversion to new fscache missed that bit.

This commit reinstates a slightly lesser variant of the original code
that uses the writeback fid for partial pages backfills if the regular
user fid had been open as WRONLY, and thus would lack read permissions.

Link: https://lkml.kernel.org/r/20220614033802.1606738-1-asmadeus@codewreck.org
Fixes: eb497943fa ("9p: Convert to using the netfs helper lib to do reads and caching")
Cc: stable@vger.kernel.org
Cc: David Howells <dhowells@redhat.com>
Reported-By: Christian Schoenebeck <linux_oss@crudebyte.com>
Reviewed-by: Christian Schoenebeck <linux_oss@crudebyte.com>
Tested-by: Christian Schoenebeck <linux_oss@crudebyte.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
2022-06-17 06:03:30 +09:00
..
acl.c
acl.h
cache.c
cache.h
fid.c 9p: Fix refcounting during full path walks for fid lookups 2022-06-15 12:05:33 +09:00
fid.h
Kconfig
Makefile
v9fs.c
v9fs.h
v9fs_vfs.h
vfs_addr.c 9p: fix EBADF errors in cached mode 2022-06-17 06:03:30 +09:00
vfs_dentry.c
vfs_dir.c
vfs_file.c
vfs_inode.c 9p: fix fid refcount leak in v9fs_vfs_get_link 2022-06-15 12:05:29 +09:00
vfs_inode_dotl.c 9p: fix fid refcount leak in v9fs_vfs_atomic_open_dotl 2022-06-15 12:05:21 +09:00
vfs_super.c
xattr.c
xattr.h