From: Borislav Petkov (AMD) Date: Fri, 28 Jul 2023 21:03:22 +0000 (+0200) Subject: x86/srso: Add a forgotten NOENDBR annotation X-Git-Tag: v6.1.52~649 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77cf32d0dbfbf575fe66561e069228c532dc1da9;p=platform%2Fkernel%2Flinux-starfive.git x86/srso: Add a forgotten NOENDBR annotation Upstream commit: 3bbbe97ad83db8d9df06daf027b0840188de625d Fix: vmlinux.o: warning: objtool: .export_symbol+0x29e40: data relocation to !ENDBR: srso_untrain_ret_alias+0x0 Reported-by: Linus Torvalds Signed-off-by: Borislav Petkov (AMD) Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/x86/lib/retpoline.S b/arch/x86/lib/retpoline.S index 764c7ed..30e76fa 100644 --- a/arch/x86/lib/retpoline.S +++ b/arch/x86/lib/retpoline.S @@ -94,6 +94,7 @@ SYM_CODE_END(__x86_indirect_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