Miklos Szeredi
3dbc1d366e
UPSTREAM: ovl: simplify file splice
...
commit 82a763e61e2b601309d696d4fa514c77d64ee1be upstream.
generic_file_splice_read() and iter_file_splice_write() will call back into
f_op->iter_read() and f_op->iter_write() respectively. These already do
the real file lookup and cred override. So the code in ovl_splice_read()
and ovl_splice_write() is redundant.
In addition the ovl_file_accessed() call in ovl_splice_write() is
incorrect, though probably harmless.
Fix by calling generic_file_splice_read() and iter_file_splice_write()
directly.
Bug: 203035944
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
[reported to resolve issues with 1a980b8cbf00 ("ovl: add splice file read write helper")]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I1b3c7610b27faad8eefa91dead167ceaeb4ff0d8
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2021-10-20 10:35:34 +02:00
..
9p
This is the 5.4.75 stable release
2020-11-05 13:27:24 +01:00
adfs
Merge branch 'work.adfs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2019-07-19 11:33:22 -07:00
affs
fs/affs: release old buffer head on error path
2021-03-04 10:26:48 +01:00
afs
This is the 5.4.136 stable release
2021-07-28 13:46:04 +02:00
autofs
autofs: fix a leak in autofs_expire_indirect()
2019-10-25 00:03:11 -04:00
befs
fs: Fill in max and min timestamps in superblock
2019-08-30 07:27:17 -07:00
bfs
bfs: don't use WARNING: string when it's just info.
2021-01-06 14:48:39 +01:00
btrfs
This is the 5.4.145 stable release
2021-09-12 09:54:40 +02:00
cachefiles
cachefiles: Handle readpage error correctly
2020-11-05 11:43:36 +01:00
ceph
This is the 5.4.142 stable release
2021-08-27 16:27:13 +02:00
cifs
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
coda
y2038: add inode timestamp clamping
2019-09-19 09:42:37 -07:00
configfs
configfs: fix memleak in configfs_release_bin_file
2021-07-14 16:53:46 +02:00
cramfs
cramfs: fix usage on non-MTD device
2019-11-23 21:44:49 -05:00
crypto
This is the 5.4.145 stable release
2021-09-12 09:54:40 +02:00
debugfs
debugfs: Return error during {full/open}_proxy_open() on rmmod
2021-09-15 09:47:33 +02:00
devpts
devpts_pty_kill(): don't bother with d_delete()
2019-09-03 09:30:56 -04:00
dlm
fs: dlm: fix memory leak when fenced
2021-07-14 16:53:17 +02:00
ecryptfs
This is the 5.4.122 stable release
2021-05-28 13:26:18 +02:00
efivarfs
efivarfs: revert "fix memory leak in efivarfs_create()"
2020-12-02 08:49:53 +01:00
efs
fs: Fill in max and min timestamps in superblock
2019-08-30 07:27:17 -07:00
erofs
This is the 5.4.118 stable release
2021-05-11 16:56:33 +02:00
exportfs
exportfs_decode_fh(): negative pinned may become positive without the parent locked
2019-11-10 11:56:05 -05:00
ext2
This is the 5.4.64 stable release
2020-09-14 13:00:56 +02:00
ext4
This is the 5.4.145 stable release
2021-09-12 09:54:40 +02:00
f2fs
Merge tag 'android11-5.4.147_r00' android11-5.4
2021-10-20 10:32:16 +02:00
fat
fat: don't allow to mount if the FAT length == 0
2020-06-17 16:40:36 +02:00
freevxfs
fs: Fill in max and min timestamps in superblock
2019-08-30 07:27:17 -07:00
fscache
Revert "Merge tag 'keys-acl-20190703' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs"
2019-07-10 18:43:43 -07:00
fuse
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
gfs2
This is the 5.4.127 stable release
2021-06-21 10:23:21 +02:00
hfs
This is the 5.4.137 stable release
2021-07-31 09:04:18 +02:00
hfsplus
This is the 5.4.120 stable release
2021-05-19 10:41:47 +02:00
hostfs
hostfs: fix memory handling in follow_link()
2021-04-14 08:24:14 +02:00
hpfs
fs: hpfs: Initialize filesystem timestamp ranges
2019-08-30 08:11:25 -07:00
hugetlbfs
hugetlbfs: fix mount mode command line processing
2021-07-28 13:31:01 +02:00
incfs
ANDROID: Incremental fs: Set credentials before reading/writing
2021-04-22 22:34:21 +00:00
iomap
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
isofs
isofs: joliet: Fix iocharset=utf8 mount option
2021-09-15 09:47:27 +02:00
jbd2
jbd2: fix up sparse warnings in checkpoint code
2020-11-18 19:20:30 +01:00
jffs2
This is the 5.4.118 stable release
2021-05-11 16:56:33 +02:00
jfs
This is the 5.4.134 stable release
2021-07-20 16:30:12 +02:00
kernfs
This is the 5.4.59 stable release
2020-08-19 08:40:57 +02:00
lockd
lockd: Fix invalid lockowner cast after vfs_test_lock
2021-09-15 09:47:35 +02:00
minix
Revert "ANDROID: Revert: Merge 5.4.60 into android11-5.4"
2020-08-23 13:12:51 +02:00
nfs
This is the 5.4.134 stable release
2021-07-20 16:30:12 +02:00
nfs_common
nfs_common: need lock during iterate through the list
2020-12-30 11:51:22 +01:00
nfsd
nfsd4: Fix forced-expiry locking
2021-09-15 09:47:35 +02:00
nilfs2
nilfs2: fix memory leak in nilfs_sysfs_delete_device_group
2021-06-30 08:47:50 -04:00
nls
notify
ANDROID: vfs: add d_canonical_path for stacked filesystem support
2020-10-30 10:02:25 +01:00
ntfs
ntfs: fix validity check for file name attribute
2021-07-14 16:53:01 +02:00
ocfs2
This is the 5.4.138 stable release
2021-08-04 15:00:21 +02:00
omfs
fs: omfs: Initialize filesystem timestamp ranges
2019-08-30 08:11:25 -07:00
openpromfs
Merge branch 'work.mount0' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2019-07-19 10:42:02 -07:00
orangefs
This is the 5.4.134 stable release
2021-07-20 16:30:12 +02:00
overlayfs
UPSTREAM: ovl: simplify file splice
2021-10-20 10:35:34 +02:00
proc
This is the 5.4.144 stable release
2021-09-03 10:17:46 +02:00
pstore
pstore: Fix typo in compression option name
2021-03-04 10:26:45 +01:00
qnx4
fs: Fill in max and min timestamps in superblock
2019-08-30 07:27:17 -07:00
qnx6
fs: Fill in max and min timestamps in superblock
2019-08-30 07:27:17 -07:00
quota
quota: Fix memory leak when handling corrupted quota file
2021-03-04 10:26:26 +01:00
ramfs
ramfs: fix nommu mmap with gaps in the page cache
2020-10-29 09:57:53 +01:00
reiserfs
This is the 5.4.140 stable release
2021-08-12 14:00:44 +02:00
romfs
romfs: fix uninitialized memory leak in romfs_dev_read()
2020-08-26 10:40:51 +02:00
squashfs
This is the 5.4.120 stable release
2021-05-19 10:41:47 +02:00
sysfs
ANDROID: GKI: hack up fs/sysfs/file.c to prevent GENKSYMS change
2021-03-08 10:09:14 +01:00
sysv
fs: sysv: Initialize filesystem timestamp ranges
2019-08-30 07:27:18 -07:00
tracefs
tracing: Do not create tracefs files if tracefs lockdown is in effect
2019-10-12 20:49:07 -04:00
ubifs
This is the 5.4.145 stable release
2021-09-12 09:54:40 +02:00
udf
udf_get_extendedattr() had no boundary checks.
2021-09-15 09:47:28 +02:00
ufs
Revert "ANDROID: Revert: Merge 5.4.60 into android11-5.4"
2020-08-23 13:12:51 +02:00
unicode
FROMLIST: unicode: Add utf8_casefold_hash
2020-02-20 21:21:02 +00:00
verity
fs-verity: remove unnecessary extern keywords
2020-06-16 14:06:46 -07:00
xfs
This is the 5.4.103 stable release
2021-03-07 12:51:29 +01:00
aio.c
aio: fix async fsync creds
2020-06-17 16:40:24 +02:00
anon_inodes.c
Merge branch 'work.mount0' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2019-07-19 10:42:02 -07:00
attr.c
Revert "ANDROID: vfs: Add setattr2 for filesystems with per mount permissions"
2020-05-29 14:48:38 +02:00
bad_inode.c
binfmt_aout.c
binfmt_elf.c
fs/binfmt_elf.c: allocate initialized memory in fill_thread_core_info()
2020-06-03 08:21:27 +02:00
binfmt_elf_fdpic.c
binfmt_em86.c
binfmt_flat.c
binfmt_flat: revert "binfmt_flat: don't offset the data start"
2020-09-03 11:26:39 +02:00
binfmt_misc.c
binfmt_misc: fix possible deadlock in bm_register_write
2021-03-17 17:03:57 +01:00
binfmt_script.c
block_dev.c
block: reexpand iov_iter after read/write
2021-05-22 11:38:29 +02:00
buffer.c
This is the 5.4.75 stable release
2020-11-05 13:27:24 +01:00
char_dev.c
chardev: Avoid potential use-after-free in 'chrdev_open()'
2020-01-14 20:08:18 +01:00
compat.c
compat_binfmt_elf.c
compat_ioctl.c
fix compat handling of FICLONERANGE, FIDEDUPERANGE and FS_IOC_FIEMAP
2020-01-09 10:20:05 +01:00
coredump.c
coredump: fix core_pattern parse error
2020-12-11 13:23:30 +01:00
d_path.c
fs: fix NULL dereference due to data race in prepend_path()
2020-10-29 09:57:45 +01:00
dax.c
dax: fix ENOMEM handling in grab_mapping_entry()
2021-07-14 16:53:25 +02:00
dcache.c
fix dget_parent() fastpath race
2020-10-01 13:17:19 +02:00
dcookies.c
direct-io.c
This is the 5.4.112 stable release
2021-04-14 12:07:53 +02:00
drop_caches.c
fs: avoid softlockups in s_inodes iterators
2020-01-12 12:21:37 +01:00
eventfd.c
eventfd: track eventfd_signal() recursion depth
2020-02-11 04:35:37 -08:00
eventpoll.c
This is the 5.4.70 stable release
2020-10-07 08:50:29 +02:00
exec.c
Revert "exec: Add exec_update_mutex to replace cred_guard_mutex"
2021-01-11 14:35:30 +01:00
fcntl.c
fcntl: fix potential deadlock for &fasync_struct.fa_lock
2021-09-15 09:47:28 +02:00
fhandle.c
fs/handle.c - fix up kerneldoc
2019-08-07 21:51:47 -04:00
file.c
fix multiplication overflow in copy_fdtable()
2020-05-27 17:46:12 +02:00
file_table.c
vfs: Export flush_delayed_fput for use by knfsd.
2019-08-19 11:00:39 -04:00
filesystems.c
fs/filesystems.c: downgrade user-reachable WARN_ONCE() to pr_warn_once()
2020-04-17 10:50:21 +02:00
fs-writeback.c
writeback: fix obtain a reference to a freeing memcg css
2021-07-14 16:53:35 +02:00
fs_context.c
vfs: subtype handling moved to fuse
2019-09-06 21:28:49 +02:00
fs_parser.c
vfs: Make fs_parse() handle fs_param_is_fd-type params better
2019-09-12 21:06:14 -04:00
fs_pin.c
switch the remnants of releasing the mountpoint away from fs_pin
2019-07-16 22:52:37 -04:00
fs_struct.c
Revert "ANDROID: sdcardfs: Enable modular sdcardfs"
2020-05-29 15:08:00 +02:00
fs_types.c
fsopen.c
Merge branch 'work.mount0' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2019-07-19 10:42:02 -07:00
inode.c
Revert "ANDROID: vfs: Add setattr2 for filesystems with per mount permissions"
2020-05-29 14:48:38 +02:00
internal.h
cgroup1: fix leaked context root causing sporadic NULL deref in LTP
2021-07-31 08:19:37 +02:00
io_uring.c
UPSTREAM: io_uring: Fix current->fs handling in io_sq_wq_submit_work()
2021-08-17 17:05:36 +00:00
ioctl.c
compat_ioctl: add compat_ptr_ioctl()
2019-12-17 19:55:30 +01:00
Kconfig
ANDROID: sdcardfs: remove sdcardfs from system
2020-05-29 14:48:37 +02:00
Kconfig.binfmt
libfs.c
This is the 5.4.80 stable release
2020-11-25 12:46:13 +01:00
locks.c
locks: reinstate locks_delete_block optimization
2020-03-25 08:25:41 +01:00
Makefile
ANDROID: GKI: set vfs-only exports into their own namespace
2020-07-07 18:07:10 +02:00
mbcache.c
mount.h
switch the remnants of releasing the mountpoint away from fs_pin
2019-07-16 22:52:37 -04:00
mpage.c
This is the 5.4.13 stable release
2020-01-17 23:38:39 +01:00
namei.c
ANDROID: GKI: set vfs-only exports into their own namespace
2020-07-07 18:07:10 +02:00
namespace.c
Linux 5.4.143
2021-08-27 22:38:57 +02:00
no-block.c
nsfs.c
open.c
ANDROID: GKI: set vfs-only exports into their own namespace
2020-07-07 18:07:10 +02:00
OWNERS
ANDROID: Add OWNERS files referring to the respective android-mainline OWNERS
2021-04-01 13:45:14 +00:00
pipe.c
pipe: increase minimum default pipe size to 2 pages
2021-08-12 13:21:02 +02:00
pnode.c
This is the 5.4.37 stable release
2020-05-02 09:01:51 +02:00
pnode.h
This is the 5.4.106 stable release
2021-03-17 17:55:32 +01:00
posix_acl.c
FROMLIST: Add flags option to get xattr method paired to __vfs_getxattr
2019-11-05 13:50:57 -08:00
proc_namespace.c
Merge 5.4-rc1-prelrease into android-mainline
2019-10-02 17:58:47 +02:00
read_write.c
ANDROID: GKI: set vfs-only exports into their own namespace
2020-07-07 18:07:10 +02:00
readdir.c
readdir: make sure to verify directory entry for legacy interfaces too
2021-04-21 12:56:16 +02:00
select.c
kernel, fs: Introduce and use set_restart_fn() and arch_set_restart_data()
2021-03-24 11:26:44 +01:00
seq_file.c
seq_file: disallow extremely large seq buffer allocations
2021-07-20 16:10:54 +02:00
signalfd.c
fs/signalfd.c: fix inconsistent return codes for signalfd4
2020-08-26 10:40:58 +02:00
splice.c
splice: only read in as much information as there is pipe buffer space
2019-12-17 19:56:52 +01:00
stack.c
stat.c
ANDROID: GKI: set vfs-only exports into their own namespace
2020-07-07 18:07:10 +02:00
statfs.c
vfs: Fix EOVERFLOW testing in put_compat_statfs64
2019-10-03 14:21:35 -07:00
super.c
vfs: remove lockdep bogosity in __sb_start_write
2020-11-24 13:29:01 +01:00
sync.c
timerfd.c
timerfd: Prepare for PREEMPT_RT
2019-08-01 20:51:23 +02:00
userfaultfd.c
This is the 5.4.136 stable release
2021-07-28 13:46:04 +02:00
utimes.c
Revert "ANDROID: vfs: Add setattr2 for filesystems with per mount permissions"
2020-05-29 14:48:38 +02:00
xattr.c
This is the 5.4.58 stable release
2020-08-11 18:37:58 +02:00