Received: by 10.223.176.5 with SMTP id f5csp2826599wra; Mon, 5 Feb 2018 10:30:05 -0800 (PST) X-Google-Smtp-Source: AH8x227QfjFy0aE1dWOIJer66AMMKqKoc7yrpYfE4+V2JuNqGt4v4BVckMc4BfOWKxmTXn+9mwWg X-Received: by 10.98.202.214 with SMTP id y83mr48849938pfk.49.1517855405418; Mon, 05 Feb 2018 10:30:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517855405; cv=none; d=google.com; s=arc-20160816; b=S1P5XwCJmFq3MQxrYK5nNqyYF+WzorDpsdePxo+lXwpp9E3a962iVibx451YmBpL2L rUzZ/vhOW9H0Ni/fGqM8zVAqLGj1I+ejvB/Jh0geuMRiXyFQbiJr0kDJr08KrkGxcxc8 r1/PYz1pGynCtYdnhv+tgGu4WiIfKMKlC/BSuva3VjHZe8pQ0RgpnzDVrqoINi7UcI0D XDB8IookscUQvE88opG05yHFA4zooz9W9KlrJk7JlFDdrlSlDGHJHp4y0Wn3OnypjJ8M GVXOzfNAepybsRA1sVeo/vOmkPYWT5Nssj43u2CinobMLcLzXfNtDHYKbkTtLcbPApfp CKGA== 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=0YJtacEtmfinY5A3rMAypAsv4OupbWGRPa6VHyVAnDM=; b=wQH2XZJIp2qLupNzYw7lxYhB6soNib6lBifBcH2Z39UEuAFfl5GqFqH+Vo9QRqFn+2 CGcFC6F7neSKyJk8QhvhEjdZDSspdDFkAyoVVkrSJCHUSESSaAD9HLPXkYjI28rVet4G /7bhVw8G+jy2q9La+W9THvAEtxP9V/MehedfnKDFuPV60YNA2V9AriNs0xGpX6YvCngE tZUqKPYkkYPp60hhkFYeJAnMKkfP6tH4RGPl+eTGmAwtx47IEaEd+m/AI9OvC56fVJWO nnDwFsGC4vgf8Yso/e2d+qLaBAA3P9Etwkez6QjcoCRpfbgz6WCWEnM8Pxj6pZWatcvh 5pIg== 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 w6si101631pgo.491.2018.02.05.10.29.50; Mon, 05 Feb 2018 10:30:05 -0800 (PST) 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 S1753614AbeBES2s (ORCPT + 99 others); Mon, 5 Feb 2018 13:28:48 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:52192 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753651AbeBESY5 (ORCPT ); Mon, 5 Feb 2018 13:24:57 -0500 Received: from localhost (unknown [104.132.1.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 655BA1108; Mon, 5 Feb 2018 18:24:51 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Peter Zijlstra (Intel)" , Thomas Gleixner , David Woodhouse , Andrea Arcangeli , Andi Kleen , Ashok Raj , Jun Nakajima , David Woodhouse , Linus Torvalds , rga@amazon.de, Dave Hansen , Asit Mallick , Andy Lutomirski , Josh Poimboeuf , Jason Baron , Paolo Bonzini , Dan Williams , Arjan Van De Ven , Tim Chen Subject: [PATCH 4.15 02/60] KVM: VMX: Make indirect call speculation safe Date: Mon, 5 Feb 2018 10:22:35 -0800 Message-Id: <20180205182214.009870242@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180205182213.902626065@linuxfoundation.org> References: <20180205182213.902626065@linuxfoundation.org> User-Agent: quilt/0.65 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 peterz@infradead.org commit c940a3fb1e2e9b7d03228ab28f375fb5a47ff699 Replace indirect call with CALL_NOSPEC. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Thomas Gleixner Reviewed-by: David Woodhouse Cc: Andrea Arcangeli Cc: Andi Kleen Cc: Ashok Raj Cc: Greg KH Cc: Jun Nakajima Cc: David Woodhouse Cc: Linus Torvalds Cc: rga@amazon.de Cc: Dave Hansen Cc: Asit Mallick Cc: Andy Lutomirski Cc: Josh Poimboeuf Cc: Jason Baron Cc: Paolo Bonzini Cc: Dan Williams Cc: Arjan Van De Ven Cc: Tim Chen Link: https://lkml.kernel.org/r/20180125095843.645776917@infradead.org Signed-off-by: Greg Kroah-Hartman --- arch/x86/kvm/vmx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -9129,14 +9129,14 @@ static void vmx_handle_external_intr(str #endif "pushf\n\t" __ASM_SIZE(push) " $%c[cs]\n\t" - "call *%[entry]\n\t" + CALL_NOSPEC : #ifdef CONFIG_X86_64 [sp]"=&r"(tmp), #endif ASM_CALL_CONSTRAINT : - [entry]"r"(entry), + THUNK_TARGET(entry), [ss]"i"(__KERNEL_DS), [cs]"i"(__KERNEL_CS) );