diff options
author | Catalin Marinas <[email protected]> | 2016-03-21 11:00:17 +0000 |
---|---|---|
committer | Christoffer Dall <[email protected]> | 2016-03-21 14:02:17 +0100 |
commit | a6cdf1c08cbfe0818a3d8042844d75bf74fd82bd (patch) | |
tree | 28fdc4f1d1294e204e8266eb8b07f03b040d01b8 | |
parent | 2510ffe17f9707eb96cf286cf5d11ad372ff679f (diff) |
kvm: arm64: Disable compiler instrumentation for hypervisor code
With the recent rewrite of the arm64 KVM hypervisor code in C, enabling
certain options like KASAN would allow the compiler to generate memory
accesses or function calls to addresses not mapped at EL2. This patch
disables the compiler instrumentation on the arm64 hypervisor code for
gcov-based profiling (GCOV_KERNEL), undefined behaviour sanity checker
(UBSAN) and kernel address sanitizer (KASAN).
Signed-off-by: Catalin Marinas <[email protected]>
Cc: Christoffer Dall <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: <[email protected]> # 4.5+
Signed-off-by: Christoffer Dall <[email protected]>
-rw-r--r-- | arch/arm64/kvm/hyp/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/kvm/hyp/Makefile b/arch/arm64/kvm/hyp/Makefile index b6a8fc5ad1af..778d0effa2af 100644 --- a/arch/arm64/kvm/hyp/Makefile +++ b/arch/arm64/kvm/hyp/Makefile @@ -16,3 +16,7 @@ obj-$(CONFIG_KVM_ARM_HOST) += fpsimd.o obj-$(CONFIG_KVM_ARM_HOST) += tlb.o obj-$(CONFIG_KVM_ARM_HOST) += hyp-entry.o obj-$(CONFIG_KVM_ARM_HOST) += s2-setup.o + +GCOV_PROFILE := n +KASAN_SANITIZE := n +UBSAN_SANITIZE := n |