glibc/sysdeps
Florian Weimer f4cba6ca1e dlfcn: Failures after dlmopen should not terminate process [BZ #15271]
Commit 9e78f6f6e7 ("Implement
_dl_catch_error, _dl_signal_error in libc.so [BZ #16628]") has the
side effect that distinct namespaces, as created by dlmopen, now have
separate implementations of the rtld exception mechanism.  This means
that the call to _dl_catch_error from libdl in a secondary namespace
does not actually install an exception handler because the
thread-local variable catch_hook in the libc.so copy in the secondary
namespace is distinct from that of the base namepace.  As a result, a
dlsym/dlopen/... failure in a secondary namespace terminates the process
with a dynamic linker error because it looks to the exception handler
mechanism as if no handler has been installed.

Backport notes: GLRO (dl_catch_error) is replaced with
_dl_catch_error_ptr to preserve _rtld_global_ro layout.

(cherry picked from commit b2964eb1d9)
2021-06-09 17:15:00 +02:00
..
aarch64 aarch64: Fix the list of tested IFUNC variants [BZ #26818] 2021-01-25 16:15:54 +00:00
alpha Update alpha libm-test-ulps 2021-01-28 14:05:14 -03:00
arc ARC: nofpu: Regenerate ulps 2021-01-17 16:39:45 -08:00
arm Update arm libm-test-ulps. 2021-01-18 20:22:51 +00:00
csky Update C-SKY libm-test-ulps 2021-01-23 19:00:00 +00:00
generic dlfcn: Failures after dlmopen should not terminate process [BZ #15271] 2021-06-09 17:15:00 +02:00
gnu Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
hppa Update hppa libm-test-ulps 2021-01-18 14:23:10 +00:00
htl Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
hurd Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
i386 configure: Check for static PIE support 2021-01-21 15:54:50 +00:00
ia64 Update ia64 libm-test-ulps 2021-01-28 14:05:15 -03:00
ieee754 math: Add BZ#18980 fix back on dbl-64 cosh 2021-01-11 16:56:33 -03:00
m68k Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mach Revert "linux: Move {f}xstat{at} to compat symbols" for static build 2021-01-21 14:11:53 -03:00
microblaze Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mips Update MIPS libm-test-ulps. 2021-01-18 21:36:00 +00:00
nios2 Update Nios II libm-test-ulps. 2021-04-01 20:14:50 +00:00
nptl nptl: Remove private futex optimization [BZ #27304] 2021-03-16 10:30:41 +01:00
posix posix: consume less entropy on tempname 2021-01-12 09:50:54 -03:00
powerpc powerpc: Fix handling of scv return error codes [BZ #27892] 2021-05-24 17:05:07 -03:00
pthread pthread_once hangs when init routine throws an exception [BZ #18435] 2021-03-16 10:28:58 +01:00
riscv riscv: Initialize $gp before resolving the IRELATIVE relocation 2021-01-10 21:25:16 -05:00
s390 S390: Also check vector support in memmove ifunc-selector [BZ #27511] 2021-03-26 10:58:56 +01:00
sh sh: Update libm-tests-ulps 2021-01-28 14:05:14 -03:00
sparc Update sparc libm-test-ulps 2021-01-28 14:05:14 -03:00
unix Remove PR_TAGGED_ADDR_ENABLE from sys/prctl.h 2021-04-14 09:22:26 +01:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
x86 x86: tst-cpu-features-supports.c: Update AMX check 2021-04-22 10:10:37 -07:00
x86_64 configure: Check for static PIE support 2021-01-21 15:54:50 +00:00