aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRitesh Harjani <[email protected]>2020-05-05 15:43:14 +0000
committerTheodore Ts'o <[email protected]>2020-05-19 19:03:37 +0000
commit9f44eda19529b1c3eef50676dc54b8cd0aa86aa3 (patch)
tree2640df9bf7bd8f4fa637cc91d8b70fb45c94a400 /tools/perf/scripts/python
parentLinux 5.7-rc4 (diff)
downloadkernel-9f44eda19529b1c3eef50676dc54b8cd0aa86aa3.tar.gz
kernel-9f44eda19529b1c3eef50676dc54b8cd0aa86aa3.zip
ext4: fix EXT4_MAX_LOGICAL_BLOCK macro
ext4 supports max number of logical blocks in a file to be 0xffffffff. (This is since ext4_extent's ee_block is __le32). This means that EXT4_MAX_LOGICAL_BLOCK should be 0xfffffffe (starting from 0 logical offset). This patch fixes this. The issue was seen when ext4 moved to iomap_fiemap API and when overlayfs was mounted on top of ext4. Since overlayfs was missing filemap_check_ranges(), so it could pass a arbitrary huge length which lead to overflow of map.m_len logic. This patch fixes that. Fixes: d3b6f23f7167 ("ext4: move ext4_fiemap to use iomap framework") Reported-by: [email protected] Signed-off-by: Ritesh Harjani <[email protected]> Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Christoph Hellwig <[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')
0 files changed, 0 insertions, 0 deletions