x86/cfi: Clean up linkage
authorPeter Zijlstra <peterz@infradead.org>
Fri, 7 Feb 2025 12:15:33 +0000 (13:15 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 14 Feb 2025 09:32:05 +0000 (10:32 +0100)
commit582077c94052bd69a544b3f9d7619c9c6a67c34b
treedd33a2f40b5f832d0790ede0d047f5a327d69cc9
parent2981557cb0408e142480bc1eea30558cf5a2382f
x86/cfi: Clean up linkage

With the introduction of kCFI the addition of ENDBR to
SYM_FUNC_START* no longer suffices to make the function indirectly
callable. This now requires the use of SYM_TYPED_FUNC_START.

As such, remove the implicit ENDBR from SYM_FUNC_START* and add some
explicit annotations to fix things up again.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Link: https://lore.kernel.org/r/20250207122546.409116003@infradead.org
29 files changed:
arch/x86/crypto/aesni-intel_asm.S
arch/x86/entry/calling.h
arch/x86/entry/entry.S
arch/x86/entry/entry_64.S
arch/x86/entry/entry_64_fred.S
arch/x86/entry/vdso/Makefile
arch/x86/include/asm/linkage.h
arch/x86/include/asm/page_64.h
arch/x86/include/asm/paravirt_types.h
arch/x86/include/asm/special_insns.h
arch/x86/include/asm/string_64.h
arch/x86/kernel/acpi/madt_playdead.S
arch/x86/kernel/acpi/wakeup_64.S
arch/x86/kernel/alternative.c
arch/x86/kernel/ftrace_64.S
arch/x86/kernel/irqflags.S
arch/x86/kernel/paravirt.c
arch/x86/lib/clear_page_64.S
arch/x86/lib/copy_user_64.S
arch/x86/lib/copy_user_uncached_64.S
arch/x86/lib/getuser.S
arch/x86/lib/hweight.S
arch/x86/lib/putuser.S
arch/x86/lib/retpoline.S
arch/x86/mm/mem_encrypt_boot.S
arch/x86/power/hibernate_asm_64.S
arch/x86/xen/xen-asm.S
arch/x86/xen/xen-head.S
include/linux/compiler.h