]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-process: Restrict pthread creation to clone()
authorMichalis Pappas <michalis@unikraft.io>
Mon, 14 Apr 2025 19:47:15 +0000 (21:47 +0200)
committerUnikraft Bot <monkey@unikraft.io>
Wed, 30 Apr 2025 09:42:51 +0000 (09:42 +0000)
commit22c673b10f05ce1d87e0ce8a5ecfb79c25c8fd7b
tree923685ab28336aa3758ea2096a4b9c7012dd74dd
parent361751a7ea2a53b9679755c87ae1bc30b97d13a4
lib/posix-process: Restrict pthread creation to clone()

The current implementation incorrectly creates a pthread in the current
process, for every new uk_thread created. This behavior is problematic
because during a syscall, libraries may create uk_threads that are
intended to act as kernel threads. Decouple pthread initializaiton from
uk_thread and limit it to clone().

Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1627
lib/posix-process/process.c