From f41ae755ecbe3a17140e53b1cf6f839da41d343b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 2 Dec 2019 19:14:16 +0100 Subject: 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. --- Base/usr/share/man/man1/crash.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Base') 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 -- cgit v1.2.3