This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: glibc 2.19 - asyn-signal safe TLS and ASan.
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Kostya Serebryany <kcc at google dot com>
- Cc: OndÅej BÃlka <neleai at seznam dot cz>, "Joseph S. Myers" <joseph at codesourcery dot com>, Andrew Hunter <ahh at google dot com>, "Carlos O'Donell" <carlos at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>, Roland McGrath <roland at hack dot frob dot com>, address-sanitizer at googlegroups dot com
- Date: Mon, 27 Jan 2014 07:37:23 -0800
- Subject: Re: glibc 2.19 - asyn-signal safe TLS and ASan.
- Authentication-results: sourceware.org; auth=none
- References: <52D0BCED dot 3000109 at redhat dot com> <52DDBF0E dot 8010501 at redhat dot com> <CAN=P9piS3Xczq2AKrzh4rsK9JxiHtJXawcQs9_+xsYXxrbLQWQ at mail dot gmail dot com> <CADroS=6vODmWCdBsynOf7oM9uVDymwdxrSDFbmD6kT5P9gbBRw at mail dot gmail dot com> <CAN=P9pgAYNZBUBbg2_SiwCjB5vXJ6ZXTNS=yoZWSvS3JoX1bGQ at mail dot gmail dot com> <52E2A098 dot 7060908 at google dot com> <Pine dot LNX dot 4 dot 64 dot 1401241747120 dot 9799 at digraph dot polyomino dot org dot uk> <CAN=P9pio-MWtJ=F4MmjA5_NJexv1nC12tR=Ue7iD3uq-ootG+w at mail dot gmail dot com> <20140125010534 dot GA14587 at domone dot podge> <CALoOobNc8mNUHLhry-hcqT6fx9m=HukMw1Sy41Q+uhRDBznbSw at mail dot gmail dot com> <20140125030232 dot GA14213 at domone dot podge> <CAN=P9pgiMRxxYK16ZaVje1AQbC+fQ=QUDhsdww5-8RWaiJswoA at mail dot gmail dot com>
On Mon, Jan 27, 2014 at 5:37 AM, Kostya Serebryany <kcc@google.com> wrote:
>> > How do I "export" __signal_safe_memalign? (I/d like to experiment myself)
>> You'll need this snippet of above patch: (line 61,5):
>
> Paul, I tried this:
>
> --- a/elf/Versions
> +++ b/elf/Versions
> @@ -62,5 +62,8 @@ ld {
>
> # Pointer protection.
> __pointer_chk_guard;
> + # for signal safe TLS
> + __signal_safe_malloc; __signal_safe_free; __signal_safe_memalign;
> + __signal_safe_realloc; __signal_safe_calloc;
> }
> }
>
> it did not help: "nm libc.so | grep signal_safe_memalign" is empty.
It probably did. I believe these functions are defined and used in
'ld.so', so try 'nm ld.so | grep signal_safe'.
--
Paul Pluzhnikov