Re: [PATCH v2] cfi: Use __builtin_function_start
From: Kees Cook
Date: Wed Apr 13 2022 - 15:26:47 EST
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