HomeFreeBSD

rtld: unlock bind lock when calling into crt __pthread_distribute_static_tls…

Description

rtld: unlock bind lock when calling into crt __pthread_distribute_static_tls method

The method might require resolving and binding symbols, which means
recursing on the bind lock. It is safe to unlock the bind lock,
since we operate on the private object list, and user attempting to
unload an object from the list of not yet fully loaded objects caused
self-inflicted race.

It is similar to how we treat user' init/fini methods.

Reported by: stevek
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on Aug 18 2023, 7:52 PM
Parents
rG64fbda90da1b: Add atopcase, the Apple HID over SPI input driver
Branches
Unknown
Tags
Unknown