diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-11-12 17:24:57 +0000 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-11-23 19:51:22 +0100 |
| commit | fd573263740371f76cad610cbcc70629b27f6c0c (patch) | |
| tree | 476be6cb972141f5b6361b7000bc5fba1fc1de5d /tools/perf/scripts/python/bin | |
| parent | 94973b2c0914743da136fe3dd05a06e00af0ec37 (diff) | |
btrfs: fiemap: deal with inline extent in fiemap_find_last_extent_offset()
In the while loop that finds the first file extent item, counting from the
end of the file, that is not a hole, we are accessing the disk_bytenr
field of each file extent item, which is wrong in case we have an item
that represents an inline extent. In that case the inline data starts at
the disk_bytenr offset and therefore we are reading user data or in case
the inline data is less than 8 bytes, we are accessing another region of
the leaf or even beyond the leaf boundaries in case it's the last item.
This should be a very rare case, as it implies having an inline extent
followed by a hole file extent item (the no-holes feature is not used).
Fixes: ac3c0d36a2a2 ("btrfs: make fiemap more efficient and accurate reporting extent sharedness")
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
