mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
x86/ibt,sev: Annotations
No IBT on AMD so far.. probably correct, who knows. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20220308154318.995109889@infradead.org
This commit is contained in:
parent
3215de84c0
commit
e8d61bdf0f
3 changed files with 4 additions and 0 deletions
|
@ -95,6 +95,7 @@ SYM_CODE_START(entry_SYSCALL_64)
|
||||||
movq PER_CPU_VAR(cpu_current_top_of_stack), %rsp
|
movq PER_CPU_VAR(cpu_current_top_of_stack), %rsp
|
||||||
|
|
||||||
SYM_INNER_LABEL(entry_SYSCALL_64_safe_stack, SYM_L_GLOBAL)
|
SYM_INNER_LABEL(entry_SYSCALL_64_safe_stack, SYM_L_GLOBAL)
|
||||||
|
ANNOTATE_NOENDBR
|
||||||
|
|
||||||
/* Construct struct pt_regs on stack */
|
/* Construct struct pt_regs on stack */
|
||||||
pushq $__USER_DS /* pt_regs->ss */
|
pushq $__USER_DS /* pt_regs->ss */
|
||||||
|
|
|
@ -214,6 +214,7 @@ SYM_CODE_START(entry_SYSCALL_compat)
|
||||||
movq PER_CPU_VAR(cpu_current_top_of_stack), %rsp
|
movq PER_CPU_VAR(cpu_current_top_of_stack), %rsp
|
||||||
|
|
||||||
SYM_INNER_LABEL(entry_SYSCALL_compat_safe_stack, SYM_L_GLOBAL)
|
SYM_INNER_LABEL(entry_SYSCALL_compat_safe_stack, SYM_L_GLOBAL)
|
||||||
|
ANNOTATE_NOENDBR
|
||||||
|
|
||||||
/* Construct struct pt_regs on stack */
|
/* Construct struct pt_regs on stack */
|
||||||
pushq $__USER32_DS /* pt_regs->ss */
|
pushq $__USER32_DS /* pt_regs->ss */
|
||||||
|
|
|
@ -332,6 +332,7 @@ SYM_CODE_END(start_cpu0)
|
||||||
*/
|
*/
|
||||||
SYM_CODE_START_NOALIGN(vc_boot_ghcb)
|
SYM_CODE_START_NOALIGN(vc_boot_ghcb)
|
||||||
UNWIND_HINT_IRET_REGS offset=8
|
UNWIND_HINT_IRET_REGS offset=8
|
||||||
|
ENDBR
|
||||||
|
|
||||||
/* Build pt_regs */
|
/* Build pt_regs */
|
||||||
PUSH_AND_CLEAR_REGS
|
PUSH_AND_CLEAR_REGS
|
||||||
|
@ -439,6 +440,7 @@ SYM_CODE_END(early_idt_handler_common)
|
||||||
*/
|
*/
|
||||||
SYM_CODE_START_NOALIGN(vc_no_ghcb)
|
SYM_CODE_START_NOALIGN(vc_no_ghcb)
|
||||||
UNWIND_HINT_IRET_REGS offset=8
|
UNWIND_HINT_IRET_REGS offset=8
|
||||||
|
ENDBR
|
||||||
|
|
||||||
/* Build pt_regs */
|
/* Build pt_regs */
|
||||||
PUSH_AND_CLEAR_REGS
|
PUSH_AND_CLEAR_REGS
|
||||||
|
|
Loading…
Reference in a new issue