Re: [PATCH] rcu: Fix data-race due to atomic_t copy-by-value

2019-10-14 Thread Paul E. McKenney
On Mon, Oct 14, 2019 at 02:00:39PM -0400, Joel Fernandes wrote: > On Wed, Oct 09, 2019 at 05:57:43PM +0200, Marco Elver wrote: > > This fixes a data-race where `atomic_t dynticks` is copied by value. The > > copy is performed non-atomically, resulting in a data-race if `dynticks` > > is updated con

Re: [PATCH] rcu: Fix data-race due to atomic_t copy-by-value

2019-10-14 Thread Marco Elver
On Mon, 14 Oct 2019 at 20:00, Joel Fernandes wrote: > > On Wed, Oct 09, 2019 at 05:57:43PM +0200, Marco Elver wrote: > > This fixes a data-race where `atomic_t dynticks` is copied by value. The > > copy is performed non-atomically, resulting in a data-race if `dynticks` > > is updated concurrently

Re: [PATCH] rcu: Fix data-race due to atomic_t copy-by-value

2019-10-14 Thread Joel Fernandes
On Wed, Oct 09, 2019 at 05:57:43PM +0200, Marco Elver wrote: > This fixes a data-race where `atomic_t dynticks` is copied by value. The > copy is performed non-atomically, resulting in a data-race if `dynticks` > is updated concurrently. > > This data-race was found with KCSAN: > =

Re: [PATCH] rcu: Fix data-race due to atomic_t copy-by-value

2019-10-09 Thread Paul E. McKenney
On Wed, Oct 09, 2019 at 05:57:43PM +0200, Marco Elver wrote: > This fixes a data-race where `atomic_t dynticks` is copied by value. The > copy is performed non-atomically, resulting in a data-race if `dynticks` > is updated concurrently. > > This data-race was found with KCSAN: > =

[PATCH] rcu: Fix data-race due to atomic_t copy-by-value

2019-10-09 Thread Marco Elver
This fixes a data-race where `atomic_t dynticks` is copied by value. The copy is performed non-atomically, resulting in a data-race if `dynticks` is updated concurrently. This data-race was found with KCSAN: == BUG: KCSAN: data-race i