Skip to content
Snippets Groups Projects
Commit 7a232c7d authored by Joe Lawrence's avatar Joe Lawrence
Browse files

x86/xen: Add ANNOTATE_NOENDBR to startup_xen()

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2121207



commit 1ab80a0d
Author: Josh Poimboeuf <jpoimboe@redhat.com>
Date:   Mon Apr 18 09:50:25 2022 -0700

    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: ed53a0d9 ("x86/alternative: Use .ibt_endbr_seal to seal indirect calls")
Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarAndrew Cooper <andrew.cooper3@citrix.com>
    Link: https://lkml.kernel.org/r/a87bd48b06d11ec4b98122a429e71e489b4e48c3.1650300597.git.jpoimboe@redhat.com



Signed-off-by: default avatarJoe Lawrence <joe.lawrence@redhat.com>
parent 7ff8c3af
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ SYM_CODE_END(hypercall_page)
__INIT
SYM_CODE_START(startup_xen)
UNWIND_HINT_EMPTY
ANNOTATE_NOENDBR
cld
/* Clear .bss */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment