mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-21 15:14:13 +00:00
Kernel: Don't allow sys$msyscall() on non-mmap regions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user