This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [BZ#17090/17620/17621]: fix DTV race, assert, and DTV_SURPLUS Static TLS limit
- From: Szabolcs Nagy <szabolcs dot nagy at arm dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: Richard Henderson <rth at twiddle dot net>, Alan Modra <amodra at gmail dot com>, Roland McGrath <roland at hack dot frob dot com>, "codonell at redhat dot com" <codonell at redhat dot com>, "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>, "rth at redhat dot com" <rth at redhat dot com>
- Date: Tue, 09 Jun 2015 10:38:37 +0100
- Subject: Re: [BZ#17090/17620/17621]: fix DTV race, assert, and DTV_SURPLUS Static TLS limit
- Authentication-results: sourceware.org; auth=none
- References: <ord28kkvpq dot fsf at free dot home> <20141118224048 dot 600312C3B23 at topped-with-meat dot com> <orppcjotfm dot fsf at free dot home> <20141120021703 dot 86F032C3B18 at topped-with-meat dot com> <or8uj6qse8 dot fsf at free dot home> <oroas0mzri dot fsf at free dot home> <orlhmgyall dot fsf at free dot home> <orlhlgdb8d dot fsf at livre dot home> <ormw411b25 dot fsf at livre dot home> <20150304050529 dot GD26435 at bubble dot grove dot modra dot org> <20150304110430 dot GE26435 at bubble dot grove dot modra dot org> <ory4nb6mmc dot fsf at livre dot home> <orlhja7vgs dot fsf at livre dot home> <55072871 dot 3060104 at twiddle dot net> <oregoomeda dot fsf at livre dot home> <55098FCB dot 8050607 at arm dot com> <orwpzdy20k dot fsf at livre dot home>
On 09/06/15 04:49, Alexandre Oliva wrote:
> On Mar 18, 2015, Szabolcs Nagy <szabolcs.nagy@arm.com> wrote:
>
>> i think the _rtld* members that are accessed without holding
>> the rtld lock should only be accessed using atomics (at least
>> _dl_tls_generation and _dl_tls_max_dtv_idx are affected)
>
> Is this problem the one you fixed with the patch in the other thread
> I've just commented on?
no,
the patch is for lazy initialization of tlsdesc on aarch64 [BZ 18034]
this one is about dlopen/dlclose while creating threads [BZ 17918]
it causes
Inconsistency detected by ld.so: dl-tls.c: 493: _dl_allocate_tls_init: Assertion `listp->slotinfo[cnt].gen <= _rtld_local._dl_tls_generation' failed!