Kernel: Require the "thread" pledge promise for futex()

This commit is contained in:
Andreas Kling 2020-01-12 10:27:42 +01:00
commit 7b53699e6f
Notes: sideshowbarker 2024-07-19 10:08:48 +09:00

View file

@ -4251,6 +4251,7 @@ WaitQueue& Process::futex_queue(i32* userspace_address)
int Process::sys$futex(const Syscall::SC_futex_params* user_params) int Process::sys$futex(const Syscall::SC_futex_params* user_params)
{ {
REQUIRE_PROMISE(thread);
if (!validate_read_typed(user_params)) if (!validate_read_typed(user_params))
return -EFAULT; return -EFAULT;