Re: [PATCH] btrfs: parent bytenr must be aligned to sector size

From: David Sterba
Date: Fri Apr 28 2023 - 12:50:24 EST


On Wed, Apr 26, 2023 at 08:25:14PM +0800, Qu Wenruo wrote:
>
>
> On 2023/4/26 19:53, Анастасия Белова wrote:
> > From: Anastasia Belova <abelova@xxxxxxxxxxxxx>
> >
> > 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@xxxxxxxxxxxxx>
>
> Reviewed-by: Qu Wenruo <wqu@xxxxxxxx>
>
> 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.