mbox series

[v6,0/2] elf: Avoid re-initializing already allocated TLS in dlopen (bug 31717)

Message ID cover.1722547712.git.fweimer@redhat.com
Headers show
Series elf: Avoid re-initializing already allocated TLS in dlopen (bug 31717) | expand

Message

Florian Weimer Aug. 1, 2024, 9:31 p.m. UTC
This is just a rebase on the current main branch, with an elf/Makefile
test conflict resolved, and the comment changes that Carlos suggested.

Thanks,
Florian

Florian Weimer (2):
  elf: Clarify and invert second argument of _dl_allocate_tls_init
  elf: Avoid re-initializing already allocated TLS in dlopen (bug 31717)

 elf/Makefile                   |  30 ++++++++++
 elf/dl-open.c                  |  35 ++---------
 elf/dl-tls.c                   |  57 ++++++++++++++----
 elf/rtld.c                     |   2 +-
 elf/tst-dlopen-tlsreinit1.c    |  40 +++++++++++++
 elf/tst-dlopen-tlsreinit2.c    |  39 +++++++++++++
 elf/tst-dlopen-tlsreinit3.c    |   2 +
 elf/tst-dlopen-tlsreinit4.c    |   2 +
 elf/tst-dlopen-tlsreinitmod1.c |  20 +++++++
 elf/tst-dlopen-tlsreinitmod2.c |  30 ++++++++++
 elf/tst-dlopen-tlsreinitmod3.c | 102 +++++++++++++++++++++++++++++++++
 include/link.h                 |   1 +
 nptl/allocatestack.c           |   2 +-
 sysdeps/generic/ldsodefs.h     |  12 +---
 14 files changed, 321 insertions(+), 53 deletions(-)
 create mode 100644 elf/tst-dlopen-tlsreinit1.c
 create mode 100644 elf/tst-dlopen-tlsreinit2.c
 create mode 100644 elf/tst-dlopen-tlsreinit3.c
 create mode 100644 elf/tst-dlopen-tlsreinit4.c
 create mode 100644 elf/tst-dlopen-tlsreinitmod1.c
 create mode 100644 elf/tst-dlopen-tlsreinitmod2.c
 create mode 100644 elf/tst-dlopen-tlsreinitmod3.c


base-commit: ec119972cb2598c04ec7d4219e20506006836f64