1
Fork 0
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:
Andreas Kling 2021-02-02 20:16:13 +01:00
parent 603d36c599
commit d4dd4a82bb

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