[PATCH] Coccinelle: add atomic_as_refcounter script

2017-09-01 Thread Elena Reshetova
atomic_as_refcounter.cocci script allows detecting cases when refcount_t type and API should be used instead of atomic_t. Signed-off-by: Elena Reshetova Acked-by: Julia Lawall --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 131

[PATCH] Coccinelle: add atomic_as_refcounter script

2017-09-01 Thread Elena Reshetova
atomic_as_refcounter.cocci script allows detecting cases when refcount_t type and API should be used instead of atomic_t. Signed-off-by: Elena Reshetova Acked-by: Julia Lawall --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 131 ++ 1 file changed, 131 insertions(+)

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-31 Thread Reshetova, Elena
> On Wed, 30 Aug 2017, Reshetova, Elena wrote: > > > > > > > > > On Wed, 30 Aug 2017, Elena Reshetova wrote: > > > > > > > atomic_as_refcounter.cocci script allows detecting > > > > cases when refcount_t type and API should be used > > > > instead of atomic_t. > > > > > > > > Signed-off-by: Elena

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-31 Thread Reshetova, Elena
> On Wed, 30 Aug 2017, Reshetova, Elena wrote: > > > > > > > > > On Wed, 30 Aug 2017, Elena Reshetova wrote: > > > > > > > atomic_as_refcounter.cocci script allows detecting > > > > cases when refcount_t type and API should be used > > > > instead of atomic_t. > > > > > > > > Signed-off-by: Elena

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-30 Thread Julia Lawall
On Wed, 30 Aug 2017, Reshetova, Elena wrote: > > > > > On Wed, 30 Aug 2017, Elena Reshetova wrote: > > > > > atomic_as_refcounter.cocci script allows detecting > > > cases when refcount_t type and API should be used > > > instead of atomic_t. > > > > > > Signed-off-by: Elena Reshetova

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-30 Thread Julia Lawall
On Wed, 30 Aug 2017, Reshetova, Elena wrote: > > > > > On Wed, 30 Aug 2017, Elena Reshetova wrote: > > > > > atomic_as_refcounter.cocci script allows detecting > > > cases when refcount_t type and API should be used > > > instead of atomic_t. > > > > > > Signed-off-by: Elena Reshetova > > > >

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-30 Thread Reshetova, Elena
> > On Wed, 30 Aug 2017, Elena Reshetova wrote: > > > atomic_as_refcounter.cocci script allows detecting > > cases when refcount_t type and API should be used > > instead of atomic_t. > > > > Signed-off-by: Elena Reshetova > > Acked-by: Julia Lawall

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-30 Thread Reshetova, Elena
> > On Wed, 30 Aug 2017, Elena Reshetova wrote: > > > atomic_as_refcounter.cocci script allows detecting > > cases when refcount_t type and API should be used > > instead of atomic_t. > > > > Signed-off-by: Elena Reshetova > > Acked-by: Julia Lawall Thank you very much Julia! What is the

Re: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-30 Thread Julia Lawall
On Wed, 30 Aug 2017, Elena Reshetova wrote: > atomic_as_refcounter.cocci script allows detecting > cases when refcount_t type and API should be used > instead of atomic_t. > > Signed-off-by: Elena Reshetova Acked-by: Julia Lawall > --- >

Re: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-30 Thread Julia Lawall
On Wed, 30 Aug 2017, Elena Reshetova wrote: > atomic_as_refcounter.cocci script allows detecting > cases when refcount_t type and API should be used > instead of atomic_t. > > Signed-off-by: Elena Reshetova Acked-by: Julia Lawall > --- > scripts/coccinelle/api/atomic_as_refcounter.cocci |

[PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-30 Thread Elena Reshetova
atomic_as_refcounter.cocci script allows detecting cases when refcount_t type and API should be used instead of atomic_t. Signed-off-by: Elena Reshetova --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 131 ++ 1 file changed, 131

[PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-30 Thread Elena Reshetova
atomic_as_refcounter.cocci script allows detecting cases when refcount_t type and API should be used instead of atomic_t. Signed-off-by: Elena Reshetova --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 131 ++ 1 file changed, 131 insertions(+) create mode 100644

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-29 Thread Reshetova, Elena
> > +identifier fname =~ ".*free.*"; > > +identifier fname2 =~ ".*destroy.*"; > > +identifier fname3 =~ ".*del.*"; > > +identifier fname4 =~ ".*queue_work.*"; > > +identifier fname5 =~ ".*schedule_work.*"; > > +identifier fname6 =~ ".*call_rcu.*"; > > Personally, I find the above regular

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-29 Thread Reshetova, Elena
> > +identifier fname =~ ".*free.*"; > > +identifier fname2 =~ ".*destroy.*"; > > +identifier fname3 =~ ".*del.*"; > > +identifier fname4 =~ ".*queue_work.*"; > > +identifier fname5 =~ ".*schedule_work.*"; > > +identifier fname6 =~ ".*call_rcu.*"; > > Personally, I find the above regular

Re: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-17 Thread Julia Lawall
> +identifier fname =~ ".*free.*"; > +identifier fname2 =~ ".*destroy.*"; > +identifier fname3 =~ ".*del.*"; > +identifier fname4 =~ ".*queue_work.*"; > +identifier fname5 =~ ".*schedule_work.*"; > +identifier fname6 =~ ".*call_rcu.*"; Personally, I find the above regular expressions much easier

Re: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-17 Thread Julia Lawall
> +identifier fname =~ ".*free.*"; > +identifier fname2 =~ ".*destroy.*"; > +identifier fname3 =~ ".*del.*"; > +identifier fname4 =~ ".*queue_work.*"; > +identifier fname5 =~ ".*schedule_work.*"; > +identifier fname6 =~ ".*call_rcu.*"; Personally, I find the above regular expressions much easier

[PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-16 Thread Elena Reshetova
atomic_as_refcounter.cocci script allows detecting cases when refcount_t type and API should be used instead of atomic_t. Signed-off-by: Elena Reshetova --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 133 ++ 1 file changed, 133

[PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-16 Thread Elena Reshetova
atomic_as_refcounter.cocci script allows detecting cases when refcount_t type and API should be used instead of atomic_t. Signed-off-by: Elena Reshetova --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 133 ++ 1 file changed, 133 insertions(+) create mode 100644

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-15 Thread Reshetova, Elena
> On Mon, 14 Aug 2017, Elena Reshetova wrote: > > > atomic_as_refcounter.cocci script allows detecting > > cases when refcount_t type and API should be used > > instead of atomic_t. > > > > Signed-off-by: Elena Reshetova > > --- > >

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-15 Thread Reshetova, Elena
> On Mon, 14 Aug 2017, Elena Reshetova wrote: > > > atomic_as_refcounter.cocci script allows detecting > > cases when refcount_t type and API should be used > > instead of atomic_t. > > > > Signed-off-by: Elena Reshetova > > --- > > scripts/coccinelle/api/atomic_as_refcounter.cocci | 148 >

Re: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-14 Thread Julia Lawall
On Mon, 14 Aug 2017, Elena Reshetova wrote: > atomic_as_refcounter.cocci script allows detecting > cases when refcount_t type and API should be used > instead of atomic_t. > > Signed-off-by: Elena Reshetova > --- > scripts/coccinelle/api/atomic_as_refcounter.cocci |

Re: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-14 Thread Julia Lawall
On Mon, 14 Aug 2017, Elena Reshetova wrote: > atomic_as_refcounter.cocci script allows detecting > cases when refcount_t type and API should be used > instead of atomic_t. > > Signed-off-by: Elena Reshetova > --- > scripts/coccinelle/api/atomic_as_refcounter.cocci | 148 >

[PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-14 Thread Elena Reshetova
atomic_as_refcounter.cocci script allows detecting cases when refcount_t type and API should be used instead of atomic_t. Signed-off-by: Elena Reshetova --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 148 ++ 1 file changed, 148

[PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-14 Thread Elena Reshetova
atomic_as_refcounter.cocci script allows detecting cases when refcount_t type and API should be used instead of atomic_t. Signed-off-by: Elena Reshetova --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 148 ++ 1 file changed, 148 insertions(+) create mode 100644

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-07 Thread Reshetova, Elena
> On Tue, 18 Jul 2017, Elena Reshetova wrote: > > > atomic_as_refcounter.cocci script allows detecting > > cases when refcount_t type and API should be used > > instead of atomic_t. > > > > Signed-off-by: Elena Reshetova > > --- > >

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-07 Thread Reshetova, Elena
> On Tue, 18 Jul 2017, Elena Reshetova wrote: > > > atomic_as_refcounter.cocci script allows detecting > > cases when refcount_t type and API should be used > > instead of atomic_t. > > > > Signed-off-by: Elena Reshetova > > --- > > scripts/coccinelle/api/atomic_as_refcounter.cocci | 102 >

Re: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-04 Thread Julia Lawall
On Tue, 18 Jul 2017, Elena Reshetova wrote: > atomic_as_refcounter.cocci script allows detecting > cases when refcount_t type and API should be used > instead of atomic_t. > > Signed-off-by: Elena Reshetova > --- > scripts/coccinelle/api/atomic_as_refcounter.cocci |

Re: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-04 Thread Julia Lawall
On Tue, 18 Jul 2017, Elena Reshetova wrote: > atomic_as_refcounter.cocci script allows detecting > cases when refcount_t type and API should be used > instead of atomic_t. > > Signed-off-by: Elena Reshetova > --- > scripts/coccinelle/api/atomic_as_refcounter.cocci | 102 >

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-07-19 Thread Reshetova, Elena
On Tue, Jul 18, 2017 at 12:48 AM, Elena Reshetova > wrote: > > atomic_as_refcounter.cocci script allows detecting > > cases when refcount_t type and API should be used > > instead of atomic_t. > > > > Signed-off-by: Elena Reshetova > > --- >

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-07-19 Thread Reshetova, Elena
On Tue, Jul 18, 2017 at 12:48 AM, Elena Reshetova > wrote: > > atomic_as_refcounter.cocci script allows detecting > > cases when refcount_t type and API should be used > > instead of atomic_t. > > > > Signed-off-by: Elena Reshetova > > --- > > scripts/coccinelle/api/atomic_as_refcounter.cocci

Re: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-07-18 Thread Kees Cook
On Tue, Jul 18, 2017 at 12:48 AM, Elena Reshetova wrote: > atomic_as_refcounter.cocci script allows detecting > cases when refcount_t type and API should be used > instead of atomic_t. > > Signed-off-by: Elena Reshetova > --- >

Re: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-07-18 Thread Kees Cook
On Tue, Jul 18, 2017 at 12:48 AM, Elena Reshetova wrote: > atomic_as_refcounter.cocci script allows detecting > cases when refcount_t type and API should be used > instead of atomic_t. > > Signed-off-by: Elena Reshetova > --- > scripts/coccinelle/api/atomic_as_refcounter.cocci | 102 >

[PATCH] Coccinelle: add atomic_as_refcounter script

2017-07-18 Thread Elena Reshetova
atomic_as_refcounter.cocci script allows detecting cases when refcount_t type and API should be used instead of atomic_t. Signed-off-by: Elena Reshetova --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 102 ++ 1 file changed, 102

[PATCH] Coccinelle: add atomic_as_refcounter script

2017-07-18 Thread Elena Reshetova
atomic_as_refcounter.cocci script allows detecting cases when refcount_t type and API should be used instead of atomic_t. Signed-off-by: Elena Reshetova --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 102 ++ 1 file changed, 102 insertions(+) create mode 100644