From 48325e29598cc79aaccf9fa3992cbca7aeff9bf3 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Fri, 6 Aug 2021 14:43:02 +0300 Subject: Kernel: Disable big process lock for sys$getrandom This syscall doesn't touch any intra-process shared resources and already holds the global kernel RNG lock so there's no reason to hold the big lock. --- Kernel/Syscalls/getrandom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Syscalls/getrandom.cpp') diff --git a/Kernel/Syscalls/getrandom.cpp b/Kernel/Syscalls/getrandom.cpp index 7dca359907..942ffd0202 100644 --- a/Kernel/Syscalls/getrandom.cpp +++ b/Kernel/Syscalls/getrandom.cpp @@ -15,7 +15,7 @@ namespace Kernel { // do, we should be able of the caveats that Linux has dealt with. KResultOr Process::sys$getrandom(Userspace buffer, size_t buffer_size, [[maybe_unused]] unsigned flags) { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); + VERIFY_NO_PROCESS_BIG_LOCK(this); REQUIRE_PROMISE(stdio); if (buffer_size > NumericLimits::max()) return EINVAL; -- cgit v1.2.3