mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +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)
|
if (!region)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
if (!region->is_mmap())
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
region->set_syscall_region(true);
|
region->set_syscall_region(true);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue