diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-01-24 10:46:16 -0300 |
---|---|---|
committer | Carlos O'Donell <carlos@redhat.com> | 2022-03-29 17:02:24 -0400 |
commit | faedaa0f9a802820fb0f04e9d568db1e15326213 (patch) | |
tree | a0cc5c140cd5ddd20998871e9bb148a516c32da4 /wcsmbs/isoc99_vswscanf.c | |
parent | b8d11f955108dc1d444538dc31ef64c18d0142fc (diff) | |
download | glibc-faedaa0f9a802820fb0f04e9d568db1e15326213.tar.gz glibc-faedaa0f9a802820fb0f04e9d568db1e15326213.tar.xz glibc-faedaa0f9a802820fb0f04e9d568db1e15326213.zip |
elf: Fix initial-exec TLS access on audit modules (BZ #28096)
For audit modules and dependencies with initial-exec TLS, we can not set the initial TLS image on default loader initialization because it would already be set by the audit setup. However, subsequent thread creation would need to follow the default behaviour. This patch fixes it by setting l_auditing link_map field not only for the audit modules, but also for all its dependencies. This is used on _dl_allocate_tls_init to avoid the static TLS initialization at load time. Checked on x86_64-linux-gnu, i686-linux-gnu, and aarch64-linux-gnu. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com> (cherry picked from commit 254d3d5aef2fd8430c469e1938209ac100ebf132)
Diffstat (limited to 'wcsmbs/isoc99_vswscanf.c')
0 files changed, 0 insertions, 0 deletions