From b44c1e12524bb5de0f93294a7c24c8e41c06bb75 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Fri, 19 May 2023 17:47:24 +0300 Subject: hurd: Fix using interposable hurd_thread_self Create a private hidden __hurd_thread_self alias, and use that one. Fixes 2f8ecb58a59eb82c43214d000842d99644a662d1 "hurd: Fix x86_64 _hurd_tls_fork" and c7fcce38c83a2bb665ef5dc4981bf20c7e586123 "hurd: Make sure to not use tcb->self" Reported-by: Joseph Myers Signed-off-by: Sergey Bugaev --- sysdeps/mach/hurd/i386/htl/pt-setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/mach/hurd/i386/htl') diff --git a/sysdeps/mach/hurd/i386/htl/pt-setup.c b/sysdeps/mach/hurd/i386/htl/pt-setup.c index ba108b9611..27e5c98bf4 100644 --- a/sysdeps/mach/hurd/i386/htl/pt-setup.c +++ b/sysdeps/mach/hurd/i386/htl/pt-setup.c @@ -79,7 +79,7 @@ __pthread_setup (struct __pthread *thread, { error_t err; - if (thread->kernel_thread == hurd_thread_self ()) + if (thread->kernel_thread == __hurd_thread_self ()) /* Fix up the TCB for the main thread. The C library has already installed a TCB, which we want to keep using. This TCB must not be freed so don't register it in the thread structure. On the -- cgit 1.4.1