Skip to content

Commit 1ed9e6b

Browse files
nathanchancekees
authored andcommitted
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: llvm/llvm-project@d130f40 [1] Link: ClangBuiltLinux#2124 Signed-off-by: Nathan Chancellor <nathan@kernel.org> Link: https://patch.msgid.link/20251025-idpf-fix-arm-kcfi-build-error-v1-2-ec57221153ae@kernel.org Signed-off-by: Kees Cook <kees@kernel.org>
1 parent 39c89ee commit 1ed9e6b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/arm/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ config ARM
4444
select ARCH_USE_BUILTIN_BSWAP
4545
select ARCH_USE_CMPXCHG_LOCKREF
4646
select ARCH_USE_MEMTEST
47+
# https://github.com/llvm/llvm-project/commit/d130f402642fba3d065aacb506cb061c899558de
48+
select ARCH_USES_CFI_GENERIC_LLVM_PASS if CLANG_VERSION < 220000
4749
select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
4850
select ARCH_WANT_GENERAL_HUGETLB
4951
select ARCH_WANT_IPC_PARSE_VERSION

0 commit comments

Comments
 (0)