mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:22:43 +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
				
			
		|  | @ -11,6 +11,7 @@ namespace Kernel { | |||
| 
 | ||||
| KResultOr<FlatPtr> Process::sys$get_dir_entries(int fd, Userspace<void*> user_buffer, size_t user_size) | ||||
| { | ||||
|     VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); | ||||
|     REQUIRE_PROMISE(stdio); | ||||
|     if (user_size > NumericLimits<ssize_t>::max()) | ||||
|         return EINVAL; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brian Gianforcaro
						Brian Gianforcaro