Received: by 10.192.165.148 with SMTP id m20csp3383147imm; Mon, 23 Apr 2018 05:47:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx493u7nQwDVYsevDOQ9/tKoS5Q4uUqD84/5g1GsxA3enbMXcpy1q4vyr2CApwmdsEnRNTY1v X-Received: by 10.98.102.79 with SMTP id a76mr19842133pfc.162.1524487652298; Mon, 23 Apr 2018 05:47:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524487652; cv=none; d=google.com; s=arc-20160816; b=C+zJREHzvbaAIyoTMUMlWoaQe+yPPblPGIWuqMIu0nCfF6LQs4bfzrs/OozVftIt+6 LutpAa87kKaHkcW78oCGMJ0ZX3Vz8S6TQKwNrJpM3Yqo0rd+pBsyxEk9dZ0Qg1+6qzST tZx5pmod/hJyAAhYx6mXBKR1mfjgj6hfRmEamOIozZNZXZuE46QcYdoh90J0AD2wEfQ3 e0UY5BPOIzH3eYNQLvN2Fz422i4taKeFaW5LCUBsufmA+ostCUWd4J/LhaQ/i9okkdnM vTnY+8Abm/WCWFRV+cwjiTYOOfjuYC65PkMS62M0T7dqjDh6LfyBw5fMRs4e9fjUFSHK DmnA== 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:arc-authentication-results; bh=UdFbHBPcwT0TxJe9ZA4yQF5FBOdC9HVeJ7IBbl6aJvA=; b=kaidinc2OSzJZLN0rpZ08BPHeOhfHR/u5PM1ok7i9OL+iScVieC/GXt6xZKL2ScF0R 2U5QjySzDUnN0SHkavfkPo9DrWBXjP3Y18DvNsB5WTB/6tYrt6h90AkCpy8UWKz2RTQO ekYpjLSYX5zH0M1gMTClorutMxGs9qexSD6Hdx0UV458/dxHzMjIBFJKhr2Oe5YES107 /n1jbxhc4L11xm+7PT0bmjSipXcfxuHgY/MEMV54ykAdDf2nf4TWWi391Jph/652TQlq uIC2Lr5EKjsgYQutnVmSBTiwrcnoazQ+3tPplzeYmAcw6mhwXxtLfoWLYAxjYRk5CTAx JvEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=A4HQAKUn; 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 p23si9540597pgv.153.2018.04.23.05.47.17; Mon, 23 Apr 2018 05:47:32 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=A4HQAKUn; 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 S1755047AbeDWMqL (ORCPT + 99 others); Mon, 23 Apr 2018 08:46:11 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42390 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754802AbeDWMqK (ORCPT ); Mon, 23 Apr 2018 08:46:10 -0400 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=UdFbHBPcwT0TxJe9ZA4yQF5FBOdC9HVeJ7IBbl6aJvA=; b=A4HQAKUnRXoCV7OE+kzx8FGtK dIyjpuqFgfSXvwoBzKtctQ0jVCnGKbWhtsUuoa4wpysSV1LQTr7omqLRknzoEOd1HXIpVdcWJLKAs jW0pwCxNLO0PROkX5CBcQ3ihi06GrzEWXQO2wW9AhiwkpkilssyDJFoq0i+TfSbzkCgcrLkSxTw1h Saggrjohn5dp5YrCq8ZKKsRzzhzMtLj3wiS7HyNpz42Q8LEV7NL5UvPvaL1WCQVj005fn78oimzhg GSJ9+EXPfcJcmD3Dy+dyfbzBy3BCehtHapmMuPV8NtoFk6vLWdBFylsbFLdQ4FBsRwIBKkL65NAhR k3ChsCpdg==; 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.90_1 #2 (Red Hat Linux)) id 1fAaqw-0000wG-72; Mon, 23 Apr 2018 12:45:54 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 694F9202A4A09; Mon, 23 Apr 2018 14:45:52 +0200 (CEST) Date: Mon, 23 Apr 2018 14:45:52 +0200 From: Peter Zijlstra To: "Gustavo A. R. Silva" Cc: Dan Carpenter , linux-kernel@vger.kernel.org, Ingo Molnar , Thomas Gleixner , dan.j.williams@intel.com, Linus Torvalds Subject: Re: Smatch check for Spectre stuff Message-ID: <20180423124552.GY4064@hirez.programming.kicks-ass.net> References: <20180419051510.GA21898@mwanda> <20180420120044.GN4064@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 23, 2018 at 07:31:03AM -0500, Gustavo A. R. Silva wrote: > Hi Peter, > > On 04/20/2018 07:00 AM, Peter Zijlstra wrote: > > > > Hi Dan, > > > > awesome stuff... > > > > So I fear that many are actually things we want to fix. Our policy was > > to kill the speculation on the first load and not worry if it can be > > completed with a dependent load/store. > > > I wonder if there is any thread where I can read the discussion about that > policy that you mention. > > Could you share it here, please? I think it was somewhere in the many spectre variant1 threads when Linus Alexei and Dan W were hashing out the mitigation thing. I cannot quickly find the specific email. Clarifying that position was one reason for the patches I did, Linus and Dan W are on Cc and I figure that if they all agree we should maybe add a little something to Documentation/speculation.txt.