Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4100663ybl; Tue, 20 Aug 2019 07:03:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhe5tNeTYccq/mhqzchWJzO5dbkllLVfz/Nd/oF8nmg3zlZhXDHNInB3+fh6R0RPekcwkF X-Received: by 2002:aa7:991a:: with SMTP id z26mr26088334pff.43.1566309808251; Tue, 20 Aug 2019 07:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566309808; cv=none; d=google.com; s=arc-20160816; b=KvU7pS0O1PW2n4cEGUyXbryJ86jP5TxhZBnZ+98tyK356gze864JmpiE2ss+3QFxWy oN2Jh35DYiTRhl7eGuEvYCqazE3qsZkOxmjV5F9psFOnvD3zu4dWKnPiwx3bSPIZkqYu XWmBUW3qK9OUed99eNnPVvt0No+LGnPf5gnwKSlATlM9Dyh3QkZGTFIxzaqrU3AFbhp+ g4g2yAP41w1+3MCGLs0NjTElc7slfoZWYcxssqq6OU5Os0soX7sWjl/+MAyTKkC07ZMx llpsTeDUJJWV896a/XXAW7m0vYVVR3gxGQ2kUxdAPApXeTAIOrIopWgghtr7n/Y2v2y8 uy6w== 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=gLhg4HAa4igL5SyHGpnfr2gcltQ/3hnkrbcKe7wbKUw=; b=dDHLPuCuyzxmCbP50S0s7elZIwV8hiu/gklH2weYa/8eLOo0+RSmRDS2vDNygAmVgo YGMCWt7i1YuYkFABEzweX1F+7FwB4L3C1V8qQOfI0I8+NjGlbhI/SOOeOYB++LYGu/NP /3ZeZO/3pvoXGZExm9LEYb6EJzMlLfXqUQamvgwiJgyygUuPJL/pKznWFafd8Ps4cQjL EG+7yvp+WqJekgHpSph5ysj0MkJRI8AaihLM2XAM4HLYZXcK6IWxe8Bp8+BpI8nl9QLN lXQmuRznBGH8App4y+j42bsVbFNtLgH4OQ+IhG2vprohSIBk/H5LTcodcA6PptmfyGLE 1X0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=FRnIwSNx; 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 4si52450pjo.48.2019.08.20.07.03.11; Tue, 20 Aug 2019 07:03:28 -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=merlin.20170209 header.b=FRnIwSNx; 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 S1730278AbfHTOB5 (ORCPT + 99 others); Tue, 20 Aug 2019 10:01:57 -0400 Received: from merlin.infradead.org ([205.233.59.134]:37300 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730133AbfHTOB4 (ORCPT ); Tue, 20 Aug 2019 10:01:56 -0400 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=gLhg4HAa4igL5SyHGpnfr2gcltQ/3hnkrbcKe7wbKUw=; b=FRnIwSNxSTuM6hcyu83oqyloX 3b5NsACn6SxOMm1uowjxEedIkVTh1ipU2CUgs2pLkzRlWrZIrF8wuSjgxGLmXgAqNWlzTFfD6L3sB y9jjRrAlD0NlSg/i2nU8p0NYHqWmItceaE/5a/gB6qHtJKRFRW/3UbD/YlCS62iyVx4zgUH75c8PK 8KVYJTzSJ8yVCzNXoQx0x58GQ28bUNNVtAfl7G9nhOCp6ibwT/hBovvqKJQlA7eGgQblf5+nL0ffa VmBlgci966Qgj9eeEHYb9QB6X4bjzCksmqBMX0maO5vuJgse/xm9thoZkVezjHVZ2lPl/N0HX5RDC I1/tUOvLA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i04hM-0000CS-9G; Tue, 20 Aug 2019 14:01:20 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 83D7F307603; Tue, 20 Aug 2019 16:00:45 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A6C4620A99A00; Tue, 20 Aug 2019 16:01:16 +0200 (CEST) Date: Tue, 20 Aug 2019 16:01:16 +0200 From: Peter Zijlstra To: "Paul E. McKenney" Cc: Linus Torvalds , Valentin Schneider , Joel Fernandes , Thomas Gleixner , Alan Stern , Mathieu Desnoyers , rostedt , linux-kernel , Boqun Feng , Will Deacon , David Howells Subject: Re: [PATCH 1/1] Fix: trace sched switch start/stop racy updates Message-ID: <20190820140116.GT2332@hirez.programming.kicks-ass.net> References: <241506096.21688.1565977319832.JavaMail.zimbra@efficios.com> <20190816205740.GF10481@google.com> <3c0cb8a2-eba2-7bea-8523-b948253a6804@arm.com> <20190817045217.GZ28441@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190817045217.GZ28441@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 Fri, Aug 16, 2019 at 09:52:17PM -0700, Paul E. McKenney wrote: > On Fri, Aug 16, 2019 at 03:57:43PM -0700, Linus Torvalds wrote: > > [ . . . ] > > > We add READ_ONCE and WRITE_ONCE annotations when they make sense. Not > > because of some theoretical "compiler is free to do garbage" > > arguments. If such garbage happens, we need to fix the compiler, the > > same way we already do with > > > > -fno-strict-aliasing > > Yeah, the compete-with-FORTRAN stuff. :-/ > > There is some work going on in the C committee on this, where the > theorists would like to restrict strict-alias based optimizations to > enable better analysis tooling. And no, although the theorists are > pushing in the direction we would like them to, as far as I can see > they are not pushing as far as we would like. But it might be that > -fno-strict-aliasing needs some upgrades as well. I expect to learn > more at the next meeting in a few months. > > http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2364.pdf > http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2363.pdf > http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2362.pdf We really should get the compiler folks to give us a -fno-pointer-provenance. Waiting on the standards committee to get their act together seems unlikely, esp. given that some people actually seem to _want_ this nonsense :/