Kernel: Don't allow sys$msyscall() on non-mmap regions

This commit is contained in:
Andreas Kling 2021-02-02 20:16:13 +01:00
parent 603d36c599
commit d4dd4a82bb
Notes: sideshowbarker 2024-07-18 22:37:21 +09:00

View file

@ -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;
}