linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: smatch update / 2.5.64 / kbugs.org
@ 2003-03-07  6:45 dan carpenter
  2003-03-07  6:53 ` Oleg Drokin
  0 siblings, 1 reply; 8+ messages in thread
From: dan carpenter @ 2003-03-07  6:45 UTC (permalink / raw)
  To: green; +Cc: linux-kernel, smatch-discuss

From: Oleg Drokin <green@namesys.com>
> > The smatch bugs for kernel 2.5.64 are up.  The 
> > new url for the smatch bug database is http://kbugs.org.  
> 
> Unfortunatelly the bug database does not work. I mean I cannot connect to it.
> 

Crap...  sorry about that, I screwed up.

> This script can produce a lot less false positives with even more custom merge rules.
> Here's the diff that if run on fs/ext3/super.c from current bk tree, produces
> only one true bug. (your version from cvs produces one real bug and two false positives)
> (8 less hits on my default build).

I have uploaded your modifications to CVS.  I'll use it 
on the next kernel release.  The unfree.pl was just a few
modifications to the deference_check.pl so your patch
will cut down on the false positives with that also.

thanks,
dan carpenter


-- 
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Meet Singles
http://corp.mail.com/lavalife


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: smatch update / 2.5.64 / kbugs.org
@ 2003-03-07  8:32 dan carpenter
  0 siblings, 0 replies; 8+ messages in thread
From: dan carpenter @ 2003-03-07  8:32 UTC (permalink / raw)
  To: green; +Cc: linux-kernel, smatch-discuss

From: Oleg Drokin <green@namesys.com>
 
> Also is anybody working on "redundant assignments" stuff as described in Standford guys papers?
> 
 
I have been planning to write an equivelence module that
would save what variables where equivelent.  For example ...
a = b = kmalloc();
c = a;
... a, b and c are all equivelent.

The redundant assignment check looks for places that 
assign a variable to an equivelent variable.  You would 
need to check for this anyway as part of writing the 
equivelence module.

The equivelence module has other uses as well ...
a = b = kmalloc();
if (!a) {
        return -ENOMEM;
}
b->foo = bar;

Right now the dereference check prints a false positive
on those, but the equivelence module would fix that.

I don't have the "redundant code" paper in front of me, 
so I forget what other types of things they looked for.

regards,
dan carpenter

-- 
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Meet Singles
http://corp.mail.com/lavalife


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: smatch update / 2.5.64 / kbugs.org
@ 2003-03-06  8:15 dan carpenter
  0 siblings, 0 replies; 8+ messages in thread
From: dan carpenter @ 2003-03-06  8:15 UTC (permalink / raw)
  To: greg; +Cc: linux-kernel, smatch-discuss

From: Greg KH <greg@kroah.com>
> What I really need to know is, what are all of the reported errors in a
> specific portion of the kernel tree.  If you give some way to search
> based on filename and path, I think you will find a lot more people
> using the results of this tool.  I know I would :)
> 

You are right of course...  I'll do that tomorrow evenning. :)

> Also, what advantage does signing up for a user account on the kbugs.org
> site give you?
> 

I'm glad you asked.  When you log in then you can moderate 
the bugs as a bug or not a bug.  I am going to make that 
more obvious, by adding "Login to moderate" next to each 
bug when you look at the source.

Tracking bug moderations from one version to the next is 
basically working since 2.5.63.

thanks,
dan carpenter

-- 
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Meet Singles
http://corp.mail.com/lavalife


^ permalink raw reply	[flat|nested] 8+ messages in thread
* smatch update / 2.5.64 / kbugs.org
@ 2003-03-06  7:37 dan carpenter
  2003-03-06  7:42 ` Greg KH
  2003-03-06 15:37 ` Oleg Drokin
  0 siblings, 2 replies; 8+ messages in thread
From: dan carpenter @ 2003-03-06  7:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: smatch-discuss

/*  
 * Smatch is an open source c error checker based 
 * on the papers about the Stanford Checker. 
 * (http://smatch.sf.net)  The documentation on coding 
 * smatch checks has been updated since my last email to 
 * this list. 
 *
 */

The smatch bugs for kernel 2.5.64 are up.  The 
new url for the smatch bug database is http://kbugs.org.  

One new script from Monday was "UnFree."  This check 
looks for variables that aren't freed on the error paths.
http://kbugs.org/cgi-bin/index.py?page=bug_list&script=UnFree&kernel=2.5.64

The bug database is still under heavy construction (ie it
is really bad).  But I hope to improve it some more this
week.  Also I plan to add some documentation etc.

The possible bug count for 2.5.64 was 1018.  Eventually 
this information will all be available in a stats page but 
for now I'll just post the raw SQL...

mysql> select kernelver, script, count(script) from bugs where kernelver = "2.5.64" group by script, kernelver;
+-----------+-------------------+---------------+
| kernelver | script            | count(script) |
+-----------+-------------------+---------------+
| 2.5.64    | Dereference       |           469 |
| 2.5.64    | GFP_DMA           |             7 |
| 2.5.64    | ReleaseRegion     |            14 |
| 2.5.64    | SpinlockUndefined |            44 |
| 2.5.64    | SpinSleepLazy     |             4 |
| 2.5.64    | UncheckedReturn   |           119 |
| 2.5.64    | UnFree            |           333 |
| 2.5.64    | UnreachedCode     |            28 |
+-----------+-------------------+---------------+
8 rows in set (0.07 sec)

regards,
dan carpenter


-- 
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Meet Singles
http://corp.mail.com/lavalife


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-03-14  8:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-07  6:45 smatch update / 2.5.64 / kbugs.org dan carpenter
2003-03-07  6:53 ` Oleg Drokin
2003-03-14  8:25   ` Oleg Drokin
  -- strict thread matches above, loose matches on Subject: below --
2003-03-07  8:32 dan carpenter
2003-03-06  8:15 dan carpenter
2003-03-06  7:37 dan carpenter
2003-03-06  7:42 ` Greg KH
2003-03-06 15:37 ` Oleg Drokin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).