From: ydroneaud@opteya.com (Yann Droneaud)
To: cocci@systeme.lip6.fr
Subject: [Cocci] [PATCH v2 0/3] coccinelle: catchup on memory allocation functions
Date: Mon, 23 May 2016 17:07:18 +0200 [thread overview]
Message-ID: <cover.1464013817.git.ydroneaud@opteya.com> (raw)
Hi,
Please find updated patches that remove coccicheck's
blindness regarding the following functions:
- kzfree()
- krealloc()
- __krealloc()
- devm_kmalloc()
- devm_kvasprintf()
- devm_kasprintf()
- devm_kmalloc_array()
- devm_kcalloc()
- devm_kstrdup()
- devm_kmemdup()
- devm_get_free_pages()
- free_pages()
- free_page()
Changes since v1 [1]:
- add kzfree() to ifnullfree.cocci
- added acked-by
(note: v1 was a single patch update to v0)
Changes since v0 [2]:
- don't use regular expression in kfree.cocci
[1] http://lkml.kernel.org/r/1456150168-24028-1-git-send-email-ydroneaud at opteya.com
[2] http://lkml.kernel.org/r/cover.1455638829.git.ydroneaud at opteya.com
Regards.
Yann Droneaud (3):
coccinelle: also catch kzfree() issues
coccinelle: recognize more devm_* memory allocation functions
coccinelle: catch krealloc() on devm_*() allocated memory
scripts/coccinelle/free/devm_free.cocci | 26 ++++++++++++++++++++++++++
scripts/coccinelle/free/ifnullfree.cocci | 4 +++-
scripts/coccinelle/free/kfree.cocci | 18 +++++++++++++++---
scripts/coccinelle/free/kfreeaddr.cocci | 6 +++++-
4 files changed, 49 insertions(+), 5 deletions(-)
--
2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: Yann Droneaud <ydroneaud@opteya.com>
To: Julia Lawall <Julia.Lawall@lip6.fr>,
Gilles Muller <Gilles.Muller@lip6.fr>,
Nicolas Palix <nicolas.palix@imag.fr>,
Michal Marek <mmarek@suse.com>
Cc: Tejun Heo <tj@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org,
Yann Droneaud <ydroneaud@opteya.com>,
Daniel Thompson <daniel.thompson@linaro.org>,
Eli Billauer <eli.billauer@gmail.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Himangi Saraogi <himangi774@gmail.com>,
Joe Perches <joe@perches.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Manish Badarkhe <badarkhe.manish@gmail.com>,
Pekka Enberg <penberg@cs.helsinki.fi>,
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
Wolfram Sang <w.sang@pengutronix.de>
Subject: [PATCH v2 0/3] coccinelle: catchup on memory allocation functions
Date: Mon, 23 May 2016 17:07:18 +0200 [thread overview]
Message-ID: <cover.1464013817.git.ydroneaud@opteya.com> (raw)
Hi,
Please find updated patches that remove coccicheck's
blindness regarding the following functions:
- kzfree()
- krealloc()
- __krealloc()
- devm_kmalloc()
- devm_kvasprintf()
- devm_kasprintf()
- devm_kmalloc_array()
- devm_kcalloc()
- devm_kstrdup()
- devm_kmemdup()
- devm_get_free_pages()
- free_pages()
- free_page()
Changes since v1 [1]:
- add kzfree() to ifnullfree.cocci
- added acked-by
(note: v1 was a single patch update to v0)
Changes since v0 [2]:
- don't use regular expression in kfree.cocci
[1] http://lkml.kernel.org/r/1456150168-24028-1-git-send-email-ydroneaud@opteya.com
[2] http://lkml.kernel.org/r/cover.1455638829.git.ydroneaud@opteya.com
Regards.
Yann Droneaud (3):
coccinelle: also catch kzfree() issues
coccinelle: recognize more devm_* memory allocation functions
coccinelle: catch krealloc() on devm_*() allocated memory
scripts/coccinelle/free/devm_free.cocci | 26 ++++++++++++++++++++++++++
scripts/coccinelle/free/ifnullfree.cocci | 4 +++-
scripts/coccinelle/free/kfree.cocci | 18 +++++++++++++++---
scripts/coccinelle/free/kfreeaddr.cocci | 6 +++++-
4 files changed, 49 insertions(+), 5 deletions(-)
--
2.7.4
next reply other threads:[~2016-05-23 15:07 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-23 15:07 Yann Droneaud [this message]
2016-05-23 15:07 ` [PATCH v2 0/3] coccinelle: catchup on memory allocation functions Yann Droneaud
2016-05-23 15:07 ` [Cocci] [PATCH v2 1/3] coccinelle: also catch kzfree() issues Yann Droneaud
2016-05-23 15:07 ` Yann Droneaud
2016-05-23 15:18 ` [Cocci] " Julia Lawall
2016-05-23 15:18 ` Julia Lawall
2016-06-20 13:24 ` [Cocci] " Michal Marek
2016-06-20 13:24 ` Michal Marek
2016-06-20 20:21 ` [Cocci] " Julia Lawall
2016-06-20 20:21 ` Julia Lawall
2016-06-21 9:43 ` [Cocci] " Michal Marek
2016-06-21 9:43 ` Michal Marek
2016-06-21 11:14 ` [Cocci] " Yann Droneaud
2016-06-21 11:14 ` Yann Droneaud
2016-06-21 11:17 ` [Cocci] " Julia Lawall
2016-06-21 11:17 ` Julia Lawall
2016-05-23 15:07 ` [Cocci] [PATCH v2 2/3] coccinelle: recognize more devm_* memory allocation functions Yann Droneaud
2016-05-23 15:07 ` Yann Droneaud
2016-05-23 15:07 ` [Cocci] [PATCH v2 3/3] coccinelle: catch krealloc() on devm_*() allocated memory Yann Droneaud
2016-05-23 15:07 ` Yann Droneaud
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=cover.1464013817.git.ydroneaud@opteya.com \
--to=ydroneaud@opteya.com \
--cc=cocci@systeme.lip6.fr \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.