Kernel: Make sys$unveil() not take the big process lock

The unveil syscall uses the UnveilData struct which is already
SpinlockProtected, so there is no need to take the big lock.
This commit is contained in:
Samuel Bowman 2022-08-16 22:52:58 -04:00 committed by Andreas Kling
commit b5a2f59320
Notes: sideshowbarker 2024-07-17 08:10:18 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ static void update_intermediate_node_permissions(UnveilNode& root_node, UnveilAc
ErrorOr<FlatPtr> Process::sys$unveil(Userspace<Syscall::SC_unveil_params const*> user_params)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
VERIFY_NO_PROCESS_BIG_LOCK(this);
auto params = TRY(copy_typed_from_user(user_params));
if (!params.path.characters && !params.permissions.characters) {