]> Git Repo - linux.git/commit
x86: Add types to indirectly called assembly functions
authorSami Tolvanen <[email protected]>
Thu, 8 Sep 2022 21:55:02 +0000 (14:55 -0700)
committerKees Cook <[email protected]>
Mon, 26 Sep 2022 17:13:15 +0000 (10:13 -0700)
commitccace936eec7b805e1ab9268a6d163a00047b3a9
tree407c8ce8cb9f0b30332323db255d1107bedfea41
parentca7e10bff196f69a450b9072a7b757713d3bb2dd
x86: Add types to indirectly called assembly functions

With CONFIG_CFI_CLANG, assembly functions indirectly called
from C code must be annotated with type identifiers to pass CFI
checking. Define the __CFI_TYPE helper macro to match the compiler
generated function preamble, and ensure SYM_TYPED_FUNC_START also
emits ENDBR with IBT.

Signed-off-by: Sami Tolvanen <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Tested-by: Kees Cook <[email protected]>
Tested-by: Nathan Chancellor <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Tested-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
arch/x86/crypto/blowfish-x86_64-asm_64.S
arch/x86/include/asm/linkage.h
arch/x86/lib/memcpy_64.S
This page took 0.053777 seconds and 4 git commands to generate.