[Bug 286505] dlopen deadlocks when target library contains IFUNC

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 02 May 2025 07:39:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286505

--- Comment #3 from Konstantin Belousov <kib@FreeBSD.org> ---
(In reply to Dapeng Gao from comment #2)
In some sense, yes.  We already recurse on read locks (as any r/w lock allows).
Being able to rlock when wlock is already owned is also not a crime, just that
most current r/w locks implementations optimizations do not allow that.

But dropping rtld locks around calls into the user code is generally good,
since it avoids lot of problems besides rtld own locking.  So yes, my intent
is to keep that unlocks.  Unfortunately, it is not easy to do for the ifunc
resolvers in dlopen_object().

-- 
You are receiving this mail because:
You are the assignee for the bug.