deepin-kernel/fs/orangefs
Matthew Wilcox (Oracle) e965f95569 orangefs: Do not truncate file size
[ Upstream commit 062e809359 ]

'len' is used to store the result of i_size_read(), so making 'len'
a size_t results in truncation to 4GiB on 32-bit systems.

Signed-off-by: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Link: https://lore.kernel.org/r/20250305204734.1475264-2-willy@infradead.org
Tested-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 121f0335d91e46369bf55b5da4167d82b099a166)
2025-06-10 10:34:57 +08:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile
acl.c fs: port acl to mnt_idmap 2023-01-19 09:24:28 +01:00
dcache.c fs: orangefs: fix error return code of orangefs_revalidate_lookup() 2021-10-11 14:25:34 -04:00
devorangefs-req.c
dir.c Orangefs: change iterate to iterate_shared 2022-10-03 13:05:38 -04:00
downcall.h
file.c orangefs: Provide a splice-read wrapper 2023-05-24 08:42:16 -06:00
inode.c orangefs: Do not truncate file size 2025-06-10 10:34:57 +08:00
namei.c orangefs: convert to ctime accessor functions 2023-07-24 10:30:03 +02:00
orangefs-bufmap.c orangefs: Fix the size of a memory allocation in orangefs_bufmap_alloc() 2021-12-31 14:37:43 -05:00
orangefs-bufmap.h orangefs: copy Orangefs-sized blocks into the pagecache if possible. 2019-05-03 14:32:39 -04:00
orangefs-cache.c
orangefs-debug.h
orangefs-debugfs.c orangefs: fix a oob in orangefs_debug_write 2025-03-01 15:49:02 +08:00
orangefs-debugfs.h orangefs: fix build warning from debugfs cleanup patch 2019-07-04 10:30:33 +02:00
orangefs-dev-proto.h
orangefs-kernel.h fs: drop the timespec64 argument from update_time 2023-08-11 09:04:57 +02:00
orangefs-mod.c orangefs: Fix sysfs not cleanup when dev init failed 2022-12-07 15:18:29 -05:00
orangefs-sysfs.c orangefs: Fix kmemleak in orangefs_sysfs_init() 2022-12-07 15:18:30 -05:00
orangefs-sysfs.h
orangefs-utils.c orangefs: convert to ctime accessor functions 2023-07-24 10:30:03 +02:00
protocol.h
super.c orangefs: fix out-of-bounds fsid access 2024-12-10 20:39:00 +08:00
symlink.c
upcall.h
waitqueue.c orangefs: service ops done for writeback are not killable 2019-05-03 14:32:38 -04:00
xattr.c fs: drop unused posix acl handlers 2023-03-06 09:57:12 +01:00