Re: [PATCH 3/9] tools: convert comm_str.refcnt from atomic_t to refcount_t

2017-02-23 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 23, 2017 at 09:16:07AM +, Reshetova, Elena escreveu: > > Em Wed, Feb 22, 2017 at 07:20:45PM -0300, Arnaldo Carvalho de Melo > > > > make: *** [install-bin] Error 2 > > > > make: Leaving directory '/home/acme/git/linux/tools/perf' > > > > [acme@jouet linux]$ > > > > 3) not test buil

RE: [PATCH 3/9] tools: convert comm_str.refcnt from atomic_t to refcount_t

2017-02-23 Thread Reshetova, Elena
> Em Wed, Feb 22, 2017 at 07:20:45PM -0300, Arnaldo Carvalho de Melo > escreveu: > > Em Wed, Feb 22, 2017 at 05:33:50PM -0300, Arnaldo Carvalho de Melo > escreveu: > > > Em Tue, Feb 21, 2017 at 05:34:57PM +0200, Elena Reshetova escreveu: > > > > refcount_t type and corresponding API should be > > >

Re: [PATCH 3/9] tools: convert comm_str.refcnt from atomic_t to refcount_t

2017-02-22 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 22, 2017 at 07:20:45PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Feb 22, 2017 at 05:33:50PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Tue, Feb 21, 2017 at 05:34:57PM +0200, Elena Reshetova escreveu: > > > refcount_t type and corresponding API should be > > > used instea

Re: [PATCH 3/9] tools: convert comm_str.refcnt from atomic_t to refcount_t

2017-02-22 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 22, 2017 at 05:33:50PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Feb 21, 2017 at 05:34:57PM +0200, Elena Reshetova escreveu: > > refcount_t type and corresponding API should be > > used instead of atomic_t when the variable is used as > > a reference counter. This allows to av

Re: [PATCH 3/9] tools: convert comm_str.refcnt from atomic_t to refcount_t

2017-02-22 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 21, 2017 at 05:34:57PM +0200, Elena Reshetova escreveu: > refcount_t type and corresponding API should be > used instead of atomic_t when the variable is used as > a reference counter. This allows to avoid accidental > refcounter overflows that might lead to use-after-free > situations.