Kernel: Mark sys$prctl() as not needing the big lock

This syscall has sufficient locking and therefore it doesn't need the
big lock being taken.
This commit is contained in:
Liav A 2023-02-25 16:16:09 +02:00 committed by Linus Groh
parent 41980675f2
commit 8a50c967b8
Notes: sideshowbarker 2024-07-17 06:51:40 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -136,7 +136,7 @@ enum class NeedsBigProcessLock {
S(pledge, NeedsBigProcessLock::No) \
S(poll, NeedsBigProcessLock::Yes) \
S(posix_fallocate, NeedsBigProcessLock::No) \
S(prctl, NeedsBigProcessLock::Yes) \
S(prctl, NeedsBigProcessLock::No) \
S(profiling_disable, NeedsBigProcessLock::Yes) \
S(profiling_enable, NeedsBigProcessLock::Yes) \
S(profiling_free_buffer, NeedsBigProcessLock::Yes) \

View file

@ -11,7 +11,7 @@ namespace Kernel {
ErrorOr<FlatPtr> Process::sys$prctl(int option, FlatPtr arg1, [[maybe_unused]] FlatPtr arg2)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
VERIFY_NO_PROCESS_BIG_LOCK(this);
return with_mutable_protected_data([&](auto& protected_data) -> ErrorOr<FlatPtr> {
switch (option) {
case PR_GET_DUMPABLE: