mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
ANDROID: KVM: arm64: disable CFI for hypervisor code
Disable LTO+CFI for code that runs at EL2 to avoid address space confusion as the CFI jump tables point to EL1 addresses. Bug: 145210207 Change-Id: I81359ec648b2616e85dfd3bb399327bac980b3fe Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
This commit is contained in:
parent
4c81c26cdc
commit
2df99b6397
|
|
@ -4,6 +4,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
ccflags-y += -I $(srctree)/$(src)
|
ccflags-y += -I $(srctree)/$(src)
|
||||||
|
CFLAGS_REMOVE_debug.o += $(CC_FLAGS_CFI)
|
||||||
|
|
||||||
KVM=../../../virt/kvm
|
KVM=../../../virt/kvm
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,3 +11,6 @@ subdir-ccflags-y := -I$(incdir) \
|
||||||
$(DISABLE_STACKLEAK_PLUGIN)
|
$(DISABLE_STACKLEAK_PLUGIN)
|
||||||
|
|
||||||
obj-$(CONFIG_KVM) += vhe/ nvhe/ pgtable.o smccc_wa.o
|
obj-$(CONFIG_KVM) += vhe/ nvhe/ pgtable.o smccc_wa.o
|
||||||
|
|
||||||
|
# Disable LTO+CFI for the files in this directory
|
||||||
|
KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_LTO), $(KBUILD_CFLAGS))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user