HomeFreeBSD

rtld: do not call into ifunc resolvers with the bind lock write-locked

Description

rtld: do not call into ifunc resolvers with the bind lock write-locked

If filter needs to be loader, we restart after the lock upgrade. But
possible binds in the resolver itself would try to recurse on the lock,
which can be only done for the read locks.

PR: 286502
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on May 1 2025, 3:44 PM
Parents
rGbcbc19335a70: rtld: add lockstate_wlocked()
Branches
Unknown
Tags
Unknown