mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
Kernel: Remove pledge syscall from the big lock
This already does all its dangerous work inside `with_mutable_protected_data()`.
This commit is contained in:
parent
ce78394ae8
commit
cc558d95f0
Notes:
sideshowbarker
2024-07-17 08:27:05 +09:00
Author: https://github.com/AtkinsSJ
Commit: cc558d95f0
Pull-request: https://github.com/SerenityOS/serenity/pull/17304
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/supercomputer7
2 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ enum class NeedsBigProcessLock {
|
|||
S(perf_event, NeedsBigProcessLock::Yes) \
|
||||
S(perf_register_string, NeedsBigProcessLock::Yes) \
|
||||
S(pipe, NeedsBigProcessLock::No) \
|
||||
S(pledge, NeedsBigProcessLock::Yes) \
|
||||
S(pledge, NeedsBigProcessLock::No) \
|
||||
S(poll, NeedsBigProcessLock::Yes) \
|
||||
S(posix_fallocate, NeedsBigProcessLock::No) \
|
||||
S(prctl, NeedsBigProcessLock::Yes) \
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Kernel {
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$pledge(Userspace<Syscall::SC_pledge_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.promises.length > 1024 || params.execpromises.length > 1024)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue