Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6228987ybv; Tue, 18 Feb 2020 12:28:21 -0800 (PST) X-Google-Smtp-Source: APXvYqyP+i8T/B7ruHHdyerU7cckB7aZPL4A87rfE+mfiNPia6FG2/JoE+PdBehxlFAqvJeljK9p X-Received: by 2002:aca:4309:: with SMTP id q9mr2533440oia.158.1582057701607; Tue, 18 Feb 2020 12:28:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582057701; cv=none; d=google.com; s=arc-20160816; b=bwSD4DlLj3E9DW0stVTOeUxMmhTo/eV5il9N+yXdUSodaU+teEA7L44YXBaViFOpDr IDiL78UZQk5bRHmy/3wQGMuEVsXKDJ5LW7YSlXm5SejCx7FxVvyRcKNqYofC75Gv5J8g OP72sg3BrXFZTbTEuQ67MFtrJ3Tn1pcJipIwWTkVK76lf5Csa0iIWVvTvXxcxh4GBNUw fNSq0FpXn6V0xo8cg4kFypaaGeS92imUxFN94ngw/M6yYcxfWKwd5buieZvGnw7Ec2FU x4WK6hJeICfIfjhCdQFGSOc2SygnOoylUArSSzTt520BHxTS4FpQggPbyuuAFX7rSd1D qWog== 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=MsmkZg6wZrEhezy9R5YbQTUgrdTDhzPB+OkYnO5Pl0U=; b=n4tU6Re4m4LvCUmqda4EBowvuRhSYKeRJbkW+lXNA83pnMLY7TCSN26Uuv4snC9OlN PFcUWwj7go1aBe8/RJ3P3dwUeIuDX6mbFN5bCOt46IhxUEsRRJz+jpNxvO3gFhT1rkOx pvAA2Or6uRgQ/DzOxX5N+iQPKMpdTJ8bdZdFNmQwlqoaW1lkVKazWRwI43DdjBC9l9+R RJSfU0NfFqulwigUARoPwwMiwPR2H83u0yvC6yNbGNpgP8js9nPZXIb8UYyMrMI5nhLs dCKobBkF6Ki5qmabflOk2/Moffs1IDz1btGC02OslelfCBEh7LX2Lh3rZurF6MzaCNWN IhAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Oen+0qmN; 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 f190si8864654oig.229.2020.02.18.12.28.08; Tue, 18 Feb 2020 12:28: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=bombadil.20170209 header.b=Oen+0qmN; 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 S1726663AbgBRU1G (ORCPT + 99 others); Tue, 18 Feb 2020 15:27:06 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:40076 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726539AbgBRU1F (ORCPT ); Tue, 18 Feb 2020 15:27:05 -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; bh=MsmkZg6wZrEhezy9R5YbQTUgrdTDhzPB+OkYnO5Pl0U=; b=Oen+0qmNRjfXIHYz20JeeFGcoE QEkZxoj1f8cyZZrwUcdG+/PN62xbB41Ig8cC4hmVseF2UTRP6/MwtB5RjknENoDaVceDgK5dGOhUX 704AD+q+nLumZg0j5/aE3dqIYNE/It3a4G/NhNwCDBj5EqCxTnyS+imld0ZwuUSmV9LrNvbxfnv52 DI4nKSzCxOVDC9+1xH3kWbx2ZvvUM9jP8rm2qDL4yr/S08OSAbypMRojEuzG57MXl/upMFsyiiP/0 PA/WFbjCMGcTdBSgWV0saNu+kZMEr/qIUdvpZGB0q/jvEjQmxmbyHIut7K0tj/g8GYGVEjeoiEyy2 m2EXOsNw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1j49SB-0004D6-3O; Tue, 18 Feb 2020 20:26:47 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 0F2E4980E56; Tue, 18 Feb 2020 21:26:45 +0100 (CET) Date: Tue, 18 Feb 2020 21:26:44 +0100 From: Peter Zijlstra To: "Paul E. McKenney" 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: <20200218202644.GG11457@worktop.programming.kicks-ass.net> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200218163405.GF2935@paulmck-ThinkPad-P72> 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 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.