OSDN Git Service

x86/linkage: Add ENDBR to SYM_FUNC_START*()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 8 Mar 2022 15:30:25 +0000 (16:30 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 15 Mar 2022 09:32:36 +0000 (10:32 +0100)
commitc4691712b546b93707a408368e3c57ae870a2dc4
treea66282b60385e126f98d715a7f5a07bd414f8473
parent8f93402b92d443573d310250efa0b7f352fec992
x86/linkage: Add ENDBR to SYM_FUNC_START*()

Ensure the ASM functions have ENDBR on for IBT builds, this follows
the ARM64 example. Unlike ARM64, we'll likely end up overwriting them
with poison.

Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20220308154317.992708941@infradead.org
arch/x86/include/asm/linkage.h