mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:57:35 +00:00
Kernel: Mark sys$mprotect as not needing the big lock
All accesses to shared mutable data are already serialized behind the process address space spinlock.
This commit is contained in:
parent
3697214166
commit
2f79d0e8b9
2 changed files with 2 additions and 2 deletions
|
@ -268,7 +268,7 @@ ErrorOr<FlatPtr> Process::sys$mmap(Userspace<Syscall::SC_mmap_params const*> use
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$mprotect(Userspace<void*> addr, size_t size, int prot)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
TRY(require_promise(Pledge::stdio));
|
||||
|
||||
if (prot & PROT_EXEC) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue