Hurd: fix port leak in TLS
authorRichard Braun <rbraun@sceen.net>
Thu, 29 Mar 2018 19:47:29 +0000 (20:47 +0100)
committerAurelien Jarno <aurel32@debian.org>
Thu, 29 Mar 2018 19:47:29 +0000 (20:47 +0100)
commit3dd19eb8bdc366b2df111014533ee97c6e083fb2
treeba5eea14d9e17da0be5cd09148e59ada13018446
parent3a578e05ec0605552a1c9a61b86b51167e0deb00
Hurd: fix port leak in TLS

Depending on whether the thread is the main thread or not, the threading
library can have trouble determining whether the thread reference in the
TCB is valid. The simple solution is to let the threading library
initialize the TCB, and use a temporary reference when initializing TLS.

* sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary thread
reference.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-tls_thread_leak.diff
sysdeps/mach/hurd/i386/tls.h