Kernel: Mark sys$kill_thread as not needing the big process lock

This syscall does not access any big process lock protected resources.
This commit is contained in:
Idan Horowitz 2023-12-16 13:19:49 +02:00 committed by Andreas Kling
parent b44628c1fb
commit d63667dbf1
Notes: sideshowbarker 2024-07-16 23:52:22 +09:00
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ enum class NeedsBigProcessLock {
S(jail_create, NeedsBigProcessLock::No) \
S(jail_attach, NeedsBigProcessLock::No) \
S(kill, NeedsBigProcessLock::No) \
S(kill_thread, NeedsBigProcessLock::Yes) \
S(kill_thread, NeedsBigProcessLock::No) \
S(killpg, NeedsBigProcessLock::No) \
S(link, NeedsBigProcessLock::No) \
S(listen, NeedsBigProcessLock::No) \

View File

@ -169,7 +169,7 @@ ErrorOr<FlatPtr> Process::sys$join_thread(pid_t tid, Userspace<void**> exit_valu
ErrorOr<FlatPtr> Process::sys$kill_thread(pid_t tid, int signal)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
VERIFY_NO_PROCESS_BIG_LOCK(this);
TRY(require_promise(Pledge::thread));
if (signal < 0 || signal >= NSIG)