Hurd: fix port leak in TLS
authorRichard Braun <rbraun@sceen.net>
Mon, 16 Jul 2018 20:23:13 +0000 (21:23 +0100)
committerAurelien Jarno <aurel32@debian.org>
Mon, 16 Jul 2018 20:23:13 +0000 (21:23 +0100)
commit911d1351f3929d23f34bff80db88c13301dd116e
tree295c71a255a463a34f05bc576c7e7ea01361970a
parent8ade9006400684c82ff2d8100fd6143b41f20e17
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