Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4325919imb; Wed, 6 Mar 2019 10:34:21 -0800 (PST) X-Google-Smtp-Source: APXvYqy3uKnA9o/mQEodf4vUbx4KLKwFNDSNWiMoxNJa8gB3AsvWcE222uLwOzIK9sGzqJ8UMyad X-Received: by 2002:a17:902:5e3:: with SMTP id f90mr4045755plf.141.1551897261761; Wed, 06 Mar 2019 10:34:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551897261; cv=none; d=google.com; s=arc-20160816; b=kc8Hy9lBr7k3aKuN/k0lYWZHvONV78eJxSmr2fJNx9NYpV9uY/ILgaqTL6KyoLvhJ3 ImP/p0T7weXBvOpS+OpI5ydo3w7pweBDArwOYSEIAXzTWgutGwvsQc8cm9qdZlKH41V4 HnSGA//DVk94gSaYXWt7lVQfA6+7vd/6DunOwq0ipMRpSeKcNJQMXxbRl7Ts7AHXT/Uu hFxDXDNUFq+dvhvZe5oD6tr31wFwasVl8Y7YhsfQ/MOVi2RtCsbPYMKBmdpx81SUc8b0 vlBvh8G3LnDMDQT6dSTzeFIF00ia9Kg/TFhpvb/HSVleyRKqx8IsaA0kamke+xs1LT5I YHsA== 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=Daoa5W1kY+eBrvLFATCAUtuqAOrV6WLhDnSOpJs+YPI=; b=Fy/TEvr2nnYt0GSfxkza3YOIuGh2yKCZZfkIScQ4dwQhkaxjcwv5gSkDvvGwaAsexe w9UOkD3vQUtRF7ZRx14rHR/N3/6kIsVfYn2EwefbMkCZVuk1bs74kRYaz7n3iX+5lwyZ 7w8Tzxn+tPR3/41RI3C7eZPiloE5sKbXKf2KeGgOz8uLYzKZB7/AdqbKobgkU3WPSXdr 6IEXZugCz/bB6akC/gflEquz93fHAiFVWuZjQ3vF3e0gUBgghOzEaUM0LhN7t92WUc2T wmIHv9otq2a3uOY6FPDr2f+Ai2TsHX9EKIOHr1OyatIajYPy2Qt87uDit1C1TiyRdjm/ XZ9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=xv0M1+nr; 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 a8si2093467ple.346.2019.03.06.10.34.06; Wed, 06 Mar 2019 10:34:21 -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=merlin.20170209 header.b=xv0M1+nr; 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 S1730181AbfCFQ6z (ORCPT + 99 others); Wed, 6 Mar 2019 11:58:55 -0500 Received: from merlin.infradead.org ([205.233.59.134]:44804 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbfCFQ6y (ORCPT ); Wed, 6 Mar 2019 11:58:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=Daoa5W1kY+eBrvLFATCAUtuqAOrV6WLhDnSOpJs+YPI=; b=xv0M1+nrrSu7k5Mo05NVEgL9/ kT4xFZ3Ep3V9S/xn5mAvELAbckbjcru/R5AFSzl0bXygAZz3kFVEuZmlAOIxtXAhnzbmMtkUP0W6Y Q1yYaB4ZJnRWbfTgmyy2c6YE0YmRnVHftnIeXkuizSb4ne/Tg46aLB58/SHLhqxkINJatgwJ2MJrP bxbplBS6y9k7VdcyvvewGtWf9iKV9W+ofBPhe7hFFvZURE4KCg6oNXF+qgWMyeZsv1o+M4ITmLtxV Vxe58KN3NYoszX/Au4CAcly9TtB6X3F7KPS4dxSpVrnpccPDN9LawNqWfYmqnKdgS72AU6f74HOwU kTDWe01+w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1ZsG-0004Av-Lm; Wed, 06 Mar 2019 16:58:32 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7263B20316505; Wed, 6 Mar 2019 17:58:31 +0100 (CET) Date: Wed, 6 Mar 2019 17:58:31 +0100 From: Peter Zijlstra To: Akira Yokosawa Cc: "Paul E. McKenney" , 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 , Daniel Lustig Subject: Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo Message-ID: <20190306165831.GZ32477@hirez.programming.kicks-ass.net> References: <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> <20190226150450.GW32477@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.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 Thu, Mar 07, 2019 at 12:46:05AM +0900, Akira Yokosawa wrote: > So, I'm looking at the macro RELOC_HIDE() defined in include/linux/compiler-gcc.h. > Am I the only one who was not aware of this gcc-specific macro? It's one I regularly see, but had forgotten about in this context. However; you can also fix things by adding asm volatile ("":::"memory"); in places. But that's not really the point; I would really rather have a cmdline knob to fix things. That way we can compile the kernel with and without and look for differences. -fno-unicorns or something :-) While I understand some compiler people revel in UB and love to make unicorns happen, I think in this case the produces result is utterly insane.