mbox series

[v2,0/3] Fixes for recursive dlopen (bug 31986)

Message ID cover.1723116962.git.fweimer@redhat.com
Headers show
Series Fixes for recursive dlopen (bug 31986) | expand

Message

Florian Weimer Aug. 8, 2024, 11:39 a.m. UTC
The original series triggered an assert in dlfcn/tst-static4 on
non-static-PIE targets.  First flagged by the Linaro 32-bit Arm CI bot.
Fixed by disabling the assert for static builds.

The first patch has already been applied.

Thanks,
Florian

Florian Weimer (3):
  elf: Run constructors on cyclic recursive dlopen (bug 31986)
  elf: Signal LA_ACT_CONSISTENT to auditors after RT_CONSISTENT switch
  elf: Signal RT_CONSISTENT after relocation processing in dlopen (bug
    31986)

 elf/Makefile                       |  12 ++++
 elf/dl-close.c                     |  10 +--
 elf/dl-open.c                      |  50 +++++++++++----
 elf/dl-support.c                   |   1 +
 elf/rtld.c                         |   6 +-
 elf/tst-dlopen-auditdup-auditmod.c | 100 +++++++++++++++++++++++++++++
 elf/tst-dlopen-auditdup.c          |  36 +++++++++++
 elf/tst-dlopen-auditdupmod.c       |  48 ++++++++++++++
 elf/tst-dlopen-recurse.c           |  34 ++++++++++
 elf/tst-dlopen-recursemod1.c       |  50 +++++++++++++++
 elf/tst-dlopen-recursemod2.c       |  66 +++++++++++++++++++
 11 files changed, 391 insertions(+), 22 deletions(-)
 create mode 100644 elf/tst-dlopen-auditdup-auditmod.c
 create mode 100644 elf/tst-dlopen-auditdup.c
 create mode 100644 elf/tst-dlopen-auditdupmod.c
 create mode 100644 elf/tst-dlopen-recurse.c
 create mode 100644 elf/tst-dlopen-recursemod1.c
 create mode 100644 elf/tst-dlopen-recursemod2.c


base-commit: 2d14f72c9abf188f4e25462b99024798b5acb5ec