Should glibc be fully reentrant? -- No. (Roland was right).
Florian Weimer
fweimer@redhat.com
Thu Dec 11 12:45:00 GMT 2014
On 12/11/2014 02:56 AM, Carlos O'Donell wrote:
> After serious review it seems like we will need to start by
> saying that an interposed malloc must operate as-if it were
> in async-signal context and use only those functions which
> are marked as async-signal-safe.
Practically speaking, this seems rather restrictive. Most mallocs need
locking, and implementations may want to use pthread mutexes. Those are
not async-signal-safe, and I doubt they can be made reentrant, either.
To clarify, I think the idea is fine, it's just the wording that needs
fine-tuning.
--
Florian Weimer / Red Hat Product Security
More information about the Libc-alpha
mailing list