Commit 1ed9e6b1 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Kees Cook
Browse files

ARM: Select ARCH_USES_CFI_GENERIC_LLVM_PASS

Prior to clang 22.0.0 [1], ARM did not have an architecture specific
kCFI bundle lowering in the backend, which may cause issues. Select
CONFIG_ARCH_USES_CFI_GENERIC_LLVM_PASS to enable use of __nocfi_generic.

Link: https://github.com/llvm/llvm-project/commit/d130f402642fba3d065aacb506cb061c899558de [1]
Link: https://github.com/ClangBuiltLinux/linux/issues/2124


Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
Link: https://patch.msgid.link/20251025-idpf-fix-arm-kcfi-build-error-v1-2-ec57221153ae@kernel.org


Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent 39c89ee6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -44,6 +44,8 @@ config ARM
	select ARCH_USE_BUILTIN_BSWAP
	select ARCH_USE_CMPXCHG_LOCKREF
	select ARCH_USE_MEMTEST
	# https://github.com/llvm/llvm-project/commit/d130f402642fba3d065aacb506cb061c899558de
	select ARCH_USES_CFI_GENERIC_LLVM_PASS if CLANG_VERSION < 220000
	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
	select ARCH_WANT_GENERAL_HUGETLB
	select ARCH_WANT_IPC_PARSE_VERSION