[PATCH 2/4] efi/runtime-wrappers, kasan: don't sanitize runtime wrappers.
Andrey Ryabinin
ryabinin.a.a at gmail.com
Wed Aug 26 09:15:05 PDT 2015
ARM64 maps efi runtime services in userspace addresses
which don't have KASAN shadow. So dereferencing these addresses
in efi_call_virt() will cause crash if this code instrumented.
Signed-off-by: Andrey Ryabinin <ryabinin.a.a at gmail.com>
---
drivers/firmware/efi/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/firmware/efi/Makefile b/drivers/firmware/efi/Makefile
index 6fd3da9..413fcf2 100644
--- a/drivers/firmware/efi/Makefile
+++ b/drivers/firmware/efi/Makefile
@@ -1,6 +1,14 @@
#
# Makefile for linux kernel
#
+
+#
+# ARM64 maps efi runtime services in userspace addresses
+# which don't have KASAN shadow. So dereference of these addresses
+# in efi_call_virt() will cause crash if this code instrumented.
+#
+KASAN_SANITIZE_runtime-wrappers.o := n
+
obj-$(CONFIG_EFI) += efi.o vars.o reboot.o
obj-$(CONFIG_EFI_VARS) += efivars.o
obj-$(CONFIG_EFI_ESRT) += esrt.o
--
2.4.6
More information about the linux-arm-kernel
mailing list