android_kernel_motorola_sm6375/fs/fuse
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Miklos Szeredi 5c9f44713f fuse: prevent overflow in copy_file_range return value
commit 1e08938c3694f707bb165535df352ac97a8c75c9 upstream.

The FUSE protocol uses struct fuse_write_out to convey the return value of
copy_file_range, which is restricted to uint32_t.  But the COPY_FILE_RANGE
interface supports a 64-bit size copies.

Currently the number of bytes copied is silently truncated to 32-bit, which
may result in poor performance or even failure to copy in case of
truncation to zero.

Reported-by: Florian Weimer <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Fixes: 88bc7d5097 ("fuse: add support for copy_file_range()")
Cc: <[email protected]> # v4.20
Signed-off-by: Miklos Szeredi <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2025-10-02 13:34:28 +02:00
..
acl.c
control.c treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
cuse.c treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
dev.c fuse: Initialize beyond-EOF page contents before setting uptodate 2024-09-04 13:14:49 +02:00
dir.c fuse: don't truncate cached, mutated symlink 2025-04-10 14:29:36 +02:00
file.c fuse: prevent overflow in copy_file_range return value 2025-10-02 13:34:28 +02:00
fuse_i.h fuse: don't unhash root 2024-04-13 12:51:25 +02:00
inode.c fuse: don't unhash root 2024-04-13 12:51:25 +02:00
Kconfig
Makefile
readdir.c fuse: nlookup missing decrement in fuse_direntplus_link 2023-09-23 11:00:00 +02:00
virtio_fs.c virtiofs: add filesystem context source name check 2025-05-02 07:39:21 +02:00
xattr.c fuse: use unsigned type for getxattr/listxattr size truncation 2024-09-12 11:03:51 +02:00