Re: [PATCH 4/9] tools: convert dso.refcnt from atomic_t to refcount_t

2017-02-22 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 22, 2017 at 05:37:46PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Feb 21, 2017 at 05:34:58PM +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 4/9] tools: convert dso.refcnt from atomic_t to refcount_t

2017-02-22 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 21, 2017 at 05:34:58PM +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.