Received: by 10.213.65.68 with SMTP id h4csp457595imn; Tue, 13 Mar 2018 09:40:10 -0700 (PDT) X-Google-Smtp-Source: AG47ELtrBL0MHiOnW6Fdbt8QBL18aX70ZM4hcBZh2zzcxBWGkJIQ34BuX/PbBiDbpn3DaPkbD1AO X-Received: by 10.99.190.66 with SMTP id g2mr948825pgo.143.1520959210001; Tue, 13 Mar 2018 09:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520959209; cv=none; d=google.com; s=arc-20160816; b=shMqBCWZxqaWTlvtXsbLE1DTu4bTt1eNwFfwqtsIoeRbBPQRpDFhMaWULlr8TqDBTf b/DXGm0iqRwXLOp82VEugpl+iVvdcy7GTB7Qlpx4+k+MYesJjogPgaN69nDa2ROnO7bp CtaidF8rop4dqemqsWwkZ0LBTzRWtuWdxZeeErV8ilR829FUs3+hSjn0hrOWzxL4DXJr bUro8w8R69spuu/IJHviZeUpyMfWsmH7w37e4I219anmsoMd8Y+WKmgNkeLwpWu2OIpb sg4Aiq2uV56qE8YA/x3k8vFRkXRDuu2jB3PFe6Q07KJHNHYJ0pYWlvCcW+OyddkDotnZ 9g9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ZPRlVdaozkAwZ6C7GsGI01PU3apm9UtSuqYY2fA0A1w=; b=kuYZNTU3/zT/r78h+lJcxEEOPfcf5qu80/x23olAUoCO1G+cB05tfvJcpdg2me+bEF 4xvKSvrVMZkYjk3Q+ANrdI9USzuYHLp87NS9Uixmf3z4r+1oOiZco3773GLBpUSAnFJ6 uJgTgXLnoaBhY2qmGEdAQ7ug2kuZaqpScbWUpTP3oNPTPJ3M6FiV38fbIEbDkQn/M90W Ptf0rv71Lvl3dUVKU7xw0r6r5Xgd7EBhRjCjFFxm8pEkBu0J11jg//2agqkrHIvpsVlh s39tsdisAqboCEPMD0XlDKnm2HQX3A75j7naahQookH8gMNO4ENbs/ziyoeQF16cZLWi Lr3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w17-v6si340872plp.561.2018.03.13.09.39.55; Tue, 13 Mar 2018 09:40:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933519AbeCMQiQ (ORCPT + 99 others); Tue, 13 Mar 2018 12:38:16 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59628 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752007AbeCMPcA (ORCPT ); Tue, 13 Mar 2018 11:32:00 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 760181216; Tue, 13 Mar 2018 15:31:59 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Peter Zijlstra (Intel)" , David Woodhouse , Thomas Gleixner , Josh Poimboeuf , Andy Lutomirski , Arjan van de Ven , Borislav Petkov , Dan Williams , Dave Hansen , David Woodhouse , Linus Torvalds , Ingo Molnar Subject: [PATCH 4.15 095/146] x86/boot, objtool: Annotate indirect jump in secondary_startup_64() Date: Tue, 13 Mar 2018 16:24:22 +0100 Message-Id: <20180313152327.961496713@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Peter Zijlstra commit bd89004f6305cbf7352238f61da093207ee518d6 upstream. The objtool retpoline validation found this indirect jump. Seeing how it's on CPU bringup before we run userspace it should be safe, annotate it. Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: David Woodhouse Acked-by: Thomas Gleixner Acked-by: Josh Poimboeuf Cc: Andy Lutomirski Cc: Arjan van de Ven Cc: Borislav Petkov Cc: Dan Williams Cc: Dave Hansen Cc: David Woodhouse Cc: Greg Kroah-Hartman Cc: Linus Torvalds Cc: Peter Zijlstra Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/head_64.S | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/x86/kernel/head_64.S +++ b/arch/x86/kernel/head_64.S @@ -23,6 +23,7 @@ #include #include "../entry/calling.h" #include +#include #ifdef CONFIG_PARAVIRT #include @@ -134,6 +135,7 @@ ENTRY(secondary_startup_64) /* Ensure I am executing from virtual addresses */ movq $1f, %rax + ANNOTATE_RETPOLINE_SAFE jmp *%rax 1: UNWIND_HINT_EMPTY