Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4534823ybl; Tue, 20 Aug 2019 13:33:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSgM6fGnjbSCDMrLdqY7flZXAfvjd69Lv/ru6BKAR6xW8Hj2/8OfaM01B+mk9oUAFW4gdo X-Received: by 2002:a63:124a:: with SMTP id 10mr26314160pgs.254.1566333209800; Tue, 20 Aug 2019 13:33:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566333209; cv=none; d=google.com; s=arc-20160816; b=cDgbU5aO8JESD57cbpYQrolQZRB3DTup7lYFcx/f5jx07aE/VI8kULufZYeDm1G/UG B9MEsalsrd0/YeOlHwM2I630FA90lyEkuR0n+GW4m6GIuiFA/vDiSDd9JF5A1T653vwZ vxMdsNZTz46iy+nCcV2tjzNGl92sRj2bIpgjB2QIy0upM07MgWsTKCKVQAewEtndhSzo wCQ1k4Atq+B5B3iCO/71wvscdID/6il2twbvJhjgKU5i39gZPma2qcs62IBvcCImiowa e4gs0cszQmK1SYpaX0dYjuvlsXxMmjoHJT9thOEJVlgutZmVLCREQ4UEDjFFsSsFK6J/ QAIg== 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:reply-to:message-id :subject:cc:to:from:date; bh=w5v8ocsv7+yB09a/Vr+7KZl1vnRKo/jD09ulSRNJtQw=; b=dJhXvDe7t/dH2srbby5NQ6ctcRFZXbts02ZZTAC3y+7UY2JWkhVW9sz/D5vme3rLUq KsNSsYzjAPDOZ3JQwk5QDsrFCdDlPaRekg/y4mub3Aptywkggsot4hUp1cm3YQaUywQ9 iJMhQMUyBmvv2hDZWQtlgYQmrwCL/X7nUrOXyh1wbPEi0I5Mc5N9xTGH64zPqn+LtkA/ dVLSG/EC10vgbzzbaTDbesbtm5HxxWX08s7U0x2R4cX8oiHbNjpsnXpvo59ghP7HTa4F 2OhTVfumVh5hJBOwBXsc43VkrFEdWrfdrE9TD/9X0Ep1AReeS2sbYtfsAZNfO5nd1QXo FhqQ== 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 s13si14014031pfe.140.2019.08.20.13.33.13; Tue, 20 Aug 2019 13:33:29 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730839AbfHTUcN (ORCPT + 99 others); Tue, 20 Aug 2019 16:32:13 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:60502 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730728AbfHTUcN (ORCPT ); Tue, 20 Aug 2019 16:32:13 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x7KKROPK045220; Tue, 20 Aug 2019 16:31:36 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ugpf23w03-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Aug 2019 16:31:36 -0400 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.27/8.16.0.27) with SMTP id x7KKSI73048112; Tue, 20 Aug 2019 16:31:35 -0400 Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ugpf23vy5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Aug 2019 16:31:35 -0400 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id x7KKRERn017378; Tue, 20 Aug 2019 20:31:34 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma04dal.us.ibm.com with ESMTP id 2ue976yb5v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Aug 2019 20:31:34 +0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x7KKVY4r48890254 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Aug 2019 20:31:34 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0484FB2064; Tue, 20 Aug 2019 20:31:34 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D998DB205F; Tue, 20 Aug 2019 20:31:33 +0000 (GMT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.154]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 20 Aug 2019 20:31:33 +0000 (GMT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 1665816C13CD; Tue, 20 Aug 2019 13:31:35 -0700 (PDT) Date: Tue, 20 Aug 2019 13:31:35 -0700 From: "Paul E. McKenney" To: Peter Zijlstra 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: <20190820203135.GX28441@linux.ibm.com> Reply-To: paulmck@linux.ibm.com References: <241506096.21688.1565977319832.JavaMail.zimbra@efficios.com> <20190816205740.GF10481@google.com> <3c0cb8a2-eba2-7bea-8523-b948253a6804@arm.com> <20190817045217.GZ28441@linux.ibm.com> <20190820140116.GT2332@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190820140116.GT2332@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-20_09:,, 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=978 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908200183 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 20, 2019 at 04:01:16PM +0200, Peter Zijlstra wrote: > 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 :/ The reason that they want it is to enable some significant optimizations in numerical code on the one hand and in heavily templated C++ code on the other. Neither of which has much bearing on kernel code. Interested in coming to the next C standards committee meeting in October to help me push for this? ;-) Thanx, Paul