mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
Kernel: Require the "thread" pledge promise for futex()
This commit is contained in:
parent
c32d65ae9f
commit
7b53699e6f
Notes:
sideshowbarker
2024-07-19 10:08:48 +09:00
Author: https://github.com/awesomekling
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)
|
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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue