]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:36:00 +0000 (11:36 +0200)
commit211b7c014a652f98e40a8b4510ef669933566744
treecde3a9b9ed7929a73e1849ea0e0b71c10f83dd18
parentae1f9819a6efa99f3a3728a968b36ff8e297485b
btrfs: print-tree: parent bytenr must be aligned to sector size

commit c87f318e6f47696b4040b58f460d5c17ea0280e6 upstream.

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: 73d6f4ac708c ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/print-tree.c