]> git.ipfire.org Git - thirdparty/linux.git/commit
x86,kcfi: Fix EXPORT_SYMBOL vs kCFI
authorPeter Zijlstra <peterz@infradead.org>
Fri, 7 Feb 2025 12:15:32 +0000 (13:15 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 14 Feb 2025 09:32:05 +0000 (10:32 +0100)
commit2981557cb0408e142480bc1eea30558cf5a2382f
tree8f7e153d2f74f5fb4ec3a27db453f4b538d2b3cd
parent72e213a7ccf9dc78a85eecee8dc8170762ed876c
x86,kcfi: Fix EXPORT_SYMBOL vs kCFI

The expectation is that all EXPORT'ed symbols are free to have their
address taken and called indirectly. The majority of the assembly
defined functions currently violate this expectation.

Make then all use SYM_TYPED_FUNC_START() in order to emit the proper
kCFI preamble.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Link: https://lore.kernel.org/r/20250207122546.302679189@infradead.org
arch/x86/crypto/camellia-aesni-avx-asm_64.S
arch/x86/crypto/camellia-aesni-avx2-asm_64.S
arch/x86/crypto/camellia-x86_64-asm_64.S
arch/x86/crypto/serpent-avx-x86_64-asm_64.S
arch/x86/crypto/twofish-x86_64-asm_64-3way.S
arch/x86/crypto/twofish-x86_64-asm_64.S
arch/x86/lib/clear_page_64.S
arch/x86/lib/copy_page_64.S
arch/x86/lib/memmove_64.S
arch/x86/lib/memset_64.S
arch/x86/lib/msr-reg.S