Re: [PATCH] eal: fix thread race in control thread creation

2023-03-01 Thread David Marchand
On Mon, Feb 27, 2023 at 6:17 PM Tyler Retzlaff wrote: > > When ctrl_thread_init transitions params->ctrl_thread_status from > CTRL_THREAD_LAUNCHING the creating thread and new thread may run > concurrently leading to unsynchronized access to params. > > This permits races for both the failure and

[PATCH] eal: fix thread race in control thread creation

2023-02-27 Thread Tyler Retzlaff
When ctrl_thread_init transitions params->ctrl_thread_status from CTRL_THREAD_LAUNCHING the creating thread and new thread may run concurrently leading to unsynchronized access to params. This permits races for both the failure and success paths after ctrl_thread_status is stored. * params->ret