lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 6 Jun 2011 16:57:31 -0500
From:	H Hartley Sweeten <hartleys@...ionengravers.com>
To:	Joe Perches <joe@...ches.com>, cocci <cocci@...u.dk>
CC:	Linux Kernel <linux-kernel@...r.kernel.org>,
	"dan.j.williams@...el.com" <dan.j.williams@...el.com>,
	"vinod.koul@...el.com" <vinod.koul@...el.com>
Subject: RE: [RFC] Convert "resource->end - resource->start + 1" to
 resource_size(resource) via coccinelle

On Monday, June 06, 2011 2:53 PM, Joe Perches wrote:
> On Mon, 2011-06-06 at 13:49 -0700, H Hartley Sweeten wrote:
>> Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
>> Cc: Dan Williams <dan.j.williams@...el.com> (supporter:ASYNCHRONOUS TRAN...)
>> Cc: Vinod Koul <vinod.koul@...el.com> (supporter:DMA GENERIC OFFLO...)
>
> Perhaps do a treewide update via:
>
> $ cat resource.cocci
> @@
> struct resource *ptr;
> @@
>
> - ptr->end - ptr->start + 1
> + resource_size(ptr)
>
> $ spatch -sp_file resource.cocci linux-2.6/

Joe,

I think most of the offenders were caught back in late 2009.

I found a couple old patches that I submitted back then that were never acked
so I just updated and reposted them.

Also, I have never looked at coccielle... ;-)

Regards,
Hartley

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ