]> xenbits.xensource.com Git - unikraft/libs/musl.git/commit
Initialize pthread structure fields for non-pthread threads
authorMarco Schlumpp <marco@unikraft.io>
Tue, 18 Apr 2023 12:55:18 +0000 (14:55 +0200)
committerUnikraft <monkey@unikraft.io>
Thu, 4 May 2023 14:30:06 +0000 (14:30 +0000)
commit886f888eb8ececfbc4f194bb0d8a66bb3d3388ae
tree0d206057d7a3bb79e1f6d29c09f4577eb41a35e9
parentbf8235826d12214c6d44fe9c63bf947a88db00be
Initialize pthread structure fields for non-pthread threads

If these fields are not initialized as expected by musl, then calls
to pthread functions such `pthread_getspecific` can return unexpected
values or even crash.

Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #41
__uk_init_tls.c