Skip to content

Commit

Permalink
x86/srso: Add a forgotten NOENDBR annotation
Browse files Browse the repository at this point in the history
Fix:

  vmlinux.o: warning: objtool: .export_symbol+0x29e40: data relocation to !ENDBR: srso_untrain_ret_alias+0x0

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
  • Loading branch information
Borislav Petkov (AMD) committed Jul 29, 2023
1 parent 238ec85 commit 3bbbe97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/lib/retpoline.S
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ SYM_CODE_END(__x86_indirect_jump_thunk_array)
.section .text.__x86.rethunk_untrain

SYM_START(srso_untrain_ret_alias, SYM_L_GLOBAL, SYM_A_NONE)
ANNOTATE_NOENDBR
ASM_NOP2
lfence
jmp __x86_return_thunk
Expand Down

0 comments on commit 3bbbe97

Please sign in to comment.