From: Josh Poimboeuf Date: Mon, 18 Apr 2022 16:50:25 +0000 (-0700) Subject: x86/xen: Add ANNOTATE_NOENDBR to startup_xen() X-Git-Tag: v6.1-rc5~1459^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ab80a0da4c4a4dd496fc14faabbc8bde61a605c;p=platform%2Fkernel%2Flinux-starfive.git x86/xen: Add ANNOTATE_NOENDBR to startup_xen() The startup_xen() kernel entry point is referenced by the ".note.Xen" section, and is the real entry point of the VM. Control transfer is through IRET, which *could* set NEED_ENDBR, however Xen currently does no such thing. Add ANNOTATE_NOENDBR to silence future objtool warnings. Fixes: ed53a0d97192 ("x86/alternative: Use .ibt_endbr_seal to seal indirect calls") Signed-off-by: Josh Poimboeuf Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Andrew Cooper Link: https://lkml.kernel.org/r/a87bd48b06d11ec4b98122a429e71e489b4e48c3.1650300597.git.jpoimboe@redhat.com --- diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S index ac17196..3a2cd93 100644 --- a/arch/x86/xen/xen-head.S +++ b/arch/x86/xen/xen-head.S @@ -45,6 +45,7 @@ SYM_CODE_END(hypercall_page) __INIT SYM_CODE_START(startup_xen) UNWIND_HINT_EMPTY + ANNOTATE_NOENDBR cld /* Clear .bss */