diff options
author | Ye Bin <[email protected]> | 2022-09-24 15:52:33 +0800 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2022-09-30 23:46:54 -0400 |
commit | 1b45cc5c7b920fd8bf72e5a888ec7abeadf41e09 (patch) | |
tree | f713c0c592c21bd130b30067132605e428eda5f4 /fs/xfs/xfs_super.c | |
parent | dcc5827484d6e53ccda12334f8bbfafcc593ceda (diff) |
ext4: fix potential out of bound read in ext4_fc_replay_scan()
For scan loop must ensure that at least EXT4_FC_TAG_BASE_LEN space. If remain
space less than EXT4_FC_TAG_BASE_LEN which will lead to out of bound read
when mounting corrupt file system image.
ADD_RANGE/HEAD/TAIL is needed to add extra check when do journal scan, as this
three tags will read data during scan, tag length couldn't less than data length
which will read.
Cc: [email protected]
Signed-off-by: Ye Bin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_super.c')
0 files changed, 0 insertions, 0 deletions