From: Dan Carpenter <dan.carpenter@oracle.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: build regressions 2013-04-12
Date: Fri, 12 Apr 2013 18:46:47 +0000 [thread overview]
Message-ID: <20130412184647.GD6638@mwanda> (raw)
In-Reply-To: <516844ac.FQynwILU0vkREm5c%fengguang.wu@intel.com>
On Sat, Apr 13, 2013 at 01:30:20AM +0800, Fengguang Wu wrote:
> [smatch]
> net/9p/trans_rdma.c:511 rdma_request() warn: inconsistent returns sem:&rdma->sq_sem: locked (497 [s32min-s32max]) unlocked (501 [(-5)], 511 [0], 511 [s32min-(-1),1-s32max], 511 [0])
These are not actually new warnings, I've just changed it to
include the return values.
So in net/9p/trans_rdma.c on line 497 then we don't know the return
value. This is because it is:
return qp->device->post_send(qp, send_wr, bad_send_wr);
and Smatch only knows is that it is returning an in.
Line 501 is "return -EIO;" which is -5.
According to your output line 511 can return 3 different things:
zero, non-zero, or zero.
Why does it say we are returning zero on this error path? And why
doesn't it list the -ENOMEM (-12) returns? I can't reproduce this
on my system so I'm not sure. It could be that I have fixed a
Smatch bug but not pushed it yet, or it could be a bug in the
kernel you are testing.
On my system, the database has slightly more data so initialy it
didn't try to break the return values appart on line 511. It just
said that it returned non-zero. I have an idea that we can actually
break about the return here without hurting performance.
With that change applied it now says:
"511 [(-12)], 511 [s32min-(-1),1-s32max], 511 [(-12)], 511 [(-12)]"
In otherwords there are 3 paths where we set "err = -ENOMEM;" and
one where error is a non-zero error code.
I think maybe this output is too noisy and not useful. What do you
guys think? I could change it back.
The main thing is that check_locking.c has fewer false positives
now.
regards,
dan carpenter
prev parent reply other threads:[~2013-04-12 18:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-12 17:30 build regressions 2013-04-12 Fengguang Wu
2013-04-12 18:46 ` Dan Carpenter [this message]
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=20130412184647.GD6638@mwanda \
--to=dan.carpenter@oracle.com \
--cc=kernel-janitors@vger.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