diff options
| author | 2026-09-16 16:49:37 +0100 | |
|---|---|---|
| committer | 2026-09-17 19:44:58 +0200 | |
| commit | aeab4c62875748ecfd390a47ac1d91ea7c9a6abb (patch) | |
| tree | 1cc3cfb82b0b82df38ec4887ce4ab1138f1d2f9e /scripts/Makefile.thinlto | |
| parent | btrfs: abort transaction on failure to update inode for hole punching and reflinking (diff) | |
btrfs: check if there is space for chunk item when validating sys chunk array
We checked if have enough remaining space for a key before dereferencing a
key, but we then dereference a chunk item, to get the number of stripes,
without checking if there is space for the item. So add a check to see if
there is enough space for a chunk item before dereferencing the item to
extract the stripe count.
Fixes: 2a9bb78cfd36 ("btrfs: validate system chunk array at btrfs_validate_super()")
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
