1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00: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:
Sam Atkins 2023-02-03 17:49:06 +00:00 committed by Andreas Kling
parent ce78394ae8
commit cc558d95f0
2 changed files with 2 additions and 2 deletions

View file

@ -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)