glibc 2.19 - asyn-signal safe TLS and ASan.
Paul Pluzhnikov
ppluzhnikov@google.com
Sat Jan 25 01:13:00 GMT 2014
On Fri, Jan 24, 2014 at 5:05 PM, Ondřej Bílka <neleai@seznam.cz> wrote:
> There would be a possible hack to override mmap and look for mmap that
> with dl_addr in backtrace.
That is unlikely to work:
(gdb) disas __signal_safe_memalign
Dump of assembler code for function __signal_safe_memalign:
...
0x00000000000103e2 <+114>: callq 0x18500 <mmap64>
...
That is, the call to mmap64 does not go through PLT, and overriding it is
just as difficult as overriding __signal_safe_memalign :-(
--
Paul Pluzhnikov
More information about the Libc-alpha
mailing list