summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/prctl.cpp
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-07-18 11:20:12 -0700
committerGunnar Beutner <gunnar@beutner.name>2021-07-20 03:21:14 +0200
commit9201a0602706a463d65ecf4b3623235f1f82cd03 (patch)
treef943b67898d4271d7dc1e33784262f95e018c59c /Kernel/Syscalls/prctl.cpp
parent120b9bc05bb7c2569719f2d0b2d6d434f32840ff (diff)
downloadserenity-9201a0602706a463d65ecf4b3623235f1f82cd03.zip
Kernel: Annotate all syscalls with VERIFY_PROCESS_BIG_LOCK_ACQUIRED
Before we start disabling acquisition of the big process lock for specific syscalls, make sure to document and assert that all the lock is held during all syscalls.
Diffstat (limited to 'Kernel/Syscalls/prctl.cpp')
-rw-r--r--Kernel/Syscalls/prctl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Syscalls/prctl.cpp b/Kernel/Syscalls/prctl.cpp
index afe1d1ceae..10985ce136 100644
--- a/Kernel/Syscalls/prctl.cpp
+++ b/Kernel/Syscalls/prctl.cpp
@@ -11,6 +11,7 @@ namespace Kernel {
KResultOr<FlatPtr> Process::sys$prctl(int option, FlatPtr arg1, [[maybe_unused]] FlatPtr arg2)
{
+ VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
switch (option) {
case PR_GET_DUMPABLE:
return is_dumpable();