diff options
| author | Kemeng Shi <[email protected]> | 2023-02-21 19:59:14 +0800 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2023-03-23 23:00:08 -0400 |
| commit | 3d61ef10f521b5c6906a5ba71573d5503aee2aa5 (patch) | |
| tree | aa8c0e4c9b00ecb8a67c0767de2baeeeddd6351c /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | b5aa06bfe9ad13c75d425839ee2aca045e3c688c (diff) | |
ext4: correct validation check of inode table in ext4_valid_block_bitmap
1.Last valid cluster of inode table is EXT4_B2C(sbi, offset +
sbi->s_itb_per_group - 1). We should make sure last valid cluster is <
max_bit, i.e., EXT4_B2C(sbi, offset + sbi->s_itb_per_group - 1) is <
max_bit rather than EXT4_B2C(sbi, offset + sbi->s_itb_per_group) is
< max_bit.
2.Bit search length should be last valid cluster plus 1, i.e.,
EXT4_B2C(sbi, offset + sbi->s_itb_per_group - 1) + 1 rather than
EXT4_B2C(sbi, offset + sbi->s_itb_per_group).
Signed-off-by: Kemeng Shi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions