Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp527170lqo; Fri, 10 May 2024 07:11:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlzVZNQg4X/T4oAuhskK1CHY5lcdca9T+6x9840hZ1ztvWleaym1CzGADoIhSKgIM3zhmuihgifK7MzEtKtbas2YzDBLrd1Foz3haG6w== X-Google-Smtp-Source: AGHT+IFaKBq7iMOvG0qcPvXjG8J6GwoRpr/j5ANlfDjJtw88YlOSOhAi2HbFOUXNQg2Xk+VK76Vr X-Received: by 2002:a05:6870:e98b:b0:23d:6440:fd7d with SMTP id 586e51a60fabf-24172a5807fmr3019174fac.19.1715350291946; Fri, 10 May 2024 07:11:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715350291; cv=pass; d=google.com; s=arc-20160816; b=kZ8vxp8FVLyTSrX5k9RLNwgrabVPfrIMLZ59cq+vh1VijjaxBg0RD6i/Oqn0vDgGqq HnDUqx15HMN7gmKFz8ILfAhMUzhZqg9F9OaSch+b5nRbarKlCyBTIv+EZAwRWsb8QxD6 8A1Mm1t5QQUs46TzwCD5l+perZSP89Pyj98TYrmqutKIXkFyMZ8nxgNP+o224ay8ga22 vcJi2UC4H91ES/MjZJBtUWIJjMrNf/4JkbBf1aG/3B+s0EekFGVWUKeHQL9t6sbBpzJN 7tY2M8LUPEiLAUCTbD0t/PMGeS4aVOcB6n0yVSs5plEPexfUnjjCsRccSIoeFsUE75O1 GbuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=z38a7YSfYw8hjRfbMJTQ5WnkgSh/iLVui59RuhaYemQ=; fh=ta/AWrqpBnkTjfn7SHqgQbWj9PGTpah1H21k6ji8tSU=; b=CnqxtLaE2+TF1reNAKF+CMY4c3Hrg0Ntpkq/fi/f2IVx2ZHd+Ztdih+jE0/SDdQhRR y0LKarCJikGz8wVQ+D+xL9MBUu9o8RkjD+mP/irHb5T1JkO9i/URGWwLO6YKn2rWyJfM FIcsylEX0gCbrFW+u1GtvcagsioWZtFvv6ka7+S8DqYzf7z6I00HeDv8etYbfJhEJMKr DOgg/aTX2TnhQGkUmrzU4cO/SBue2BmjX8W6OZoaLjEm82kMzvO9Bx6Muhu5QLSjZ9rh LH0aJc8jGLKLquJO/MwimhTGyuIsHaFMKooDYxDjM17G42g9ypkej4abIFO7aGCCTEFL FRQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TkcHxrTT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175868-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175868-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 46e09a7af769-6f0e0244478si1433369a34.333.2024.05.10.07.11.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 07:11:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175868-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TkcHxrTT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175868-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175868-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 99F632810DB for ; Fri, 10 May 2024 14:11:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6909412FB31; Fri, 10 May 2024 14:11:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TkcHxrTT" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 795A612D1F9; Fri, 10 May 2024 14:11:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715350266; cv=none; b=auBHmpRdln4w6BjH1uXu600ww4laRDDaqAlE4+5EtIgS270m3RiOIcz0qFOvQOd5oaOb/m1m3D6/ZPWAkvizFW5D/FlTIL1EV4gU0PFamnROaD6AE3gvURo9jDjX32tIBefilmMu+vzUZlaVeouWqXzEF5QgW+vkrUnMIdF5GWU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715350266; c=relaxed/simple; bh=wjUxPSTMW89KBClswX64bM+rAjzGGEFKiWOsJ850sZg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hz0L3qvVsl/3RxlBpnmhkTKZ4bIyRWwd/15PDpXMkZOfkZrNOgNkXahqKhg1pO59V6JjmpvUvJGEbRbEdJMTtSqglOVZkOgmonkqyKtKdiyblgHg6g9G5crIWZdByZCJH5tTd3LX1S5oj3vEP0RoA0qzTZYf+Im97O/IiUENq4E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TkcHxrTT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9506C113CC; Fri, 10 May 2024 14:11:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715350266; bh=wjUxPSTMW89KBClswX64bM+rAjzGGEFKiWOsJ850sZg=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=TkcHxrTTHfnOnE0M4aFK5HDY8QY5FicBJftqHLd+AWdFnP4yymUYgfYrG1OA5DAzh 09Z8zJQr1FBd0uYnULg3WakTx2a/ft+fAWvFnAX+O8JFyuvnhppKRD1YlZVNsklZNt t6Tao9G6QUpwqCjoIBfZmidnC5XUysalSzed9jopbMjLEJMaDpRmrOdNiAmsDWULnE FWu7XCFpwQTTXm6HjKVa2FBzBH2lfmJWhBX8LEMPAnE6BcdHaZBbO6cstPu6BSWL55 ch3XkOi5sUkwZeKqtw/4KHMiy22Lq6k3Vz7iKsz34C9VMMoS1IRYkkgZf+bbe30DN7 /VGjlk7H8AVXg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 826ADCE08A1; Fri, 10 May 2024 07:11:05 -0700 (PDT) Date: Fri, 10 May 2024 07:11:05 -0700 From: "Paul E. McKenney" To: Oleg Nesterov Cc: "Uladzislau Rezki (Sony)" , RCU , Neeraj upadhyay , Boqun Feng , Hillf Danton , Joel Fernandes , LKML , Oleksiy Avramchenko , Frederic Weisbecker , Peter Zijlstra Subject: Re: [PATCH 25/48] rcu: Mark writes to rcu_sync ->gp_count field Message-ID: <474ae55c-fe9e-4668-8f9b-23f819c76d10@paulmck-laptop> Reply-To: paulmck@kernel.org References: <20240507093530.3043-1-urezki@gmail.com> <20240507093530.3043-26-urezki@gmail.com> <4c9e89b5-c981-4809-8bc2-247563ce04e9@paulmck-laptop> <20240510131849.GB24764@redhat.com> <20240510135057.GC24764@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240510135057.GC24764@redhat.com> On Fri, May 10, 2024 at 03:50:57PM +0200, Oleg Nesterov wrote: > On 05/10, Oleg Nesterov wrote: > > > > On 05/07, Paul E. McKenney wrote: > > > > > > By the stricter data-race rules used in RCU code [1], > > ... > > > [1] https://docs.google.com/document/d/1FwZaXSg3A55ivVoWffA9iMuhJ3_Gmj_E494dLYjjyLQ/edit?usp=sharing > > > > I am getting more and more confused... > > > > Does this mean that KCSAN/etc treats the files in kernel/rcu/ > > differently than the "Rest of Kernel"? Or what? > > > > And how is it enforced? > > I can only find the strnstr(buf, "rcu") checks in skip_report(), > but they only cover the KCSAN_REPORT_VALUE_CHANGE_ONLY case... Huh, new one on me! When I run KCSAN, I set CONFIG_KCSAN_STRICT=y, which implies CONFIG_KCSAN_REPORT_VALUE_CHANGE_ONLY=n, which should prevent skip_report() from even being invoked. Which suggests that in the rest of the kernel, including "rcu_" in your function name gets you stricter KCSAN checking. ;-) Thanx, Paul