Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp729282img; Tue, 26 Feb 2019 07:40:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IbHHcz2v+HF3frjndBKRuAQCu/9OJ0If18SPhwGCSzM75CbuYKvuJkdPZRvMRnJQZM3BoGl X-Received: by 2002:a65:5c46:: with SMTP id v6mr18273pgr.309.1551195649456; Tue, 26 Feb 2019 07:40:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551195649; cv=none; d=google.com; s=arc-20160816; b=mLYEnzNGgAJ7B7KFA4/mwpcJv0KP0dcra8SA7Ie9h2XKx/DQXOC95JyNv4/9AvJVml nR0sFeGf+P9evDxhz9WPzGm8SoogkZdH+oNc0wxQ0kIJMPTA2ckaEA1Mdt2lapeUPZai wqUsWCyc0icDAjyHEIn8xZZ+KgmWiWEluzQpR3XyHvpyCZ0ALRoaquVovQkAFjrFdUTw FTKtUBEyLWXYRAj6mrdxRL28CK8vbILVfCSd6TxQkdFlDpFOg2qW7+CXhbUMR1s98ylK n4kUlGflmMwDOPqc9FdAxafSbWeSSavo7g4jzyDaxyTttpMJjGYKEgMuLC0F+NmGUzyZ M1Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date; bh=K41U4AL2gExSsQQ1VE4sYJcAkaquGDRmWUYa3VeuPm0=; b=XGidFPo853dcJw7WYoEAF/Jv5Cnp/6smOPpuSkn0tFzqoiTUcOwKDpOrysXMTdjhcE oF6R3VQ9iq1z8vUYC7LXK4zSiult77exSgUTGslsLNYCAx7hpWJWfxGLeK754/C3dnhd sdzinWtSusCuINIjqCZh+z4Xh0P1le5sxJQIdx6AyBWl6nDU60xMkb5seXebn0TaWINK TUS9xs7vcWEdxw6ISxL2FyTvnOx0jig/ZFzLQEpA/1vZ0qoVoeGgQ2A1WRUeHTwgMcsC OCuQmEdxffqzbjVaSJikdBmQmfJ3sWUFN8qG1GoLwuIOxZn7XYYVgEYL74gLpUAP9d1r KqCA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e17si11726526pgv.452.2019.02.26.07.40.34; Tue, 26 Feb 2019 07:40:49 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727537AbfBZPkG (ORCPT + 99 others); Tue, 26 Feb 2019 10:40:06 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51062 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726542AbfBZPkG (ORCPT ); Tue, 26 Feb 2019 10:40:06 -0500 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1QFOquT066922 for ; Tue, 26 Feb 2019 10:40:05 -0500 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0a-001b2d01.pphosted.com with ESMTP id 2qw776mjpv-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 26 Feb 2019 10:40:04 -0500 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 26 Feb 2019 15:40:03 -0000 Received: from b01cxnp22036.gho.pok.ibm.com (9.57.198.26) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 26 Feb 2019 15:39:58 -0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x1QFdvMj23068894 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Feb 2019 15:39:57 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 73C5DB206B; Tue, 26 Feb 2019 15:39:57 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 55691B2067; Tue, 26 Feb 2019 15:39:57 +0000 (GMT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.188]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 26 Feb 2019 15:39:57 +0000 (GMT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 1078416C139E; Tue, 26 Feb 2019 07:39:57 -0800 (PST) Date: Tue, 26 Feb 2019 07:39:57 -0800 From: "Paul E. McKenney" To: Peter Zijlstra Cc: Borislav Petkov , Andrea Parri , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Alan Stern , Will Deacon , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , Akira Yokosawa , Daniel Lustig Subject: Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo Reply-To: paulmck@linux.ibm.com References: <20190225175517.GK4072@linux.ibm.com> <20190226093009.GS32477@hirez.programming.kicks-ass.net> <20190226104551.GF32534@hirez.programming.kicks-ass.net> <20190226112133.GG32534@hirez.programming.kicks-ass.net> <20190226112521.GH32534@hirez.programming.kicks-ass.net> <20190226113008.GI32534@hirez.programming.kicks-ass.net> <20190226113813.GA14753@zn.tnic> <20190226134906.GG32494@hirez.programming.kicks-ass.net> <20190226142845.GK4072@linux.ibm.com> <20190226144730.GV32477@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190226144730.GV32477@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 19022615-0072-0000-0000-00000400711B X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010668; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000281; SDB=6.01166685; UDB=6.00609438; IPR=6.00947290; MB=3.00025750; MTD=3.00000008; XFM=3.00000015; UTC=2019-02-26 15:40:02 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19022615-0073-0000-0000-00004B4ECA3E Message-Id: <20190226153957.GN4072@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-26_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=718 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902260111 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 26, 2019 at 03:47:30PM +0100, Peter Zijlstra wrote: > On Tue, Feb 26, 2019 at 06:28:45AM -0800, Paul E. McKenney wrote: > > I must confess to not being all that sympathetic to code that takes > > advantage of happenstance stack-frame layout. Is there some reason > > we need that? > > Not that I'm aware; but if it gets this 'obvious' case wrong, I worry > what else it gets wrong. > > At the very least we should get this fixed and compile a kernel with the > fixed compiler to see what (if anything) changes in the generated code > and analyse the changes (if any) to make sure we were ok (or not). > > I mean; yes that example is UB, but the result is also clearly batshit > insane. My understanding is that their goal is better analysis of pointer aliasing, and that this case is a side effect. Thanx, Paul