| Date | Tue, 16 Jan 2018 15:28:34 +0100 | From | Peter Zijlstra <> | Subject | [PATCH v2 09/10] x86: Annotate dynamic jump in head_64.S |
| |
The objtool retpoline validation found this indirect jump. Seeing how its on CPU bringup before we run userspace it should be safe, annotate it.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> --- arch/x86/kernel/head_64.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
--- a/arch/x86/kernel/head_64.S +++ b/arch/x86/kernel/head_64.S @@ -134,7 +134,10 @@ ENTRY(secondary_startup_64) /* Ensure I am executing from virtual addresses */ movq $1f, %rax - jmp *%rax +2: jmp *%rax + .pushsection .discard.retpoline_safe + .quad 2b + .popsection 1: UNWIND_HINT_EMPTY
|