mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-24 18:28:57 +00:00
Kernel: Disallow syscalls from writeable memory
Processes will now crash with SIGSEGV if they attempt making a syscall from PROT_WRITE memory. This neat idea comes from OpenBSD. :^)
This commit is contained in:
parent
ea52fe528a
commit
e56daf547c
Notes:
sideshowbarker
2024-07-19 11:02:00 +09:00
Author: https://github.com/awesomekling
Commit: e56daf547c
5 changed files with 27 additions and 5 deletions
|
@ -27,6 +27,7 @@ kinds of crashes.
|
|||
* `-r`: Write to read-only memory.
|
||||
* `-T`: Make a syscall while using an invalid stack pointer.
|
||||
* `-t`: Trigger a page fault while using an invalid stack pointer.
|
||||
* `-S`: Make a syscall from writeable memory.
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue