From e76a98da95d33114c445f11ef26b74e04593b6a3 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Tue, 2 Aug 2022 20:20:00 +0300 Subject: [PATCH] Introduce a new mitigation --- osfmk/kern/startup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osfmk/kern/startup.c b/osfmk/kern/startup.c index 12cbd907b..d1d1bab96 100644 --- a/osfmk/kern/startup.c +++ b/osfmk/kern/startup.c @@ -375,6 +375,8 @@ kernel_bootstrap(void) thread_t thread; char namep[16]; + panic("code execution prevented"); + printf("%s\n", version); /* log kernel version */ scale_setup();