Received: by 10.192.165.148 with SMTP id m20csp3409721imm; Mon, 23 Apr 2018 06:11:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+axlX66o/L34QWATzMxT0OHeLwck2GJnAB+UKert02zrF5ebwyoilXtXB5QhQGGoNl0dVX X-Received: by 10.98.0.194 with SMTP id 185mr16267775pfa.238.1524489083557; Mon, 23 Apr 2018 06:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524489083; cv=none; d=google.com; s=arc-20160816; b=dDXlM2c2B+s+QjScn12KN1nwOGGdR2mfwTelmaXi1FhiYkPR6ywMrqSDIfWBthWLm4 y2xuAB6m8tACIGAxy8mxuJnLRGpAzjH1CLtFfzKnXM6xLcEI1JSrjq9X+Ki9v6YBpyv3 mxgX5sF6ZVHUVj1IHNyCrSqbTgs0Gnde/aSJemWfkYjXI/wE77zk0xF0Ac1xe7k6b7KK hW9+jWXJEQ+Q7PIY9lzj5Yof6EyojIxFEO3qa4Is+u7lfbfpoNGEHqOz3QSc9u4bH5vd YkxGYSnBeJSN8gmJSRht+gGyEf/P7x5pc4Xtkfj890ajDTvc3hoW7jEy6caQ+VNzHRgM j0Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=tAM/SPi+MgBiM1Rv2VR/zbUQPWln8jHTWs8VVPtrKAw=; b=MlpaX+mxa+FF6T4TdQTdSHSnMDkouVCVMstreA76rvN3sx+ozvNGrSwFrwYKug7pQH swvq+7JRKYKUfeFBnrjN4AMAWeE9G2M3ve0b2LY1D10bXgQPi28uEwZQgKT2CQcZMLpl oDc8iNtQLehymKeMzc8COz3Ym032IjGhC2u52rsmeULwREuGYBMpTjC85Gek4ZoaAU4y q2jJ9EYg2UoRdio5ZQY6O9Hc+8p9U7BVr5hLJrdgXiyWwSzjq7bRJubOi6rXKGRWkoYM wsGrGTBIpXe+m9G3F5ST0vgW4ZeArm3WmhRtc7j3VRPMTLSSz3Ob2IjySMvpGGKQvBrT 5NdQ== 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 m4si9579290pgv.517.2018.04.23.06.11.08; Mon, 23 Apr 2018 06:11:23 -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 S1755233AbeDWNJ1 (ORCPT + 99 others); Mon, 23 Apr 2018 09:09:27 -0400 Received: from gateway23.websitewelcome.com ([192.185.49.60]:35412 "EHLO gateway23.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754887AbeDWNJZ (ORCPT ); Mon, 23 Apr 2018 09:09:25 -0400 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway23.websitewelcome.com (Postfix) with ESMTP id 189266A04 for ; Mon, 23 Apr 2018 08:09:25 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id AbDhfNPSbA3CSAbDhfTWTw; Mon, 23 Apr 2018 08:09:25 -0500 X-Authority-Reason: nr=8 Received: from [189.145.48.65] (port=55876 helo=[192.168.1.71]) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1fAbDf-000Pxs-20; Mon, 23 Apr 2018 08:09:23 -0500 Subject: Re: Smatch check for Spectre stuff To: Peter Zijlstra Cc: Dan Carpenter , linux-kernel@vger.kernel.org, Ingo Molnar , Thomas Gleixner , dan.j.williams@intel.com, Linus Torvalds References: <20180419051510.GA21898@mwanda> <20180420120044.GN4064@hirez.programming.kicks-ass.net> <20180423124552.GY4064@hirez.programming.kicks-ass.net> From: "Gustavo A. R. Silva" Message-ID: Date: Mon, 23 Apr 2018 08:08:55 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180423124552.GY4064@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.145.48.65 X-Source-L: No X-Exim-ID: 1fAbDf-000Pxs-20 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.71]) [189.145.48.65]:55876 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 3 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/23/2018 07:45 AM, Peter Zijlstra wrote: > 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. > Yeah. I think it's important to mention that, so everybody is on the same page. In particular now that is very likely that many people will start writing patches to fix the rest of the issues Dan reported. Thanks -- Gustavo