Commit 4b36399
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>1 parent b841ca8 commit 4b36399
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4928 | 4928 | | |
4929 | 4929 | | |
4930 | 4930 | | |
4931 | | - | |
| 4931 | + | |
| 4932 | + | |
4932 | 4933 | | |
4933 | 4934 | | |
4934 | 4935 | | |
| |||
0 commit comments