Commit 5f920d5
ext4: verify fast symlink length
Verify fast symlink length stored in inode->i_size matches the string
stored in the inode to avoid surprises from corrupted filesystems.
Reported-by: [email protected]
Tested-by: [email protected]
Fixes: bae8047 ("ext4: use inode_set_cached_link()")
Suggested-by: Darrick J. Wong <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Reviewed-by: Baokun Li <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>1 parent c8e008b commit 5f920d5
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5029 | 5029 | | |
5030 | 5030 | | |
5031 | 5031 | | |
5032 | | - | |
5033 | | - | |
| 5032 | + | |
| 5033 | + | |
| 5034 | + | |
| 5035 | + | |
| 5036 | + | |
| 5037 | + | |
| 5038 | + | |
| 5039 | + | |
| 5040 | + | |
| 5041 | + | |
5034 | 5042 | | |
5035 | 5043 | | |
5036 | 5044 | | |
| |||
0 commit comments