From: Dan Carpenter <dan.carpenter@linaro.org>
To: Philip Li <philip.li@intel.com>
Cc: Matthew Sakai <msakai@redhat.com>,
oe-kbuild@lists.linux.dev, Mike Snitzer <snitzer@kernel.org>,
lkp@intel.com, oe-kbuild-all@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: drivers/md/dm-vdo/data-vio.c:976 vdo_launch_bio() warn: inconsistent returns '&pool->lock'.
Date: Tue, 29 Oct 2024 11:12:27 +0300 [thread overview]
Message-ID: <ba8d1a6f-1b4a-4ce2-a426-ce8de23f20b6@stanley.mountain> (raw)
In-Reply-To: <13937d22-46ac-480a-8956-f89a0fd295ac@stanley.mountain>
On Tue, Oct 29, 2024 at 11:07:07AM +0300, Dan Carpenter wrote:
> On Tue, Oct 29, 2024 at 03:15:47PM +0800, Philip Li wrote:
> > On Tue, Oct 29, 2024 at 11:03:07AM +0800, Philip Li wrote:
> > > On Mon, Oct 28, 2024 at 07:00:40PM -0400, Matthew Sakai wrote:
> > > > This should be addressed upstream by commit
> > > > 872564c501b72ae0c84af51084753e8652e4a84b ("dm vdo data-vio: silence sparse
> > > > warnings about locking context imbalances")
> > > >
> > > > That commit is from February. Would it be possible for these checks to use a
> > > > more up-to-date version of the code before warning us about things that have
> > > > already been addressed?
> > >
> > > Sorry about this Matt, the bot side will check why this happens and fix
> > > the issue asap to avoid meaningless report.
> >
> > Hi Matt and Dan, would you mind do a further check of this, per the re-test,
> > smatch warns as below on v6.12-rc3
> >
> > drivers/md/dm-vdo/data-vio.c:982 vdo_launch_bio() warn: inconsistent returns '&pool->lock'.
> > Locked on : 972,977
> > Unlocked on: 982
> >
> > The corresponding code of drivers/md/dm-vdo/data-vio.c is below
> >
>
> Ah. Right.
>
> The cross function DB doesn't scale well enough for the zero day bot to use so
> it didn't detect the fix. If we had the cross function DB then that silences
> the warning.
>
> 1) I re-wrote the locking check so it detected this bug where before it didn't.
> 2) The kbuild bot was using the new check on old code because Matthew Sakai
> did a branch based on 8 month old code.
That's not it, is it... The branch was based on the latest code, and the
kbuild-bot bisected it back to 8 months ago and it happened to be right.
Anyway, it's a rare coincidence.
regards,
dan carpenter
next prev parent reply other threads:[~2024-10-29 8:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-21 7:19 Dan Carpenter
2024-10-28 23:00 ` Matthew Sakai
2024-10-29 3:03 ` Philip Li
2024-10-29 7:15 ` Philip Li
2024-10-29 8:07 ` Dan Carpenter
2024-10-29 8:12 ` Dan Carpenter [this message]
2024-10-29 8:19 ` Dan Carpenter
2024-10-29 17:03 ` Matthew Sakai
2024-10-29 19:49 ` Dan Carpenter
2024-10-29 7:38 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ba8d1a6f-1b4a-4ce2-a426-ce8de23f20b6@stanley.mountain \
--to=dan.carpenter@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=msakai@redhat.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oe-kbuild@lists.linux.dev \
--cc=philip.li@intel.com \
--cc=snitzer@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®