Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4716426ybf; Wed, 4 Mar 2020 09:15:40 -0800 (PST) X-Google-Smtp-Source: ADFU+vvK/IwDJoakKlsKYuz88JXscBdQhwEki2Nj0miOxGVI0bFKnCM+aCH1b8ODQjRLQo5Pt1KL X-Received: by 2002:a9d:7c81:: with SMTP id q1mr3102797otn.112.1583342140443; Wed, 04 Mar 2020 09:15:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583342140; cv=none; d=google.com; s=arc-20160816; b=US4oeUv7Nij9P+qbHxuwSjYsJx1qdABd7RNUWjaQofH92Bx1mCfqBE6J2uMLwNHKvi W0sr3YN3cPkLmvJsbeKCnKIZ+V1ZHGNBHReEMm5kxyYO6OEYcCwwssYVhHsL4COP3Xwc W1WZmHRyY7oa0mXGJmTK7MoWWeFUt4UwxtPhILX/uReu8zdLOvIor9UEzO2EIaAH60W1 HOcLVyo+mbk0kfj8fHC1Ovq5QswEp6Cdg7ipwNosWKnGrVb2BSGaWKhGjlkCl0WywrNP olGp+7wPezAEQ5WD1LhdL/7BAXTUAg6r0SmRwJ1MsYNciTV50yRp7259OkXqY8O4Xg1a 4kCA== 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-transfer-encoding:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=+/z7WoiAK/7hHS/pzzVx/1fhYZB9RQtcthuBdf+4QIo=; b=KnWsWOOCRmWbpUTA86pTy6FbRqLMkTDMx8kaZMd70QOEMrsQflqkZ39mqRrfSr/SJv EY9lVOiUpLhqUPcS1+VMU/KGwlfjTjfXpfeSpq948AxP1EUcvdScbVe+PMeMb8RY35BV dTqmKjBcN4Gd3K6BkvwP8aZkT/JZKmghig/XFs5e9T5nXipcol08zjaTBJfXM2na5DFr 5ayraGiDnNXIhjJv+js0FB8L6oU3Mm4gk6luEV9YvtO10SPijTjtSisyOUDH9kIK/me7 P4Nm74IGfZUuzGQPI7m6QzYIGbFh42fRVRdTvE25SmjGwrPnn2Pq85qb/wkhhG2DJwjm O6Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FYOjqES9; 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 i6si1786885otj.24.2020.03.04.09.15.29; Wed, 04 Mar 2020 09:15:40 -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=FYOjqES9; 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 S1729766AbgCDROm (ORCPT + 99 others); Wed, 4 Mar 2020 12:14:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:44026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727709AbgCDROm (ORCPT ); Wed, 4 Mar 2020 12:14:42 -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 8071E21775; Wed, 4 Mar 2020 17:14:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583342081; bh=xT1sEwZjPK8JKf0tY/gJOxvv0KwpERViNrL1nxk5oa8=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=FYOjqES9z3Ri/3gvgS805sO+LvHMa/0HSUDyXXfGBNDIbra/4sXJk9BgAWRJM0ODX 33Zt7g7aQzc1E7i92GGbB6qwtwHxtvxLO7pttvIQ+XSdQubPwmqShVE3ik6aaF+S0a x5EvHmnJzUEOoQ8IJLT//zw2Ju0OonsYN9FTb4qQ= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 495A03522731; Wed, 4 Mar 2020 09:14:41 -0800 (PST) Date: Wed, 4 Mar 2020 09:14:41 -0800 From: "Paul E. McKenney" To: Qian Cai Cc: Marco Elver , Matthew Wilcox , LKML Subject: Re: [PATCH -next] lib: disable KCSAN for XArray Message-ID: <20200304171441.GA2935@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200304031551.1326-1-cai@lca.pw> <20200304033329.GZ29971@bombadil.infradead.org> <20200304040515.GX2935@paulmck-ThinkPad-P72> <20200304043356.GC29971@bombadil.infradead.org> <20200304141021.GY2935@paulmck-ThinkPad-P72> <1583341858.7365.155.camel@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1583341858.7365.155.camel@lca.pw> 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 Wed, Mar 04, 2020 at 12:10:58PM -0500, Qian Cai wrote: > On Wed, 2020-03-04 at 17:40 +0100, Marco Elver wrote: > > On Wed, 4 Mar 2020 at 15:10, Paul E. McKenney wrote: > > > > > > On Tue, Mar 03, 2020 at 08:33:56PM -0800, Matthew Wilcox wrote: > > > > On Tue, Mar 03, 2020 at 08:05:15PM -0800, Paul E. McKenney wrote: > > > > > On Tue, Mar 03, 2020 at 07:33:29PM -0800, Matthew Wilcox wrote: > > > > > > On Tue, Mar 03, 2020 at 10:15:51PM -0500, Qian Cai wrote: > > > > > > > Functions like xas_find_marked(), xas_set_mark(), and xas_clear_mark() > > > > > > > could happen concurrently result in data races, but those operate only > > > > > > > on a single bit that are pretty much harmless. For example, > > > > I currently do not see those as justification to blacklist the whole > > file. Wouldn't __no_kcsan be better? That is, in case there is no > > other solution that emerges from the remainder of the discussion here. > > I suppose it is up to Matthew. Currently, I can see there are several functions > may need __no_kcsan, > > xa_get_mark(), xas_find_marked(), xas_find_chunk() etc. > > My worry was that there could be many of those functions operating on marks > (which is a single-bit) in xarray that could end up needing the same treatment. > > So far, my testing is thin on filesystem side where xarray is pretty much used > for page caches, so the reports I got from KCSAN runs does not necessary tell > the whole story. Once I updated my KCSAN runs to include things like xfstests, > it could add quite a few churns later if we decided to go with?the __no_kcsan > route. Agreed, the filesystems developers and maintainers will decide how they would like to approach this. Thanx, Paul