[PATCH] Async signal safe TLS accesses

Carlos O'Donell carlos@redhat.com
Fri Dec 6 22:50:00 GMT 2013


On 12/05/2013 03:01 PM, Andrew Hunter wrote:
>     TLS accesses from initial-exec variables are async-signal-safe.  Even
>     dynamic-type accesses from shared objects loaded by ld.so at startup
>     are.  But dynamic accesses from dlopen()ed objects are not, which
>     means a lot of trouble for any sort of per-thread state we want to
>     use from signal handlers since we can't rely on always having
>     initial-exec.  Make all TLS access always signal safe.

Except for any TLSDESC based accesses which are still AS-unsafe?

Cheers,
Carlos.



More information about the Libc-alpha mailing list