]> sourceware.org Git - glibc.git/commit
elf: Run constructors on cyclic recursive dlopen (bug 31986)
authorFlorian Weimer <fweimer@redhat.com>
Fri, 25 Oct 2024 14:50:10 +0000 (16:50 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 25 Oct 2024 14:50:10 +0000 (16:50 +0200)
commit9897ced8e78db5d813166a7ccccfd5a42c69ef20
tree9108d5467a61db2594fc4ffacbe46fd0db122ecd
parent4f5f8343c3af0630b72a27e8a3adaa3ed006455d
elf: Run constructors on cyclic recursive dlopen (bug 31986)

This is conceptually similar to the reported bug, but does not
depend on auditing.  The fix is simple: just complete execution
of the constructors.  This exposed the fact that the link map
for statically linked executables does not have l_init_called
set, even though constructors have run.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/Makefile
elf/dl-open.c
elf/dl-support.c
elf/tst-dlopen-recurse.c [new file with mode: 0644]
elf/tst-dlopen-recursemod1.c [new file with mode: 0644]
elf/tst-dlopen-recursemod2.c [new file with mode: 0644]
This page took 0.037548 seconds and 5 git commands to generate.