XNU as a loadable kernel module inside Linux (macOS personality for arm64 Linux)
C
xnu-patches: a kernel build into a new object tree works again (the sanitizer denylists without corecrypto's files) (#39)
CommaBotb5ff094e5b0d
diff --git a/xnu-patches/0012-linux64-denylists-without-corecrypto.patch b/xnu-patches/0012-linux64-denylists-without-corecrypto.patchnew file mode 100644index 0000000..711779c--- /dev/null+++ b/xnu-patches/0012-linux64-denylists-without-corecrypto.patch@@ -0,0 +1,30 @@+From: xnulinux+Subject: [PATCH] linux64: the sanitizer denylists no longer name the corecrypto files 0008 took out++The KASan and kcov denylists name two files of osfmk/corecrypto one by one (cc_clear.c, ccdrbg_nisthmac.c), and+validate_denylist.sh fails the build when a file a denylist names is missing. Those files are gone with the tree's+corecrypto (0008, vm-xnu-rebuild.sh), so a build into a new object tree stopped in build_setup ("KASan: denylisted+file ... not found"); an object tree from before kept its generated denylists and went on building.+---+--- a/san/coverage/kcov-denylist-x86_64++++ b/san/coverage/kcov-denylist-x86_64+@@ -3,8 +3,6 @@+ # Early boot AUTOGEN+ src:./bsd/kern/kdebug.c+ src:./bsd/kern/kern_csr.c+-src:./osfmk/corecrypto/cc_clear.c+-src:./osfmk/corecrypto/ccdrbg_nisthmac.c+ src:./osfmk/device/subrs.c+ src:./osfmk/i386/Diagnostics.c+ src:./osfmk/i386/acpi.c+--- a/san/memory/kasan-denylist-x86_64++++ b/san/memory/kasan-denylist-x86_64+@@ -5,8 +5,6 @@+ # Early boot AUTOGEN+ src:./bsd/kern/kdebug.c+ src:./bsd/kern/kern_csr.c+-src:./osfmk/corecrypto/cc_clear.c+-src:./osfmk/corecrypto/ccdrbg_nisthmac.c+ src:./osfmk/device/subrs.c+ src:./osfmk/i386/Diagnostics.c+ src:./osfmk/i386/acpi.c