about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/aarch64/vltest.py
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-05-17 22:14:33 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-17 23:00:59 +0200
commit2f8ecb58a59eb82c43214d000842d99644a662d1 (patch)
tree72e11c22d8ce150bb4a58583b9e46f57c4036789 /sysdeps/unix/sysv/linux/aarch64/vltest.py
parentc7fcce38c83a2bb665ef5dc4981bf20c7e586123 (diff)
downloadglibc-2f8ecb58a59eb82c43214d000842d99644a662d1.tar.gz
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 'sysdeps/unix/sysv/linux/aarch64/vltest.py')
0 files changed, 0 insertions, 0 deletions