Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6281091ybv; Tue, 18 Feb 2020 13:38:26 -0800 (PST) X-Google-Smtp-Source: APXvYqw+ZfXeUK8awxjmfzZA9wj+OEsJz7hd87hFuuHIktSFzpia8qp5i7rK9cbdkhsMKCwE7v6A X-Received: by 2002:a9d:600e:: with SMTP id h14mr16607318otj.113.1582061906815; Tue, 18 Feb 2020 13:38:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582061906; cv=none; d=google.com; s=arc-20160816; b=vpu04CLa7j6wBOj73qN3jNPA/Alwudyl6J3X+XRBZ2LSIDLnz70TIErVtMf689N27M tXzYSkYrMYEZephsUrAS4oK4MWxH4gUWRQzrWOrOD48TXSgBFQ4eFDvT7duk715s62a8 lGvl/uGrEpxbjCVK8h8PfDreTQhhkgW6VReFijDPAdLSQd1MvbScX5AV4M3hVvsEm/RR w0eVS82LC9GwEZyIebwV6het9z62pOlB7AKRMzqIZTsHipn3Lk+Oxa5t/O/u+V2W0Zqy AFCqWDjeNm4P3dHUhfg2Wt5cOG1CtgikDaVC0uRPUcoLjII6lY5GzurZYWG55LkfB4ze b2OA== 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:dkim-signature; bh=HEtO/gCznSSmVZFBPSOXVDto92WFgPQAAn5bTSEbL7o=; b=GD+gl7DzWikaeW89/5PF0UDtWL35pdn+JPNIwiIfYa5QEvycSNT3NPYlXXOX5AMAS2 oKpwH2plsDseiWvek2LSqqxW/Szh8YG0npaSCJiRv3xa1YE7fnPvuC06r6ysfQS+wOkv ZQMfWzgDakPivNlMC6w9BFOyERUJBVQ2YFJB3c78Bbj8Gaa51McdDmCoMG1Fw7DozyTW EuRr89ZwyfUOy2c1aId541ELF1NynahBTJIy0msyeNYXeTWsH40GSAyhyv1TkEjvlGRG u0WC4DLNLNRGupIKhufQ1C1hKuExqnFIY2TRRSLnStKFCoJ3PnYg6ozQSss0ECnmQoiO A2KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QdbVkXgG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k2si8031845oij.97.2020.02.18.13.38.14; Tue, 18 Feb 2020 13:38:26 -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=pass header.i=@kernel.org header.s=default header.b=QdbVkXgG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727815AbgBRViH (ORCPT + 99 others); Tue, 18 Feb 2020 16:38:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:47508 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726595AbgBRViH (ORCPT ); Tue, 18 Feb 2020 16:38:07 -0500 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 85DEA2064C; Tue, 18 Feb 2020 21:38:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582061886; bh=cFPbsFR53RUWHQPCLM3SZK35Bd2a7dVFy68AbGuywR4=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=QdbVkXgGmL7swR6YJ6CW3sEIQJyGMdBBbh1+XMIgg3cZd3AloTWEkyCjDbzC3U37U w2QkJSdXm73SE1wHYTOSpqVq2GXhdJGhIZtssOS9d3z6+GStAkDHsox9thm0Hplm2a 30cH4spXPxYQCXTRNTdM3vMIUSf80wb7dgWd8byY= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 53C393520856; Tue, 18 Feb 2020 13:38:06 -0800 (PST) Date: Tue, 18 Feb 2020 13:38:06 -0800 From: "Paul E. McKenney" To: Peter Zijlstra Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, mingo@kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel@joelfernandes.org Subject: Re: [PATCH tip/core/rcu 4/4] srcu: Add READ_ONCE() to srcu_struct ->srcu_gp_seq load Message-ID: <20200218213806.GK2935@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200215002907.GA15895@paulmck-ThinkPad-P72> <20200215002932.15976-4-paulmck@kernel.org> <20200217124507.GT14914@hirez.programming.kicks-ass.net> <20200217183220.GS2935@paulmck-ThinkPad-P72> <20200218114334.GX14914@hirez.programming.kicks-ass.net> <20200218163405.GF2935@paulmck-ThinkPad-P72> <20200218202644.GG11457@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200218202644.GG11457@worktop.programming.kicks-ass.net> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 18, 2020 at 09:26:44PM +0100, Peter Zijlstra wrote: > On Tue, Feb 18, 2020 at 08:34:05AM -0800, Paul E. McKenney wrote: > > On Tue, Feb 18, 2020 at 12:43:34PM +0100, Peter Zijlstra wrote: > > > > Well, I didn't get further than the Changelog fails to describe an > > > actual problem and it looks like compare-against-a-constant. > > > > > > (worse, it masks off everything but the 2 lowest bits, so even if there > > > was a problem with load-tearing, it still wouldn't matter) > > > > There is still the possibility of load fusing. > > Agreed; that can be an issue. But if so, that then needs to be stated. > > > And the possibility > > of defending against possible future changes as well as the current > > snapshot of the code base. > > Sure; and like I said, if you want to use READ_ONCE() I'm not going to > argue. > > > > I'm not going to argue with you if you want to use READ_ONCE() vs > > > data_race() and a comment to denote false-positive KCSAN warnings, but I > > > do feel somewhat strongly that the Changelog should describe the actual > > > problem -- if there is one -- or just flat out state that this is to > > > make KCSAN shut up but the code is fine. > > > > The problem is that "the code is fine" is highly subjective and varies > > over time. :-/ > > > > But in this case there was a real problem, just that I got confused > > when analyzing. > > Shit happens :-) > > > > That is; every KCSAN report should be analysed, right? All I'm asking is > > > for that analysis to end up in the Changelog. > > > > Before responding further, I have to ask... > > > > Are you intending your "every KCSAN report should be analyzed" to apply > > globally or just when someone creates a patch based on such a report? > > Ideally every KCSAN report, but that is a longer term effort. But > specifically, when someone has written a patch, I expect that same > someone to have analysed the code. Then it also makes sense to put that > in the Changelog. > > > In any case, you have acked this patch's successor (thank you very > > much!), so on this specific patch (or more accurately, its successor) > > I presume that we are all good. > > We are. That new patch describes a clear problem and fixes it. > > Anyway, the reaoson I'm being difficuly is partly because on the one > hand I'm just an annoying pendant at times, but also because I've seen > a bunch of, let's say, hasty, KCSAN patches. Agreed. I briefly considered putting KCSAN for RCU on the newbie list, but looking at a few of them put paid to that idea. Responding to them properly does require a reasonably deep understanding of the code. Thanx, Paul