![]() |
|
Message-ID: <20250702022854.30301-1-rebecca.zhang.cn@windriver.com> Date: Wed, 2 Jul 2025 10:28:54 +0800 From: <rebecca.zhang.cn@...driver.com> To: <musl@...ts.openwall.com> CC: <rebecca.zhang.cn@...driver.com>, <wenbin.deng.cn@...driver.com> Subject: [PATCH] __libc_exit_fini forgets to do pthread_mutex_unlock From: Rebecca Zhang <rebecca.zhang.cn@...driver.com> This commit fixes the issue that __libc_exit_fini only do pthread_mutex_lock, but forget to do pthread_mutex_unlock. --- ldso/dynlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ldso/dynlink.c b/ldso/dynlink.c index ceca3c9..7885675 100644 --- a/ldso/dynlink.c +++ b/ldso/dynlink.c @@ -1492,6 +1492,7 @@ void __libc_exit_fini() fpaddr(p, dyn[DT_FINI])(); #endif } + pthread_mutex_unlock(&init_fini_lock); } void __ldso_atfork(int who) -- 2.34.1
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.