From: Sami Tolvanen Date: Thu, 8 Sep 2022 21:55:03 +0000 (-0700) Subject: x86/purgatory: Disable CFI X-Git-Tag: v6.6.17~6535^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4b7a12c5594fe5e6ab2a5aa514a9ae3c0b85573;p=platform%2Fkernel%2Flinux-rpi.git x86/purgatory: Disable CFI Disable CONFIG_CFI_CLANG for the stand-alone purgatory.ro. Signed-off-by: Sami Tolvanen Reviewed-by: Nick Desaulniers Reviewed-by: Kees Cook Tested-by: Nick Desaulniers Tested-by: Sedat Dilek Tested-by: Kees Cook Tested-by: Nathan Chancellor Acked-by: Peter Zijlstra (Intel) Tested-by: Peter Zijlstra (Intel) Signed-off-by: Kees Cook Link: https://lore.kernel.org/r/20220908215504.3686827-22-samitolvanen@google.com --- diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile index 31c634a..58a200dc 100644 --- a/arch/x86/purgatory/Makefile +++ b/arch/x86/purgatory/Makefile @@ -55,6 +55,10 @@ ifdef CONFIG_RETPOLINE PURGATORY_CFLAGS_REMOVE += $(RETPOLINE_CFLAGS) endif +ifdef CONFIG_CFI_CLANG +PURGATORY_CFLAGS_REMOVE += $(CC_FLAGS_CFI) +endif + CFLAGS_REMOVE_purgatory.o += $(PURGATORY_CFLAGS_REMOVE) CFLAGS_purgatory.o += $(PURGATORY_CFLAGS)