[PATCH v2 0/6] fix process shared pthread mutexes
Stephen Hemminger
stephen at networkplumber.org
Thu Apr 23 17:05:54 CEST 2026
On Tue, 14 Apr 2026 07:39:52 -0700
Stephen Hemminger <stephen at networkplumber.org> wrote:
> Several drivers and the ethdev layer initialize pthread mutexes
> in shared memory with default (process-private) attributes.
> This is undefined behavior when secondary processes use them.
>
> This series adds PTHREAD_PROCESS_SHARED to all affected mutexes.
> All are on control paths (firmware mailbox, hotplug, flow ops,
> PHY negotiation) where sleeping is acceptable.
>
> See POSIX spec:
> https://pubs.opengroup.org/onlinepubs/009696899/functions/pthread_mutexattr_getpshared.html
>
> Bugzilla ID: 662
I would like someone to review and ack some or all of these patches.
More information about the dev
mailing list