Bug 662 - Pthread_mutex usage is not safe between primar/secondary process
Summary: Pthread_mutex usage is not safe between primar/secondary process
Status: UNCONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: core (show other bugs)
Version: 18.11
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: dev
URL:
Depends on:
Blocks:
 
Reported: 2021-03-15 20:22 CET by Stephen Hemminger
Modified: 2021-03-16 02:42 CET (History)
1 user (show)



Attachments

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().

Note You need to log in before you can comment on or make changes to this bug.