mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:48:13 +00:00
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.
This commit is contained in:
parent
120b9bc05b
commit
9201a06027
72 changed files with 165 additions and 0 deletions
|
@ -33,6 +33,15 @@ enum class NeedsBigProcessLock {
|
|||
No
|
||||
};
|
||||
|
||||
// Declare all syscalls and associated metadata.
|
||||
//
|
||||
// NOTE: When declaring a new syscall or modifying an existing, please
|
||||
// ensure that the proper assert is present at the top of the syscall
|
||||
// implementation to both verify and document to any readers if the
|
||||
// syscall aquires the big process lock or not. The asserts are:
|
||||
// - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
|
||||
// - VERIFY_NO_PROCESS_BIG_LOCK(this)
|
||||
//
|
||||
#define ENUMERATE_SYSCALLS(S) \
|
||||
S(yield, NeedsBigProcessLock::Yes) \
|
||||
S(open, NeedsBigProcessLock::Yes) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue