Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5449113ybx; Sun, 10 Nov 2019 13:35:23 -0800 (PST) X-Google-Smtp-Source: APXvYqw6NjAX29QUA8QeEet815sekMYqnhD1cRgqVKNZETC8kNik/GU/V5BtUJP4P7OA2PFgw95S X-Received: by 2002:aa7:c518:: with SMTP id o24mr22251119edq.110.1573421723178; Sun, 10 Nov 2019 13:35:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573421723; cv=none; d=google.com; s=arc-20160816; b=rKYKkLUo4CJo0/uAFBZo+GL0GEFo0zZHvZPM0ivboT8t2ZUSa+QtgYZTOKALr/OdNt Xekc+zK4adkWhhlI7C4KjO9EX4YyHwLINGh69x3M77qkWCtffeaNY+DeAZ91WbmCHR0l yy1ifjlTO0G7Bu69Ey8Sebss5egWPJP+Grz/4r4cwQQq+ulN+uTPBe14JzlG32czcQl5 5j/JqTFHAren2ZIw94Z0RaD/NZR34BS23pdZLPnMxS+RHJwr7oTf4E6LWlvRCXPE6ejY CEgI0sjNM9auLtEFrr4V6FvCpbC8Cspr4XK48btx9Yi0h6+paajnIHrzIEZU/p7eJxTX nklg== 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=cq3ZeYKVdJWOuYcW5EKBWYTI0P85Th4R/8845XW5Jao=; b=fUZhaZgf2U4u9MmnvEeQrgEWZe/kIifs2sqpCVEilLLdRg+L8YSjspZ6CJEa3B2wPP gHt/HcZVn57T4E7MdkOCwUrg9j0dqaAJ3ZrpyPpSGMHkNfV4uJ5ipUaEyB2W5FBOCkzT Jomer1Zb+3MvD+bKT0cEIxgysmqsiVYXSlAwo0WTgB8mEsZ6crMTB53bHezj8LEGdcyl JAeGEyc3nEcstL8rj84ST7TmL3klsBIhG3+SHf/ATNKwBNGmw4qhpbGNWgGtrrl0qSHk 6OOQ5Mg4v0DS/3UerT7n7t/pl63jHWTAf4VopTyh1P0lsqeGld1mygT7y1H/WmWbb76S zaIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DooNjrT6; 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 k24si8135990ejv.111.2019.11.10.13.35.00; Sun, 10 Nov 2019 13:35:23 -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=DooNjrT6; 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 S1727176AbfKJVbk (ORCPT + 99 others); Sun, 10 Nov 2019 16:31:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:49606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727124AbfKJVbj (ORCPT ); Sun, 10 Nov 2019 16:31:39 -0500 Received: from paulmck-ThinkPad-P72.home (unknown [65.158.186.218]) (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 D6BB92077C; Sun, 10 Nov 2019 21:31:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573421498; bh=Q68vMzI6w6dZmtgy63CNXyLK03/E3+1LL6PTxO1oyPY=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=DooNjrT6nGFATrUQyrrZzUbjXlXoR2dAsPi0CDtCcMv9hmAh4xZvseurxrv/sdliE b/hBhAPUIhVRJNNBqIlebSxG/szTkXZ92+k09V5Ook1/DEf+t5W3vYH4Aod3+MDGSP EIG9pVgjW8NJcMgpzmaGsYJzDjuXQR6vUgb7pq3g= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id A209535227E6; Sun, 10 Nov 2019 13:31:38 -0800 (PST) Date: Sun, 10 Nov 2019 13:31:38 -0800 From: "Paul E. McKenney" To: Linus Torvalds Cc: Alan Stern , Marco Elver , Eric Dumazet , Eric Dumazet , syzbot , linux-fsdevel , Linux Kernel Mailing List , syzkaller-bugs , Al Viro , Andrea Parri , LKMM Maintainers -- Akira Yokosawa Subject: Re: KCSAN: data-race in __alloc_file / __alloc_file Message-ID: <20191110213138.GH2865@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20191110204442.GA2865@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Sun, Nov 10, 2019 at 01:10:39PM -0800, Linus Torvalds wrote: > On Sun, Nov 10, 2019 at 12:44 PM Paul E. McKenney wrote: > > > > But will "one size fits all" be practical and useful? > > Oh, I do agree that if KCSAN has some mode where it says "I'll ignore > repeated writes with the same value" (or whatever), it could/should > likely be behind some flag. > > I don't think it should be a subsystem flag, though. More of a "I'm > willing to actually analyze and ignore false positives" flag. Because > I don't think it's so much about the code, as it is about the person > who looks at the results. > > For example, we're already getting push-back from people on some of > the KCSAN-inspired patches. If we have people sending patches to add > READ_ONCE/WRITE_ONCE to random places to shut up KCSAN reports, I > don't think that's good. > > But if we have people who _work_ on memory ordering issues etc, and > want to see a strict mode, knowing there are false positives and able > to handle them, that's a completely different thing.. > > No? Understood on the pushback! And I especially agree that it is bad to automatically add *_ONCE() just to shut up KCSAN. For one thing, doing that inconveniences people later on who might want to take a closer look. As long as I can get the full-up reports for RCU. And as long as the others who want the full-up reports can also get them. ;-) And agreed, if the results are adjusted based on who is processing them, that should be good. Thanx, Paul