1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 04:27:35 +00:00

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

This commit is contained in:
Andreas Kling 2020-01-12 10:27:42 +01:00
parent c32d65ae9f
commit 7b53699e6f

View file

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