Skip to content
Snippets Groups Projects
Commit d56fc9ea authored by Waiman Long's avatar Waiman Long
Browse files

x86/ibt,entry: Sprinkle ENDBR dust

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



commit 8f93402b
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Tue, 8 Mar 2022 16:30:24 +0100

    x86/ibt,entry: Sprinkle ENDBR dust

    Kernel entry points should be having ENDBR on for IBT configs.

    The SYSCALL entry points are found through taking their respective
    address in order to program them in the MSRs, while the exception
    entry points are found through UNWIND_HINT_IRET_REGS.

    The rule is that any UNWIND_HINT_IRET_REGS at sym+0 should have an
    ENDBR, see the later objtool ibt validation patch.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
    Link: https://lore.kernel.org/r/20220308154317.933157479@infradead.org



Signed-off-by: default avatarWaiman Long <longman@redhat.com>
parent 4846a5b7
No related branches found
No related tags found
Loading
Loading
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