[PATCH v2] cfi: Use __builtin_function_start

Kees Cook keescook at chromium.org
Wed Apr 13 12:26:33 PDT 2022


On Tue, 5 Apr 2022 15:16:18 -0700, Sami Tolvanen wrote:
> Clang 14 added support for the __builtin_function_start function,
> which allows us to implement the function_nocfi macro without
> architecture-specific inline assembly and in a way that also works
> with static initializers.
> 
> Change CONFIG_CFI_CLANG to depend on Clang >= 14, define
> function_nocfi using __builtin_function_start, and remove the arm64
> inline assembly implementation.
> 
> [...]

Applied to for-next/hardening, thanks!

[1/1] cfi: Use __builtin_function_start
      https://git.kernel.org/kees/c/e6f3b3c9c109

-- 
Kees Cook




More information about the linux-arm-kernel mailing list