Skip to content

Commit 3dfdc27

Browse files
ardbiesheuvelwilldeacon
authored andcommitted
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>
1 parent b1366d2 commit 3dfdc27

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/arm64/kernel/pi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
KBUILD_CFLAGS := $(subst $(CC_FLAGS_FTRACE),,$(KBUILD_CFLAGS)) -fpie \
55
-Os -DDISABLE_BRANCH_PROFILING $(DISABLE_STACKLEAK_PLUGIN) \
6+
$(DISABLE_LATENT_ENTROPY_PLUGIN) \
67
$(call cc-option,-mbranch-protection=none) \
78
-I$(srctree)/scripts/dtc/libfdt -fno-stack-protector \
89
-include $(srctree)/include/linux/hidden.h \

0 commit comments

Comments
 (0)