XNU as a loadable kernel module inside Linux (macOS personality for arm64 Linux)
C
Debug: open_nocancel paths in the trace
Heyang Zhou7fce3e165ab5
diff --git a/xnu-patches/0001-linux64-stage-hook.patch b/xnu-patches/0001-linux64-stage-hook.patchindex f29ce8a..64eb04e 100644--- a/xnu-patches/0001-linux64-stage-hook.patch+++ b/xnu-patches/0001-linux64-stage-hook.patch@@ -2216,7 +2216,7 @@ index d211433..dc247da 100644// No need for atomic - These are per CPU and interrupts are disableddiff --git a/osfmk/arm64/sleh.c b/osfmk/arm64/sleh.c-index d8f1b19..5779087 100644+index d8f1b19..76cfc96 100644--- a/osfmk/arm64/sleh.c+++ b/osfmk/arm64/sleh.c@@ -3646,3 +3646,196 @@ sleh_panic_lockdown_should_initiate_el1_sp0_sync(uint64_t esr, uint64_t elr,@@ -2402,7 +2402,7 @@ index d8f1b19..5779087 100644+ (uint64_t)thread->kernel_stack);+ }+ }-+ if (num == 59 || num == 244 || (linux64_tracing() && (num == 5 || num == 463 || num == 33 || num == 338 || num == 340 || num == 466 || num == 469))) {++ if (num == 59 || num == 244 || (linux64_tracing() && (num == 5 || num == 398 || num == 463 || num == 33 || num == 338 || num == 340 || num == 466 || num == 469))) {+ char path[128];+ size_t len = 0;+ uint64_t ua = (num == 463 || num == 466 || num == 469 || num == 244) ? f->x[1] : f->x[0];