mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Remove big lock from sys$symlink
This syscall doesn't access any unprotected shared data.
This commit is contained in:
parent
1474b18070
commit
4ae93179f1
Notes:
sideshowbarker
2024-07-17 14:13:20 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/4ae93179f1 Pull-request: https://github.com/SerenityOS/serenity/pull/13594
2 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ enum class NeedsBigProcessLock {
|
|||
S(socketpair, NeedsBigProcessLock::Yes) \
|
||||
S(stat, NeedsBigProcessLock::No) \
|
||||
S(statvfs, NeedsBigProcessLock::Yes) \
|
||||
S(symlink, NeedsBigProcessLock::Yes) \
|
||||
S(symlink, NeedsBigProcessLock::No) \
|
||||
S(sync, NeedsBigProcessLock::No) \
|
||||
S(sysconf, NeedsBigProcessLock::No) \
|
||||
S(times, NeedsBigProcessLock::Yes) \
|
||||
|
|
|
@ -23,7 +23,7 @@ ErrorOr<FlatPtr> Process::sys$link(Userspace<Syscall::SC_link_params const*> use
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$symlink(Userspace<Syscall::SC_symlink_params const*> user_params)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this)
|
||||
TRY(require_promise(Pledge::cpath));
|
||||
auto params = TRY(copy_typed_from_user(user_params));
|
||||
|
||||
|
|
Loading…
Reference in a new issue