All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] cfi: Use __builtin_function_start
@ 2022-04-01 20:19 ` Sami Tolvanen
  0 siblings, 0 replies; 24+ messages in thread
From: Sami Tolvanen @ 2022-04-01 20:19 UTC (permalink / raw)
  To: Kees Cook
  Cc: Catalin Marinas, Mark Rutland, Masahiro Yamada,
	Nathan Chancellor, Nick Desaulniers, Will Deacon,
	linux-arm-kernel, linux-kernel, llvm, Sami Tolvanen

Clang 14 introduced the __builtin_function_start intrinsic, which
makes it possible to cleanly implement the function_nocfi() macro in a
way that also works with static initializers. Add a default
function_nocfi() implementation and drop the arm64 inline assembly
version.

Sami Tolvanen (3):
  kbuild: Change CFI_CLANG to depend on __builtin_function_start
  linux/compiler-clang.h: define function_nocfi
  arm64: Drop the inline assembly implementation of function_nocfi

 arch/Kconfig                      |  5 +----
 arch/arm64/include/asm/compiler.h | 16 ----------------
 include/linux/compiler-clang.h    | 10 ++++++++++
 init/Kconfig                      |  3 +++
 4 files changed, 14 insertions(+), 20 deletions(-)

-- 
2.35.0


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2022-04-05 16:26 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-01 20:19 [PATCH 0/3] cfi: Use __builtin_function_start Sami Tolvanen
2022-04-01 20:19 ` Sami Tolvanen
2022-04-01 20:19 ` [PATCH 1/3] kbuild: Change CFI_CLANG to depend on __builtin_function_start Sami Tolvanen
2022-04-01 20:19   ` Sami Tolvanen
2022-04-02 13:31   ` Masahiro Yamada
2022-04-02 13:31     ` Masahiro Yamada
2022-04-04 19:40     ` Sami Tolvanen
2022-04-04 19:40       ` Sami Tolvanen
2022-04-04 22:52       ` Nathan Chancellor
2022-04-04 22:52         ` Nathan Chancellor
2022-04-05  2:53         ` Kees Cook
2022-04-05  2:53           ` Kees Cook
2022-04-01 20:19 ` [PATCH 2/3] linux/compiler-clang.h: define function_nocfi Sami Tolvanen
2022-04-01 20:19   ` Sami Tolvanen
2022-04-05 16:16   ` Mark Rutland
2022-04-05 16:16     ` Mark Rutland
2022-04-01 20:19 ` [PATCH 3/3] arm64: Drop the inline assembly implementation of function_nocfi Sami Tolvanen
2022-04-01 20:19   ` Sami Tolvanen
2022-04-04  9:03   ` Will Deacon
2022-04-04  9:03     ` Will Deacon
2022-04-05 16:23   ` Mark Rutland
2022-04-05 16:23     ` Mark Rutland
2022-04-01 20:49 ` [PATCH 0/3] cfi: Use __builtin_function_start Nick Desaulniers
2022-04-01 20:49   ` Nick Desaulniers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.