[PATCH] eal/linux: prevent deadlocks on rte init and cleanup

David Marchand david.marchand at redhat.com
Fri Sep 29 16:32:49 CEST 2023


Hello Jonathan,

On Thu, Jul 20, 2023 at 7:19 AM Jonathan Erb
<jonathan.erb at threatblockr.com> wrote:
>
> Resolves a deadlock that can occur when multiple secondary
> processes are starting and stopping. A deadlock can occur because
> eal_memalloc_init() is taking a second unnecessary read lock.
> If another DPDK process that is terminating enters rte_eal_memory_detach()
> and acquires a write lock wait state before the starting process can
> acquire it's second read lock then no process will be able to proceed.
>
> Cc: stable at dpdk.org
>
> Signed-off-by: Jonathan Erb <jonathan.erb at threatblockr.com>

Thanks for the report and fix and sorry for the late reply.

Artemy came with a similar report and a more complete fix.
Could you confirm it works for you?

https://patchwork.dpdk.org/project/dpdk/list/?series=29463&state=%2A&archive=both


Thanks,

-- 
David Marchand



More information about the stable mailing list