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:
parent
c32d65ae9f
commit
7b53699e6f
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue