Powered by Linux
Re: Feature request: check for freeing an ERR_PTR — Semantic Matching Tool

Re: Feature request: check for freeing an ERR_PTR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 02, 2014 at 07:26:33AM -0400, Theodore Ts'o wrote:
> On Tue, Sep 02, 2014 at 12:35:50PM +0300, Dan Carpenter wrote:
> > Sure.  I have written a check to test for kfree and brelse of ERR_PTRs.
> > I'll test it today.
> 
> It would be good to have it also check for kmem_cache_free() and
> vfree(), and I suspect there are some other functions which also free
> memory that I'm forgetting off the top of my head.

Sure.  Let me mess with it for a bit and before pushing.  Meanwhile
here are the ext4 issues so far (linux-next from Monday).

fs/ext4/resize.c:647 setup_new_flex_group_blocks() error: 'bh' dereferencing possible ERR_PTR()
fs/ext4/namei.c:3345 ext4_rename() error: 'new.bh' dereferencing possible ERR_PTR()
fs/ext4/namei.c:3467 ext4_cross_rename() error: 'new.bh' dereferencing possible ERR_PTR()

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe smatch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux