From: Julia Lawall <julia.lawall@lip6.fr>
To: Elena Reshetova <elena.reshetova@intel.com>
Cc: julia.lawall@lip6.fr, linux-kernel@vger.kernel.org,
cocci@systeme.lip6.fr, Gilles.Muller@lip6.fr,
nicolas.palix@imag.fr, mmarek@suse.com, keescook@chromium.org,
ishkamiel@gmail.com
Subject: Re: [PATCH v3] provide rule for finding refcounters
Date: Wed, 16 Aug 2017 16:16:15 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.20.1708161609050.3169@hadrien> (raw)
In-Reply-To: <1502884342-10702-1-git-send-email-elena.reshetova@intel.com>
A few more small issues:
When you deleted the disjunction, you kept the surrounding parentheses.
you can drop them (lines 83 and 85).
I guess that the "del" regular expression is supposed to be matching
delete. But it also matches delayed, eg
net/batman-adv/bridge_loop_avoidance.c:1495:8-27:
atomic_dec_and_test variation before object free at line 1507.
In the following result, the lines are at least quite far apart. I don't
know if there is some way to consider this to be a false positive:
fs/btrfs/disk-io.c:708:14-33: atomic_dec_and_test
variation before object free at line 775.
julia
On Wed, 16 Aug 2017, Elena Reshetova wrote:
> changes in v3:
> Removed unnessesary rule 4 conditions pointed by Julia.
>
> changes in v2:
> Following the suggestion from Julia the first rule is split into
> 2. The output does not differ that much between these two versions,
> but rule became more precise.
>
> Elena Reshetova (1):
> Coccinelle: add atomic_as_refcounter script
>
> scripts/coccinelle/api/atomic_as_refcounter.cocci | 133 ++++++++++++++++++++++
> 1 file changed, 133 insertions(+)
> create mode 100644 scripts/coccinelle/api/atomic_as_refcounter.cocci
>
> --
> 2.7.4
>
>
next prev parent reply other threads:[~2017-08-16 14:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-16 11:52 Elena Reshetova
2017-08-16 11:52 ` [PATCH] Coccinelle: add atomic_as_refcounter script Elena Reshetova
2017-08-17 11:50 ` Julia Lawall
2017-08-29 9:01 ` Reshetova, Elena
2017-08-16 14:16 ` Julia Lawall [this message]
2017-08-29 8:54 ` [PATCH v3] provide rule for finding refcounters Reshetova, Elena
2017-08-29 9:23 ` Julia Lawall
2017-08-29 10:57 ` Reshetova, Elena
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=alpine.DEB.2.20.1708161609050.3169@hadrien \
--to=julia.lawall@lip6.fr \
--cc=Gilles.Muller@lip6.fr \
--cc=cocci@systeme.lip6.fr \
--cc=elena.reshetova@intel.com \
--cc=ishkamiel@gmail.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.com \
--cc=nicolas.palix@imag.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®