summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/pi/Makefile
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2023-11-29 12:15:57 +0100
committerWill Deacon <will@kernel.org>2023-12-12 12:06:27 +0100
commit3dfdc2750c6cdc6a5ebf5effb07f92db761de35d (patch)
treeb154972470afd8077bfbd9ea8b2ba79f4998c69c /arch/arm64/kernel/pi/Makefile
parentarm64: Add ARM64_HAS_LPA2 CPU capability (diff)
downloadlinux-3dfdc2750c6cdc6a5ebf5effb07f92db761de35d.tar.xz
linux-3dfdc2750c6cdc6a5ebf5effb07f92db761de35d.zip
arm64: kernel: Disable latent_entropy GCC plugin in early C runtime
In subsequent patches, mark portions of the early C code will be marked as __init. Unfortunarely, __init implies __latent_entropy, and this would result in the early C code being instrumented in an unsafe manner. Disable the latent entropy plugin for the early C code. Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20231129111555.3594833-44-ardb@google.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/pi/Makefile')
-rw-r--r--arch/arm64/kernel/pi/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kernel/pi/Makefile b/arch/arm64/kernel/pi/Makefile
index 4c0ea3cd4ea4..c844a0546d7f 100644
--- a/arch/arm64/kernel/pi/Makefile
+++ b/arch/arm64/kernel/pi/Makefile
@@ -3,6 +3,7 @@
KBUILD_CFLAGS := $(subst $(CC_FLAGS_FTRACE),,$(KBUILD_CFLAGS)) -fpie \
-Os -DDISABLE_BRANCH_PROFILING $(DISABLE_STACKLEAK_PLUGIN) \
+ $(DISABLE_LATENT_ENTROPY_PLUGIN) \
$(call cc-option,-mbranch-protection=none) \
-I$(srctree)/scripts/dtc/libfdt -fno-stack-protector \
-include $(srctree)/include/linux/hidden.h \