]> sourceware.org Git - glibc.git/commit
Bug 20915: Do not initialize DTV of other threads.
authorAlexandre Oliva <aoliva@redhat.com>
Sat, 4 Feb 2017 01:35:16 +0000 (20:35 -0500)
committerCarlos O'Donell <carlos@systemhalted.org>
Sat, 4 Feb 2017 02:34:14 +0000 (21:34 -0500)
commitd675eaf7d99096a952c1d140abfed82c939fb259
treeaa4d46c8e5d704b3a8dfa8b38765e2710adccff2
parent33d7e138ca63b4091bba840c609a95cdcc56c10e
Bug 20915: Do not initialize DTV of other threads.

In _dl_nothread_init_static_tls() and init_one_static_tls() we must not
touch the DTV of other threads since we do not have ownership of them.
The DTV need not be initialized at this point anyway since only LD/GD
accesses will use them. If LD/GD accesses occur they will take care to
initialize their own thread's DTV.

Concurrency comments were removed from the patch since they need to be
reworked along with a full description of DTV ownership and when it is
or is not safe to modify these structures.

Alexandre Oliva's original patch and discussion:
https://sourceware.org/ml/libc-alpha/2016-09/msg00512.html
ChangeLog
elf/dl-reloc.c
nptl/allocatestack.c
This page took 0.042924 seconds and 5 git commands to generate.