Bug 662

Summary: Pthread_mutex usage is not safe between primar/secondary process
Product: DPDK Reporter: Stephen Hemminger (stephen)
Component: coreAssignee: dev
Status: UNCONFIRMED ---    
Severity: major CC: ajit.khaparde
Priority: Normal    
Version: 18.11   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Stephen Hemminger 2021-03-15 20:22:28 CET
Posix mutex's are by default private to the process creating them. Several places in DPDK use pthread_mutex to protect resources in a manner that is not safe when used with primary/secondary processes.

This problem was reported against failsafe driver, but it seems to be a wider problem (assumptions in DPDK). Initial report was on 18.11, but these bugs go back to original code in many cases.

Mutexes that are protecting data structures from multi-process model must call pthread_setpshared().