Re: [PATCH 1/2] rcu: Do not release a wait-head from a GP kthread

2024-03-07 Thread Joel Fernandes
On 3/7/2024 7:57 AM, Uladzislau Rezki wrote: > On Wed, Mar 06, 2024 at 05:31:31PM -0500, Joel Fernandes wrote: >> >> >> On 3/5/2024 2:57 PM, Uladzislau Rezki (Sony) wrote: >>> Fix a below race by not releasing a wait-head from the >>> GP-kthread as it can lead for reusing it whereas a worker

Re: [PATCH 1/2] rcu: Do not release a wait-head from a GP kthread

2024-03-07 Thread Uladzislau Rezki
On Wed, Mar 06, 2024 at 05:31:31PM -0500, Joel Fernandes wrote: > > > On 3/5/2024 2:57 PM, Uladzislau Rezki (Sony) wrote: > > Fix a below race by not releasing a wait-head from the > > GP-kthread as it can lead for reusing it whereas a worker > > can still access it thus execute newly added

Re: [PATCH 1/2] rcu: Do not release a wait-head from a GP kthread

2024-03-07 Thread Uladzislau Rezki
On Thu, Mar 07, 2024 at 02:09:38AM -0500, Joel Fernandes wrote: > > > On 3/7/2024 1:21 AM, Joel Fernandes wrote: > > > > > > On 3/6/2024 5:31 PM, Joel Fernandes wrote: > >> > >> > >> On 3/5/2024 2:57 PM, Uladzislau Rezki (Sony) wrote: > >>> Fix a below race by not releasing a wait-head from

Re: [PATCH 1/2] rcu: Do not release a wait-head from a GP kthread

2024-03-07 Thread Uladzislau Rezki
On Thu, Mar 07, 2024 at 01:21:50AM -0500, Joel Fernandes wrote: > > > On 3/6/2024 5:31 PM, Joel Fernandes wrote: > > > > > > On 3/5/2024 2:57 PM, Uladzislau Rezki (Sony) wrote: > >> Fix a below race by not releasing a wait-head from the > >> GP-kthread as it can lead for reusing it whereas a

Re: [PATCH 1/2] rcu: Do not release a wait-head from a GP kthread

2024-03-07 Thread Uladzislau Rezki
On Wed, Mar 06, 2024 at 05:44:04PM -0500, Joel Fernandes wrote: > On Wed, Mar 6, 2024 at 5:31 PM Joel Fernandes wrote: > > > > > > > > On 3/5/2024 2:57 PM, Uladzislau Rezki (Sony) wrote: > > > Fix a below race by not releasing a wait-head from the > > > GP-kthread as it can lead for reusing it

Re: [PATCH 1/2] rcu: Do not release a wait-head from a GP kthread

2024-03-07 Thread Uladzislau Rezki
On Thu, Mar 07, 2024 at 01:04:25AM +0100, Frederic Weisbecker wrote: > Le Tue, Mar 05, 2024 at 08:57:19PM +0100, Uladzislau Rezki (Sony) a écrit : > > Fix a below race by not releasing a wait-head from the > > GP-kthread as it can lead for reusing it whereas a worker > > can still access it thus

Re: [PATCH 1/2] rcu: Do not release a wait-head from a GP kthread

2024-03-06 Thread Joel Fernandes
On 3/7/2024 1:21 AM, Joel Fernandes wrote: > > > On 3/6/2024 5:31 PM, Joel Fernandes wrote: >> >> >> On 3/5/2024 2:57 PM, Uladzislau Rezki (Sony) wrote: >>> Fix a below race by not releasing a wait-head from the >>> GP-kthread as it can lead for reusing it whereas a worker >>> can still

Re: [PATCH 1/2] rcu: Do not release a wait-head from a GP kthread

2024-03-06 Thread Joel Fernandes
On 3/6/2024 5:31 PM, Joel Fernandes wrote: > > > On 3/5/2024 2:57 PM, Uladzislau Rezki (Sony) wrote: >> Fix a below race by not releasing a wait-head from the >> GP-kthread as it can lead for reusing it whereas a worker >> can still access it thus execute newly added callbacks too >> early.

Re: [PATCH 1/2] rcu: Do not release a wait-head from a GP kthread

2024-03-06 Thread Frederic Weisbecker
Le Tue, Mar 05, 2024 at 08:57:19PM +0100, Uladzislau Rezki (Sony) a écrit : > Fix a below race by not releasing a wait-head from the > GP-kthread as it can lead for reusing it whereas a worker > can still access it thus execute newly added callbacks too > early. > > CPU 0

Re: [PATCH 1/2] rcu: Do not release a wait-head from a GP kthread

2024-03-06 Thread Joel Fernandes
On Wed, Mar 6, 2024 at 5:31 PM Joel Fernandes wrote: > > > > On 3/5/2024 2:57 PM, Uladzislau Rezki (Sony) wrote: > > Fix a below race by not releasing a wait-head from the > > GP-kthread as it can lead for reusing it whereas a worker > > can still access it thus execute newly added callbacks too

Re: [PATCH 1/2] rcu: Do not release a wait-head from a GP kthread

2024-03-06 Thread Joel Fernandes
On 3/5/2024 2:57 PM, Uladzislau Rezki (Sony) wrote: > Fix a below race by not releasing a wait-head from the > GP-kthread as it can lead for reusing it whereas a worker > can still access it thus execute newly added callbacks too > early. > > CPU 0 CPU 1 > -

[PATCH 1/2] rcu: Do not release a wait-head from a GP kthread

2024-03-05 Thread Uladzislau Rezki (Sony)
Fix a below race by not releasing a wait-head from the GP-kthread as it can lead for reusing it whereas a worker can still access it thus execute newly added callbacks too early. CPU 0 CPU 1 - - // wait_tail == HEAD1