mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Protect pthreads' mutexes against use-after-destroy
@ 2024-01-09 14:37 jvoisin
  2024-01-09 19:07 ` Rich Felker
  0 siblings, 1 reply; 10+ messages in thread
From: jvoisin @ 2024-01-09 14:37 UTC (permalink / raw)
  To: musl

Ohai,

as discussed on irc, Android's bionic has a check to prevent
use-after-destroy on phtread mutexes
(https://github.com/LineageOS/android_bionic/blob/e0aac7df6f58138dae903b5d456c947a3f8092ea/libc/bionic/pthread_mutex.cpp#L803),
and musl doesn't.

While odds are that this is a super-duper common bug, it would still be
nice to have this kind of protection, since it's cheap, and would
prevent/make it easy to diagnose weird states.

Is this something that should/could be implemented?

o/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-01-21 17:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-09 14:37 [musl] Protect pthreads' mutexes against use-after-destroy jvoisin
2024-01-09 19:07 ` Rich Felker
2024-01-09 23:27   ` enh
2024-01-10  1:58     ` Rich Felker
2024-01-12 16:53       ` enh
2024-01-10  1:55   ` Rich Felker
2024-01-10 21:24     ` Rich Felker
2024-01-21  3:43   ` Rich Felker
2024-01-21 12:06     ` julien.voisin
2024-01-21 17:03       ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).