Kernel: Remove requirement for the thread entitlement for the futex syscall

GCC inserts calls to pthread_mutex_lock when compiling C++ code with
threads enabled.
This commit is contained in:
Gunnar Beutner 2021-04-19 11:07:19 +02:00 committed by Andreas Kling
parent 75d41657d5
commit db3fd11646
Notes: sideshowbarker 2024-07-18 19:19:42 +09:00

View file

@ -104,8 +104,6 @@ void Process::clear_futex_queues_on_exec()
KResultOr<int> Process::sys$futex(Userspace<const Syscall::SC_futex_params*> user_params)
{
REQUIRE_PROMISE(thread);
Syscall::SC_futex_params params;
if (!copy_from_user(&params, user_params))
return EFAULT;