Skip to contentSkip to conversation

Pthread_mutex usage is not safe between primar/secondary process

dpdk-dev [email protected] 1 participant 1 message Mar 15, 2021

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=662

            Bug ID: 662
           Summary: Pthread_mutex usage is not safe between
                    primar/secondary process
           Product: DPDK
           Version: 18.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: core
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.