]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Keep using minimal malloc after early DTV resize (bug 32412)
authorFlorian Weimer <fweimer@redhat.com>
Thu, 13 Feb 2025 20:56:52 +0000 (21:56 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 13 Feb 2025 20:56:52 +0000 (21:56 +0100)
commitaa3d7bd5299b33bffc118aa618b59bfa66059bcb
treeb61943c560bdd2333ea0cd50c39f33b676c083a3
parent88f7ef881d1b9507aa934104c338b958c37821d7
elf: Keep using minimal malloc after early DTV resize (bug 32412)

If an auditor loads many TLS-using modules during startup, it is
possible to trigger DTV resizing.  Previously, the DTV was marked
as allocated by the main malloc afterwards, even if the minimal
malloc was still in use.  With this change, _dl_resize_dtv marks
the resized DTV as allocated with the minimal malloc.

The new test reuses TLS-using modules from other auditing tests.

Reviewed-by: DJ Delorie <dj@redhat.com>
elf/Makefile
elf/dl-tls.c
elf/tst-audit-tlsdesc-dlopen2.c [new file with mode: 0644]
elf/tst-auditmod-tlsdesc2.c [new file with mode: 0644]