freebsd-skq/libexec/rtld-elf
Alexander Kabaev 61adda8468 Make sure internal rtld malloc routines are not called from unlocked
contexts as rtld's malloc is not thread safe and is only supposed to be
called with exclusive bind lock already held.

The originating PR submitted a patch on top of different pre-requisite
workaroud for unsafe dlopen calls, and the patch was midief slighlty to apply
to stock sources for the purpose of this commit. Running rtld malloc from
unlocked contexts is a bug on its own.

PR: 126950
Submited by: Oleg Dolgov
2008-09-03 01:05:32 +00:00
..
amd64
arm
i386
ia64
mips
powerpc
sparc64
debug.c
debug.h
libmap.c
libmap.h
Makefile Enable GCC stack protection (aka Propolice) for userland: 2008-06-25 21:33:28 +00:00
malloc.c
map_object.c
rtld_lock.c Fix the problem with the C++ exception handling for the multithreaded 2008-05-06 09:27:41 +00:00
rtld_lock.h Fix the problem with the C++ exception handling for the multithreaded 2008-05-06 09:27:41 +00:00
rtld_tls.h
rtld.1 Make the meaning of the %A format specifier, as passed to 2008-05-15 10:47:14 +00:00
rtld.c Make sure internal rtld malloc routines are not called from unlocked 2008-09-03 01:05:32 +00:00
rtld.h
Symbol.map
xmalloc.c