projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4b4bc1
)
x86/xen/pvh: Annotate indirect branch as safe
author
Josh Poimboeuf
<jpoimboe@redhat.com>
Thu, 21 Jan 2021 21:29:30 +0000
(15:29 -0600)
committer
Josh Poimboeuf
<jpoimboe@redhat.com>
Tue, 26 Jan 2021 17:33:02 +0000
(11:33 -0600)
This indirect jump is harmless; annotate it to keep objtool's retpoline
validation happy.
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Juergen Gross <jgross@suse.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link:
https://lore.kernel.org/r/4797c72a258b26e06741c58ccd4a75c42db39c1d.1611263462.git.jpoimboe@redhat.com
arch/x86/platform/pvh/head.S
patch
|
blob
|
history
diff --git
a/arch/x86/platform/pvh/head.S
b/arch/x86/platform/pvh/head.S
index 43b4d864817ecc37ab7b4257187c5dec4405884c..d2ccadc247e6f9a51abcf09184eafc2c8b59346a 100644
(file)
--- a/
arch/x86/platform/pvh/head.S
+++ b/
arch/x86/platform/pvh/head.S
@@
-16,6
+16,7
@@
#include <asm/boot.h>
#include <asm/processor-flags.h>
#include <asm/msr.h>
+#include <asm/nospec-branch.h>
#include <xen/interface/elfnote.h>
__HEAD
@@
-105,6
+106,7
@@
SYM_CODE_START_LOCAL(pvh_start_xen)
/* startup_64 expects boot_params in %rsi. */
mov $_pa(pvh_bootparams), %rsi
mov $_pa(startup_64), %rax
+ ANNOTATE_RETPOLINE_SAFE
jmp *%rax
#else /* CONFIG_X86_64 */