ARM: 9392/2: Support CLANG CFI
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 23 Apr 2024 07:54:45 +0000 (08:54 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 29 Apr 2024 13:14:23 +0000 (14:14 +0100)
commit1a4fec49efe5273eb2fcf575175a117745f76f97
tree011ad6a9b19c812a197c537789bad7be039018ad
parentc3f89986fde7bb9ccc86a901bf28e1f7d69fc3b3
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>
arch/arm/Kconfig