]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
kvm: arm64: Disable compiler instrumentation for hypervisor code
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 21 Mar 2016 11:00:17 +0000 (11:00 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 21 Mar 2016 13:02:17 +0000 (14:02 +0100)
commita6cdf1c08cbfe0818a3d8042844d75bf74fd82bd
tree28fdc4f1d1294e204e8266eb8b07f03b040d01b8
parent2510ffe17f9707eb96cf286cf5d11ad372ff679f
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 <catalin.marinas@arm.com>
Cc: Christoffer Dall <christoffer.dall@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: <stable@vger.kernel.org> # 4.5+
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/kvm/hyp/Makefile