summaryrefslogtreecommitdiff
path: root/Base/usr
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-02 19:14:16 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-02 19:18:52 +0100
commitf41ae755ecbe3a17140e53b1cf6f839da41d343b (patch)
tree1838469cc90310088d5b09c095213519b52043c5 /Base/usr
parentddd54114724f5c2adefa2f4c5249c1af13295327 (diff)
downloadserenity-f41ae755ecbe3a17140e53b1cf6f839da41d343b.zip
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.
Diffstat (limited to 'Base/usr')
-rw-r--r--Base/usr/share/man/man1/crash.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/Base/usr/share/man/man1/crash.md b/Base/usr/share/man/man1/crash.md
index da38a466dd..8af17a8f07 100644
--- a/Base/usr/share/man/man1/crash.md
+++ b/Base/usr/share/man/man1/crash.md
@@ -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