diff options
author | 2023-05-17 22:14:33 +0300 | |
---|---|---|
committer | 2023-05-17 23:00:59 +0200 | |
commit | 2f8ecb58a59eb82c43214d000842d99644a662d1 (patch) | |
tree | 72e11c22d8ce150bb4a58583b9e46f57c4036789 /stdio-common/bug29.c | |
parent | hurd: Make sure to not use tcb->self (diff) | |
download | glibc-2f8ecb58a59eb82c43214d000842d99644a662d1.tar.xz glibc-2f8ecb58a59eb82c43214d000842d99644a662d1.zip |
hurd: Fix x86_64 _hurd_tls_fork
It is illegal to call thread_get_state () on mach_thread_self (), so
this codepath cannot be used as-is to fork the calling thread's TLS.
Fortunately we can use THREAD_SELF (aka %fs:0x0) to find out the value
of our fs_base without calling into the kernel.
Fixes: f6cf701efc61c9ad910372bda14b9a235db310a8
"hurd: Implement TLS for x86_64"
Checked on x86_64-gnu: fork () now works!
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230517191436.73636-8-bugaevc@gmail.com>
Diffstat (limited to 'stdio-common/bug29.c')
0 files changed, 0 insertions, 0 deletions