Skip to content

Commit 1a4fec4

Browse files
linuswRussell King (Oracle)
authored and
Russell King (Oracle)
committed
ARM: 9392/2: Support CLANG CFI
Support Control Flow Integrity (CFI) when compiling with CLANG. In the as-of-writing LLVM CLANG implementation (v17) the 32-bit ARM platform is supported by the generic CFI implementation, which isn't tailored specifically for ARM32 but works well enough to enable the feature. Tested-by: Kees Cook <keescook@chromium.org> Reviewed-by: Sami Tolvanen <samitolvanen@google.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent c3f8998 commit 1a4fec4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ config ARM
3535
select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX
3636
select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT if CPU_V7
3737
select ARCH_SUPPORTS_ATOMIC_RMW
38+
select ARCH_SUPPORTS_CFI_CLANG
3839
select ARCH_SUPPORTS_HUGETLBFS if ARM_LPAE
3940
select ARCH_SUPPORTS_PER_VMA_LOCK
4041
select ARCH_USE_BUILTIN_BSWAP

0 commit comments

Comments
 (0)