mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
Kernel: Require the "thread" pledge promise for futex()
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user