From: Sami Tolvanen Date: Mon, 23 Apr 2018 19:52:07 +0000 (-0700) Subject: ANDROID: arm64: kvm: disable CFI X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eb409e493b987af26cbdebba1c87e0868a77e08b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ANDROID: arm64: kvm: disable CFI 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 --- diff --git a/arch/arm64/kvm/hyp/Makefile b/arch/arm64/kvm/hyp/Makefile index 19fa1c6b6b69..bfa00a9e161d 100644 --- a/arch/arm64/kvm/hyp/Makefile +++ b/arch/arm64/kvm/hyp/Makefile @@ -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