Received: by 10.213.65.68 with SMTP id h4csp428047imn; Tue, 13 Mar 2018 08:45:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELtgmCUlyUlgmSbxf6n9ImuxxKj9ZwAYmsXaEN/S0fNeb1vz6iKWNuD7c3md023OZrLqOtuU X-Received: by 10.99.120.142 with SMTP id t136mr840949pgc.300.1520955905056; Tue, 13 Mar 2018 08:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520955905; cv=none; d=google.com; s=arc-20160816; b=jsavvjeQzXC8vFSkpFg0i5hqXiwZNs5ctGbDrUerqnFZuJbH5+MvT9l3iCmiK2yvN7 j0FT3/9VJrJdd0CZsvWHhCC5m/sx6oUTc8vHDX8YIdWY0KpyegfTTjEBPeaYJ+cPAahB +76B16VAnPfaqgoQ08f1iNp/oUY0qSNAj29mDOYGHCyY5M0+VcoHdupvxgsY44ESQmDh P//SH8OVC3bq/1VGbZp2wRbcmw61rKypD7CChWshDwN/u/hwGUIP3X94p4+pAdOdXRkM x2SHlbIbE4eqgsEMdkAI6/XazqFuVhtkMNgCfIDdI3YIAuQb68xDpep5SSM/gm+R2iil /stA== 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=jEoF94+71W+2CgiEg+UjioAMtR+ZMsLkKmiEaqZYqro=; b=e4oJlgxNSuEFjaiAydQgeT8C9mr1vF10n16CnZWLZXL1Vo7opYISyyvi44F3H6uUXU 4Swj4AXQ+FUiR1WNoCYuv6F4xm7Gw26Rxl2YRcpORa6OBp6cLF+ypSz1EC9wiRWd3xAO eE67rTJ4/7+gIF22Ew5v4etXwARc/TkFrWKNN7yH2v+FjLmao0c3k3l5NTtuBWYpEE/A yfgh/b+I0+JX3KFKr3sttLgQxaMFEUlzcoxBceY5tgY+Y/J2o6UkylRsBt/AEjhKmJXe JMN5gOSGo4ZpuwHdiqJyvGHELUsPLng78oX/Y42qdrgkdrr3iHp2uQvkhvWQ7bB+fBlB aTIg== 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 p18si265957pgu.147.2018.03.13.08.44.50; Tue, 13 Mar 2018 08:45:05 -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 S964861AbeCMPlo (ORCPT + 99 others); Tue, 13 Mar 2018 11:41:44 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37072 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935010AbeCMPlh (ORCPT ); Tue, 13 Mar 2018 11:41:37 -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 8F5F611A9; Tue, 13 Mar 2018 15:41:23 +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.14 129/140] x86/boot, objtool: Annotate indirect jump in secondary_startup_64() Date: Tue, 13 Mar 2018 16:25:32 +0100 Message-Id: <20180313152506.861712803@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@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.14-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