Received: by 10.213.65.68 with SMTP id h4csp516697imn; Fri, 16 Mar 2018 10:08:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELt1GiPYzIN7LUeQtG0tSSuoi+12FRjP4VxSAHJbxBNPh8iFA3/mNiMZy5pSycyvRpqWd9RR X-Received: by 10.101.90.140 with SMTP id c12mr2013235pgt.56.1521220099125; Fri, 16 Mar 2018 10:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521220099; cv=none; d=google.com; s=arc-20160816; b=Mu435K4aU3bH6bhOhMLyfYrhhp102W3ToyiLb5nbrlOVNXWh9rwKFtMuUb+sj5aZDa cIYQFBZlT6qepzWgLSoWczzGOvjCnY07O64pPsVClZYMAXAWUpg5MDPPrNeNJxMxdqkR kzQ+SwUoel1fynfdIhQG/Drh5ORu0iOCQE1QjmLWtLsTJ2reHGFQzG4n6odJb/VH+iFQ 59KPiC12pzb+J8gErOgJrSClHTtlUZCl41icsrtaqhDJe03NhtGPeyLKMKGyTPwdujAA B7p1u8crL0xkGsWd7rGBR9Eny5vbkB4LZpw4g2W2YWOzol9kpO7zCF5lo36TEKGD91YF 8dpA== 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=Jer0p39QTM0yYE70//mKIqJj1FaBkSEZLI3hXbRkv8s=; b=ikIlKpeVsB8Rdt1Ch4+AFF8NHIaHnJBniLMZdwZN4gwHnqRPvRe+nwS/rBE2vlTHUN GT5PMzyINraP0O2JMsuI0ZQzLn5sgcLKdACC2ZMF3n7oiD6mXYs0C9RxXuuQqfPXROVc /BKVToWjfQKxxzA3jvZEA3DrZiLirmLrELqvVJtcQ25LNyD5wcX5oZ1lfd+/usa2/XYJ PsshJ5JSZF7cI1a8vxTWREA10Hd0pmagnUhDQGzuSNcDIbCiKtVzuxCqxZWfiMBe4b4g zKEfJLtw7Rwqnhqg6VXaQxniIMjUviBflV4t5S9L6ciuFFn3ispvvDOvQrYSS22VG2/d lF2A== 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 d191si5170560pgc.659.2018.03.16.10.08.04; Fri, 16 Mar 2018 10:08:19 -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 S933028AbeCPRFD (ORCPT + 99 others); Fri, 16 Mar 2018 13:05:03 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37736 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933433AbeCPPb4 (ORCPT ); Fri, 16 Mar 2018 11:31:56 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 0EBF511AA; Fri, 16 Mar 2018 15:31:56 +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.9 44/86] x86/boot, objtool: Annotate indirect jump in secondary_startup_64() Date: Fri, 16 Mar 2018 16:23:07 +0100 Message-Id: <20180316152320.444560453@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152317.167709497@linuxfoundation.org> References: <20180316152317.167709497@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.9-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 @@ -22,6 +22,7 @@ #include #include "../entry/calling.h" #include +#include #ifdef CONFIG_PARAVIRT #include @@ -200,6 +201,7 @@ ENTRY(secondary_startup_64) /* Ensure I am executing from virtual addresses */ movq $1f, %rax + ANNOTATE_RETPOLINE_SAFE jmp *%rax 1: