From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751782AbeAPOhC (ORCPT + 1 other); Tue, 16 Jan 2018 09:37:02 -0500 Received: from merlin.infradead.org ([205.233.59.134]:51818 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751126AbeAPOeo (ORCPT ); Tue, 16 Jan 2018 09:34:44 -0500 Message-Id: <20180116143241.416586568@infradead.org> User-Agent: quilt/0.63-1 Date: Tue, 16 Jan 2018 15:28:34 +0100 From: Peter Zijlstra To: David Woodhouse , Josh Poimboeuf Cc: linux-kernel@vger.kernel.org, Dave Hansen , Ashok Raj , Thomas Gleixner , Tim Chen , Andy Lutomirski , Linus Torvalds , Greg KH , Andrea Arcangeli , Andi Kleen , Arjan Van De Ven , Dan Williams , Paolo Bonzini , Jun Nakajima , Asit Mallick , Peter Zijlstra Subject: [PATCH v2 09/10] x86: Annotate dynamic jump in head_64.S References: <20180116142825.376986833@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline; filename=peterz-objtool-retpoline-annotate.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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) --- 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