Received: by 10.223.185.116 with SMTP id b49csp2393227wrg; Mon, 12 Feb 2018 08:51:52 -0800 (PST) X-Google-Smtp-Source: AH8x225nBHL0m5h3O4FJ2yixJNP4P/crZprMq+wAh3h1qjWy23TQq2sGjPGFfSesbyKZApECGrKt X-Received: by 2002:a17:902:570f:: with SMTP id k15-v6mr11042577pli.321.1518454312329; Mon, 12 Feb 2018 08:51:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518454312; cv=none; d=google.com; s=arc-20160816; b=Ci0q5brCI9ye4F6c9yj3DdKVgVvDOwsZvyVnrEIDWbqKIeEWW8zhOGF7qZvaL8VUpp /82AjvgTCfebEvqeWEVeDIaOqYwkbvmoP6b9UJW6HVNTE9lChk/L9/NlKkmZ5+5sknjv QrEYy9ZkUZsDbONQ1NbgCSjQFk54E70sXZp6rpieh1Jk/AGFJetmzq/UDv5hmGCEIveN RtmCnivfWXzmVJ2OXvlobDPVaRUk1oklayoSB2yliwCJ0WPhMkphGWkqSH/fdDnkP/cH wxbPDoULkSA4s/0r8p7OuOlJSO4dbloERD4jBLq3ictIgQHKIe5qeWhMJi4ZF/HUJpjk lOtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature :arc-authentication-results; bh=cRoY+U6oxOxPTij55Ym+tIIpJaD8B1zU5K4Ra+hXLU4=; b=XlYI/di6Gxi3IJlvkwPYgfSPWtrqnA9W3rzjjp4HJTJZuUzhzZgQcAb2fhMecHSN/Q NgHvsA6g89aSQR6xFfamC7tFJ0gpv/dbTO8dm140iFNORkYjM60k39+FvX3M+7jd22w+ 37uzfz7BSOixKmZV6eee7k1HbOrh1Jy1H149EdTdwL/EhwT5c8/uzRkWdW5OLK6jGSAx 4g7j0HEcfkCL5RVmIH3BgvNMhVXOf4hlTdv56DojVcXLs2QBaku/PUhnccMPfaTfwn8K IZs3c1mB7b5RP674cNYWc10CRTbQpUROw2rjOnWbduJT4LYzEaPBFkRFpw9XCwAE1DCZ 6NUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=IWbgBu5F; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=kQm6ED85; 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 r1si2080817pgf.327.2018.02.12.08.51.37; Mon, 12 Feb 2018 08:51:52 -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; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=IWbgBu5F; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=kQm6ED85; 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 S933643AbeBLNLJ (ORCPT + 99 others); Mon, 12 Feb 2018 08:11:09 -0500 Received: from casper.infradead.org ([85.118.1.10]:58612 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933166AbeBLNLH (ORCPT ); Mon, 12 Feb 2018 08:11:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=cRoY+U6oxOxPTij55Ym+tIIpJaD8B1zU5K4Ra+hXLU4=; b=IWbgBu5F3R9BhWJjnHv0bPKTy FoN7bJhZUxcg7i4aVWCP85lhwIfTeOQ0AWAaMicmU7OXRJtCkJAW/ZB334kVjOHm7ypxl3mkJWY86 RWoaim6OnDZjXGqJhfPWtB93QLRVb2K1JncW4y2fSqUqyLL+v3KZTu1n4twAkgXK4+JpcCXrDOkJ0 WtamHj+7dmKHxM7SmhqlOzcirXb+tdtS3RzELLIOnBppnYT/ZPKXI2dam4ZGp3Pj9WLJmgEgrBDHF eNsz2PwnQLV7GGS3zQmJe6RROn8P3pQkJ5yfMOu7MH9lcIql7+PZFOuuVCFaEudPOGp7679nr9/rR NIC86KKpg==; Received: from [198.137.202.133] (helo=bombadil.infradead.org) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elDsi-0000bW-KM; Mon, 12 Feb 2018 13:10:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=cRoY+U6oxOxPTij55Ym+tIIpJaD8B1zU5K4Ra+hXLU4=; b=kQm6ED85nEPYaBshONse7kujZ Zep53zBQkYVeyBQrVdmxmiBY85UVs4PjfpYR6KJ17EdnYFS85+ApHoId/aRQ7B9nne6TGOdd3i3k4 r3UL2ViHKUO6r1imI+hXmNjG87lKrizIcT+wN3cMlxHaPifb7lRRROHcM+ap9CZPnRXPWLc/T5Ix4 3Z7yeOb+KG95YlWf5OfAFZQmPKWh+QLUN2OFILEFQgM6nadEvQ4TqAD9DbWqoMnrP7QjK6q3iJJAV xBj5wSpXkaKVWt2deudgsMHGTPPoKGKRl2BLg3XxNZoPMhL38hqFupXivjoN59FtzV6Vywbm20YFt ynJYERrnA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1elDof-00016T-LK; Mon, 12 Feb 2018 13:06:41 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1DA6A20274D63; Mon, 12 Feb 2018 14:06:40 +0100 (CET) Date: Mon, 12 Feb 2018 14:06:40 +0100 From: Peter Zijlstra To: David Woodhouse Cc: Ingo Molnar , Thomas Mingarelli , hpa@zytor.com, tglx@linutronix.de, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, Dave Hansen , Borislav Petkov , Arjan van de Ven Subject: Re: [tip:x86/pti] x86/speculation: Use IBRS if available before calling into firmware Message-ID: <20180212130640.GK25181@hirez.programming.kicks-ass.net> References: <1518362359-1005-1-git-send-email-dwmw@amazon.co.uk> <20180212102211.cdrrqqd4hdw7xu5y@gmail.com> <20180212115002.GI25181@hirez.programming.kicks-ass.net> <1518438439.6606.36.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1518438439.6606.36.camel@infradead.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 12, 2018 at 12:27:19PM +0000, David Woodhouse wrote: > On Mon, 2018-02-12 at 12:50 +0100, Peter Zijlstra wrote: > > Wait, we're doing firmware from NMI? That sounds like a _REALLY_ bad > > idea. > > And spin_lock_irqsave() too. Which is probably why I missed the fact > that this was being called in NMI context. > > Yay for HP and their persistent attempts to "value subtract" in their > firmware offerings. > > I'm tempted to drop that part of the patch and declare that if you're > using this driver, the potential for stray branch prediction when you > call into the firmware from the NMI handler is the *least* of your > problems. We should probably mark it BROKEN or something, or move it into staging.