btrfs: print-tree: parent bytenr must be aligned to sector size
authorAnastasia Belova <abelova@astralinux.ru>
Wed, 26 Apr 2023 11:53:23 +0000 (14:53 +0300)
committerDavid Sterba <dsterba@suse.com>
Tue, 9 May 2023 20:07:40 +0000 (22:07 +0200)
commitc87f318e6f47696b4040b58f460d5c17ea0280e6
treec1fc071519fe6e13a16f382249918147d3ac671b
parentd246331b78cbef86237f9c22389205bc9b4e1cc1
btrfs: print-tree: parent bytenr must be aligned to sector size

Check nodesize to sectorsize in alignment check in print_extent_item.
The comment states that and this is correct, similar check is done
elsewhere in the functions.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: ea57788eb76d ("btrfs: require only sector size alignment for parent eb bytenr")
CC: stable@vger.kernel.org # 4.14+
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Anastasia Belova <abelova@astralinux.ru>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/print-tree.c