]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: ensure i_size is smaller than maxbytes
authorZhang Yi <yi.zhang@huawei.com>
Tue, 6 May 2025 01:20:09 +0000 (09:20 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 20 May 2025 14:31:06 +0000 (10:31 -0400)
commit1a77a028a392fab66dd637cdfac3f888450d00af
treecb82b4f16f9e1a11f3148cede77eb4a22071f095
parentdbe27f06fa38b9bfc598f8864ae1c5d5831d9992
ext4: ensure i_size is smaller than maxbytes

The inode i_size cannot be larger than maxbytes, check it while loading
inode from the disk.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Baokun Li <libaokun1@huawei.com>
Link: https://patch.msgid.link/20250506012009.3896990-4-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/inode.c