glibc/csu
Szabolcs Nagy 17796419b5 rtld: Account static TLS surplus for audit modules
The new static TLS surplus size computation is

  surplus_tls = 192 * (nns-1) + 144 * nns + 512

where nns is controlled via the rtld.nns tunable. This commit
accounts audit modules too so nns = rtld.nns + audit modules.

rtld.nns should only include the namespaces required by the
application, namespaces for audit modules are accounted on top
of that so audit modules don't use up the static TLS that is
reserved for the application. This allows loading many audit
modules without tuning rtld.nns or using up static TLS, and it
fixes

FAIL: elf/tst-auditmany

Note that DL_NNS is currently a hard upper limit for nns, and
if rtld.nns + audit modules go over the limit that's a fatal
error. By default rtld.nns is 4 which allows 12 audit modules.

Counting the audit modules is based on existing audit string
parsing code, we cannot use GLRO(dl_naudit) before the modules
are actually loaded.
2020-07-08 17:32:56 +01:00
..
abi-note.c Rewrite abi-note.S in C. 2020-07-08 15:02:37 +01:00
check_fds.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dso_handle.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
elf-init.c Introduce <elf-initfini.h> and ELF_INITFINI for all architectures 2020-02-18 15:12:25 +01:00
errno-loc.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
errno.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gmon-start.c Introduce <elf-initfini.h> and ELF_INITFINI for all architectures 2020-02-18 15:12:25 +01:00
init-first.c Remove NO_CTORS_DTORS_SECTIONS macro 2020-05-18 15:39:34 +02:00
init.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
libc-start.c elf: Add initial flag argument to __libc_early_init 2020-04-29 15:44:03 +02:00
libc-tls.c rtld: Account static TLS surplus for audit modules 2020-07-08 17:32:56 +01:00
Makefile Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
start.c
static-reloc.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sysdep.c
version.c Update copyright dates not handled by scripts/update-copyrights. 2020-01-01 00:21:22 +00:00
Versions