mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
Kernel: Crash on memory access in non-readable regions
This patch makes it possible to make memory regions non-readable. This is enforced using the "present" bit in the page tables. A process that hits an not-present page fault in a non-readable region will be crashed.
This commit is contained in:
parent
ddd5411472
commit
f41ae755ec
5 changed files with 41 additions and 2 deletions
|
@ -28,6 +28,8 @@ kinds of crashes.
|
|||
* `-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.
|
||||
* `-x`: Read from recently freed memory. (Tests an opportunistic malloc guard.)
|
||||
* `-y`: Write to recently freed memory. (Tests an opportunistic malloc guard.)
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue