public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Jones <davej@redhat.com>
To: "Bryan O'Sullivan" <bos@serpentine.com>
Cc: Al Viro <viro@ftp.linux.org.uk>,
	"David S. Miller" <davem@davemloft.net>,
	linux-kernel@vger.kernel.org
Subject: Re: filldir[64] oddness
Date: Thu, 9 Mar 2006 12:27:23 -0500	[thread overview]
Message-ID: <20060309172722.GB9876@redhat.com> (raw)
In-Reply-To: <1141924514.17294.18.camel@localhost.localdomain>

On Thu, Mar 09, 2006 at 09:15:14AM -0800, Bryan O'Sullivan wrote:
 > On Thu, 2006-03-09 at 12:07 -0500, Dave Jones wrote:
 > 
 > >  > About half of the ~50 reports I've looked at so far in their database
 > >  > have been false positives.  In most of those cases, it's not obvious how
 > >  > a checker might have gotten them right instead, though.
 > > 
 > > It seems to stumble quite a bit when faced with things that are
 > > free'd when refcounts drop to zero. (skbs, and kobjects).
 > 
 > Yes, or (in my case) stuff like "when this variable has value X, that
 > pointer can't possibly be NULL".

*nod*
It does call into question the "OMFG, there are 1000 bugs in the kernel"
hysteria that has found its way through various news forums.
The genuine bugs it does find are gold dust though.  There's a bunch
of stuff that's sat there for an eternity. It's just painstaking to
grovel through the reports weeding out the false positives.

A lot of the 'bugs' it's found are also not really going to make
the world stop turning soon. It even picked up a few cases of
code doing like.

void foo()
{
	int x;

	while (read status from hardware reg != READY)
		x++;
}

as uninitialised. Which is true, but as there's nothing
dependant on it, it's harmless.

		Dave

-- 
http://www.codemonkey.org.uk

  reply	other threads:[~2006-03-09 17:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-09  4:27 filldir[64] oddness Dave Jones
2006-03-09  4:32 ` David S. Miller
2006-03-09  4:38   ` Dave Jones
2006-03-09  4:40   ` Al Viro
2006-03-09 17:02     ` Bryan O'Sullivan
2006-03-09 17:07       ` Dave Jones
2006-03-09 17:15         ` Bryan O'Sullivan
2006-03-09 17:27           ` Dave Jones [this message]
2006-03-10  1:41       ` Kyle Moffett
2006-03-10  1:44         ` Al Viro
2006-03-09  4:33 ` Vadim Lobanov
2006-03-09  4:34 ` Stephen Rothwell
2006-03-09  4:38 ` Al Viro

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=20060309172722.GB9876@redhat.com \
    --to=davej@redhat.com \
    --cc=bos@serpentine.com \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@ftp.linux.org.uk \
    /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