]> git.baikalelectronics.ru Git - kernel.git/commit
x86/ibt,xen: Sprinkle the ENDBR
authorPeter Zijlstra <peterz@infradead.org>
Tue, 8 Mar 2022 15:30:23 +0000 (16:30 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 15 Mar 2022 09:32:35 +0000 (10:32 +0100)
commitf80e8ecf1119666c8f9b0d1b2e12e8b224f49608
tree7e29a5e6c80c12bdc17ff1b832840f16ffcbb658
parent6c71a86dddc388298a07c1edd4ee5ca4ea881507
x86/ibt,xen: Sprinkle the ENDBR

Even though Xen currently doesn't advertise IBT, prepare for when it
will eventually do so and sprinkle the ENDBR dust accordingly.

Even though most of the entry points are IRET like, the CPL0
Hypervisor can set WAIT-FOR-ENDBR and demand ENDBR at these sites.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20220308154317.873919996@infradead.org
arch/x86/entry/entry_64.S
arch/x86/include/asm/segment.h
arch/x86/kernel/head_64.S
arch/x86/xen/enlighten_pv.c
arch/x86/xen/xen-asm.S
arch/x86/xen/xen-head.S