glibc 2.19 - asyn-signal safe TLS and ASan.
Siddhesh Poyarekar
siddhesh@redhat.com
Fri Jan 24 07:59:00 GMT 2014
On Fri, Jan 24, 2014 at 11:46:22AM +0530, Siddhesh Poyarekar wrote:
> On Thu, Jan 23, 2014 at 01:59:08PM -0800, Andrew Hunter wrote:
> > FYI -- you could easily do the same thing with calls to
> > signal_safe_memalign from libc as a stopgap. (Well, we'd need to
> > export the symbols from libc, like I wanted to in the first place.)
>
> Or we could just add a thread-local flag that malloc looks at and if
> set, short-circuits its way to mmap and have signal_safe_malloc use
> it:
Jakub pointed out to me offline that this won't work when applications
override malloc. The alternate malloc may not necessarily be
async-signal safe and we'll have the same problem all over again.
Siddhesh
More information about the Libc-alpha
mailing list