mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Kernel: Don't allow sys$msyscall() on non-mmap regions
This commit is contained in:
parent
603d36c599
commit
d4dd4a82bb
Notes:
sideshowbarker
2024-07-18 22:37:21 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d4dd4a82bb3
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…
Reference in a new issue