Home
last modified time | relevance | path

Searched hist:"153 a6d299956983de890ffaf429e5904503eb94c" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/btrfs/
H A Dtree-checker.cdiff 153a6d299956983de890ffaf429e5904503eb94c Mon Sep 02 18:46:19 CDT 2019 Qu Wenruo <wqu@suse.com> btrfs: tree-checker: Check item size before reading file extent type

In check_extent_data_item(), we read file extent type without verifying
if the item size is valid.

Add such check to ensure the file extent type we read is correct.

The check is not as accurate as we need to cover both inline and regular
extents, so it only checks if the item size is larger or equal to inline
header.
So the existing size checks on inline/regular extents are still needed.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>