mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
Kernel: Don't allow sys$msyscall() on non-mmap regions
This commit is contained in:
parent
603d36c599
commit
d4dd4a82bb
1 changed files with 3 additions and 0 deletions
|
@ -564,6 +564,9 @@ int Process::sys$msyscall(void* address)
|
|||
if (!region)
|
||||
return -EINVAL;
|
||||
|
||||
if (!region->is_mmap())
|
||||
return -EINVAL;
|
||||
|
||||
region->set_syscall_region(true);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue