ANDROID: arm64: kvm: disable CFI
authorSami Tolvanen <samitolvanen@google.com>
Mon, 23 Apr 2018 19:52:07 +0000 (12:52 -0700)
committerSami Tolvanen <samitolvanen@google.com>
Thu, 26 Apr 2018 23:03:37 +0000 (16:03 -0700)
Disable CFI for code that runs at EL2 because __cfi_check only
understands EL1 addresses.

Bug: 67506682
Change-Id: Ia582943be0b31669d88464fd99228a5368b1aa6a
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
arch/arm64/kvm/hyp/Makefile

index 19fa1c6b6b69a2e2816382e6e38a3e8945566fb4..bfa00a9e161d67e1c27a1a24357fdd955f642755 100644 (file)
@@ -3,7 +3,7 @@
 # Makefile for Kernel-based Virtual Machine module, HYP part
 #
 
-ccflags-y += -fno-stack-protector -DDISABLE_BRANCH_PROFILING
+ccflags-y += -fno-stack-protector -DDISABLE_BRANCH_PROFILING $(DISABLE_CFI)
 
 ifeq ($(cc-name),clang)
 ccflags-y += -fno-jump-tables