summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2026-09-16 16:49:37 +0100
committerDavid Sterba <dsterba@suse.com>2026-09-17 19:44:58 +0200
commitaeab4c62875748ecfd390a47ac1d91ea7c9a6abb (patch)
tree1cc3cfb82b0b82df38ec4887ce4ab1138f1d2f9e /tools/perf/scripts/python
parent97fcd34aa9fd73cefe3120ac9a82ca9d7763922f (diff)
downloadlinux-next-aeab4c62875748ecfd390a47ac1d91ea7c9a6abb.tar.gz
linux-next-aeab4c62875748ecfd390a47ac1d91ea7c9a6abb.zip
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions