diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-12-30 21:52:38 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-04-12 14:33:02 +0100 |
commit | 3237824fb057632817a8de508d1fcb1f2e6f5c7e (patch) | |
tree | f1f46bb16fe1c9181696888caebf3f3e4eefc3cc /sysdeps/x86_64/dl-tls.c | |
parent | 6b63f027658b2bbe41f2da374da0aff63a77647f (diff) | |
download | glibc-3237824fb057632817a8de508d1fcb1f2e6f5c7e.tar.gz glibc-3237824fb057632817a8de508d1fcb1f2e6f5c7e.tar.xz glibc-3237824fb057632817a8de508d1fcb1f2e6f5c7e.zip |
elf: Refactor _dl_update_slotinfo to avoid use after free
map is not valid to access here because it can be freed by a concurrent dlclose: during tls access (via __tls_get_addr) _dl_update_slotinfo is called without holding dlopen locks. So don't check the modid of map. The map == 0 and map != 0 code paths can be shared (avoiding the dtv resize in case of map == 0 is just an optimization: larger dtv than necessary would be fine too). -- v2: - commit message update
Diffstat (limited to 'sysdeps/x86_64/dl-tls.c')
0 files changed, 0 insertions, 0 deletions