Re: [PATCH 01/16] rcu/nocb: Fix potential missed nocb_timer rearm

2021-01-28 Thread Frederic Weisbecker
On Thu, Jan 28, 2021 at 10:48:34AM -0800, Paul E. McKenney wrote: > On Thu, Jan 28, 2021 at 06:12:07PM +0100, Frederic Weisbecker wrote: > > The "nocb_bypass_timer" ends up calling wake_nocb_gp() which deletes > > the pending "nocb_timer" (note they are not the same timers) for the > > given rdp wi

[PATCH 01/16] rcu/nocb: Fix potential missed nocb_timer rearm

2021-01-28 Thread Frederic Weisbecker
The "nocb_bypass_timer" ends up calling wake_nocb_gp() which deletes the pending "nocb_timer" (note they are not the same timers) for the given rdp without resetting the matching state stored in nocb_defer wakeup. As a result, a future call_rcu() on that rdp may be fooled and think the timer is ar