[lvc-project] [PATCH] btrfs: parent bytenr must be aligned to sector size
David Sterba
dsterba at suse.cz
Fri Apr 28 19:44:25 MSK 2023
On Wed, Apr 26, 2023 at 08:25:14PM +0800, Qu Wenruo wrote:
>
>
> On 2023/4/26 19:53, Анастасия Белова wrote:
> > From: Anastasia Belova <abelova at astralinux.ru>
> >
> > Change nodesize to sectorsize in alignment check
> > in print_extent_item. Change requirement in comment.
> >
> > Found by Linux Verification Center (linuxtesting.org) with SVACE.
> >
> > Fixes: ea57788eb76d ("btrfs: require only sector size alignment for parent eb bytenr")
> > Signed-off-by: Anastasia Belova <abelova at astralinux.ru>
>
> Reviewed-by: Qu Wenruo <wqu at suse.com>
>
> A little surprised that a static checker can even find such hidden problem.
I've seen in Coverity a fuzzy report like "there are 8 cases that do
thing X and this one does not, is it expected?" which is basically just
pattern matching but can be caused by copy&paste mistakes.
More information about the lvc-project
mailing list