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]
Message-ID: <alpine.DEB.2.10.1602161818100.2685@hadrien>
Date:	Tue, 16 Feb 2016 18:18:42 +0100 (CET)
From:	Julia Lawall <julia.lawall@...6.fr>
To:	Yann Droneaud <ydroneaud@...eya.com>
cc:	Julia Lawall <Julia.Lawall@...6.fr>,
	Gilles Muller <Gilles.Muller@...6.fr>,
	Nicolas Palix <nicolas.palix@...g.fr>,
	Michal Marek <mmarek@...e.com>, Tejun Heo <tj@...nel.org>,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	cocci@...teme.lip6.fr, linux-kernel@...r.kernel.org,
	Joe Perches <joe@...ches.com>,
	Manish Badarkhe <badarkhe.manish@...il.com>,
	Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
	Eli Billauer <eli.billauer@...il.com>,
	Himangi Saraogi <himangi774@...il.com>,
	Geert Uytterhoeven <geert+renesas@...der.be>,
	Wolfram Sang <w.sang@...gutronix.de>,
	Daniel Thompson <daniel.thompson@...aro.org>
Subject: Re: [PATCH 2/3] coccinelle: recognize more devm_* memory allocation
 functions


On Tue, 16 Feb 2016, Yann Droneaud wrote:

> Updates free/devm_free.cocci to recognize functions added by:
>
> - commit 64c862a839a8 ('devres: add kernel standard devm_k.alloc functions')
> - commit e31108cad3de ('devres: introduce API "devm_kstrdup"')
> - commit 3046365bb470 ('devres: introduce API "devm_kmemdup')
> - commit 43339bed7010 ('devres: Add devm_get_free_pages API')
> - commit 75f2a4ead5d5 ('devres: Add devm_kasprintf and devm_kvasprintf API')
>
> See also Documentation/driver-model/devres.txt
>
> Cc: Joe Perches <joe@...ches.com>
> Cc: Manish Badarkhe <badarkhe.manish@...il.com>
> Cc: Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>
> Cc: Eli Billauer <eli.billauer@...il.com>
> Cc: Himangi Saraogi <himangi774@...il.com>
> Cc: Geert Uytterhoeven <geert+renesas@...der.be>
> Cc: Wolfram Sang <w.sang@...gutronix.de>
> Cc: Daniel Thompson <daniel.thompson@...aro.org>
> Signed-off-by: Yann Droneaud <ydroneaud@...eya.com>

Acked-by: Julia Lawall <julia.lawall@...6.fr>

> ---
>  scripts/coccinelle/free/devm_free.cocci | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
>
> diff --git a/scripts/coccinelle/free/devm_free.cocci b/scripts/coccinelle/free/devm_free.cocci
> index 83c03adec1c5..3794cd97494b 100644
> --- a/scripts/coccinelle/free/devm_free.cocci
> +++ b/scripts/coccinelle/free/devm_free.cocci
> @@ -29,8 +29,24 @@ expression x;
>  @@
>
>  (
> + x = devm_kmalloc(...)
> +|
> + x = devm_kvasprintf(...)
> +|
> + x = devm_kasprintf(...)
> +|
>   x = devm_kzalloc(...)
>  |
> + x = devm_kmalloc_array(...)
> +|
> + x = devm_kcalloc(...)
> +|
> + x = devm_kstrdup(...)
> +|
> + x = devm_kmemdup(...)
> +|
> + x = devm_get_free_pages(...)
> +|
>   x = devm_request_irq(...)
>  |
>   x = devm_ioremap(...)
> @@ -50,6 +66,10 @@ position p;
>  |
>  * kzfree@p(x)
>  |
> +* free_pages@p(x, ...)
> +|
> +* free_page@p(x)
> +|
>  * free_irq@p(x)
>  |
>  * iounmap@p(x)
> --
> 2.5.0
>
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ