Commit afa8c51
ext4: ensure i_size is smaller than maxbytes
commit 1a77a02 upstream.
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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 3e8a5163bcd3d92d4fc3a3116e6eeb67fcdded60)1 parent 847243a commit afa8c51
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4939 | 4939 | | |
4940 | 4940 | | |
4941 | 4941 | | |
4942 | | - | |
| 4942 | + | |
| 4943 | + | |
4943 | 4944 | | |
4944 | 4945 | | |
4945 | 4946 | | |
| |||
0 commit comments