Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp673608img; Tue, 26 Feb 2019 06:48:38 -0800 (PST) X-Google-Smtp-Source: AHgI3IbJZi9Ph4GKqdu0/XDVe/FYzSNDo1AYBCLX1SoX0rE7G0jeWeTo1n3BA9NbwScsSPsdXz/P X-Received: by 2002:aa7:9102:: with SMTP id 2mr26065294pfh.179.1551192518572; Tue, 26 Feb 2019 06:48:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551192518; cv=none; d=google.com; s=arc-20160816; b=qacTHDKI85yA6XwIokzFf3RXjIplBt1mKy1/FgN5WT9Crt2n+KjcdaFHcMERxixjGN m4pi6a3L8IvOSOIIDx7sB4P9j5P918UM3JDq9XGZYAYtpr9RElu2dYv5hs7DdsKEb4+F BcF2KtaZhvBY9kUh7Q0nV/Jc4JRkNVn1+5TaTzaRUs2Zldqwc+nR0AFwsP7yYclSuNj9 ECHVpIzOZiRxEeVqsti5laCN26LXDqcJPVMZQQzakb2mZfTOWlzR2B6ZIEZLhqHy1qIS q0ZPSAh4/fniNki4FcSDkS+qyYOYkXr750U3q8a2UK/VN2kp9Ylt2SJz0EnTRCot3k4g V8eQ== 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; bh=dBmTsD/iWmRm9SKRntsMzsXzHDIaIgs+NsNUTTSuX5U=; b=ul26WVXSDbHIaG/jPNh3iiZ/29bx0ErM5BrvUl7+ys5Oh/i3gzV0Ai6go+RpnltpRl YvnRnWWT85HA8Cx/Q54kgjDVotVIuSqyNSjYbLYLb80thsRQb71l8FwNYX+hMVzjRZM1 6oTjCcTDvvzZJsX6FgtEeEhJCb4/3qWf69i++mUZsE3eGsk2ZqpIhxNRwAXYulC9Z9ba xtLKI00cqnvC7OLNzUdj1cbgYJ0nsJWqGzmNmr8p72DKSZOIGr1mvQ+63Iw50DKuEtiR Y8cbJQ7ZN45qVIyJ6yCS6ejcPZAmOAWIxXQgshBcW4OXDuaJ+Gos83yOZBDjtw4MRTna m+LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=PwllWiFB; 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 b5si12329836plx.64.2019.02.26.06.48.23; Tue, 26 Feb 2019 06:48:38 -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=bombadil.20170209 header.b=PwllWiFB; 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 S1727872AbfBZOro (ORCPT + 99 others); Tue, 26 Feb 2019 09:47:44 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:52506 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726099AbfBZOro (ORCPT ); Tue, 26 Feb 2019 09:47:44 -0500 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=dBmTsD/iWmRm9SKRntsMzsXzHDIaIgs+NsNUTTSuX5U=; b=PwllWiFBR33EyXy4hvpE7o9CY 8oTC6oGMNaYSoE58dH+9XhEaOu4WWtGZukuwHr1bk+/zu5G8r6JP+4ZRJb+YxkN8n5BY8Yd7JloCr eRCgs5s9Pu52JCR7RgcKkrQgn1e/S/6izfmjTIZwtsNMpJu6qIyWC14JBfNNj5Vxdg1yffS7M8PJI sQ/Jh+5Tx7PCwIRjIqzaYmOvw63e4qM1gUgYZf969FVyWFpugpxhi/ZmpXc6pkUIJYP0JJ/Gz0cy6 UYZfwcSp1GtnuM0aet7vbSyyhN3Kdlu7dK58/HN1oG5uq4TvVCr+8AayPddElDYtcGAtsyibi6SBx aiv59rdkQ==; 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 1gye17-0003pS-4F; Tue, 26 Feb 2019 14:47:33 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C7F0C23CB753C; Tue, 26 Feb 2019 15:47:30 +0100 (CET) Date: Tue, 26 Feb 2019 15:47:30 +0100 From: Peter Zijlstra To: "Paul E. McKenney" 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 Message-ID: <20190226144730.GV32477@hirez.programming.kicks-ass.net> References: <20190222130014.GY32494@hirez.programming.kicks-ass.net> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190226142845.GK4072@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) 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 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.