]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
orangefs: Do not truncate file size
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 5 Mar 2025 20:47:25 +0000 (20:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:37:58 +0000 (14:37 +0200)
commit5111227d7f1f57f6804666b3abf780a23f44fc1d
tree0c03724b7acd6cc2a26868b22ecc9ab9deea288f
parent025c8f477625eb39006ded650e7d027bcfb20e79
orangefs: Do not truncate file size

[ Upstream commit 062e8093592fb866b8e016641a8b27feb6ac509d ]

'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>
fs/orangefs/inode.c