[musl] Re: async-signal-safety of chroot
Florian Weimer
fweimer@redhat.com
Thu Sep 24 09:21:50 GMT 2026
* Rich Felker:
> musl makes clone roughly as safe as fork (see commit fa4a8abd06a4),
> and disallows flags that are not compatible with executing any part of
> libc in the child, but afaik glibc still has an anything-goes
> approach.
Yes, there is no filtering in glibc, and no update of the (shared) TCB.
Several web browsers longjmp out of the clone callback and patch the TCB
with the new TID, so that mutexes work as expected.
Thanks,
Florian
More information about the Libc-alpha
mailing list