Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp470476lqr; Wed, 5 Jun 2024 11:06:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0n5z5RkMX77QWWI9S6uAj2DV0jxS9bbDusCdRK03pzZ7egZcJvzYs+vTxxYxf0SJHFlaIXaWfLesN4ZQaQkWEDKul7v0arQELpGiNxw== X-Google-Smtp-Source: AGHT+IGQEfCp8LlO+eOPnlaMfLxccY0LwTbVzbOZqL4Gj7iqMoIYgHjTA980HqohPy86QCmFISSJ X-Received: by 2002:a05:6a00:2d29:b0:702:2f9d:ee84 with SMTP id d2e1a72fcca58-703e5a24a35mr3686228b3a.25.1717610767827; Wed, 05 Jun 2024 11:06:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717610767; cv=pass; d=google.com; s=arc-20160816; b=BqiahCqgufzC96Kh5JLAyMZm1tTsH/8DohtD8GwgdAT0CLQDXdkus5/ZsvikyhMFB4 TFxz1cAhvoypzII5DfMInNVi6Plaoe2crALFmPjV6sI3EPU9ejtJvkugwvxxh0FFbs0O a711tSDsneP6PcTCjF9s4RLoQ5oXIWobI0wAYpRvwa4ZtPOGNiPOosLdYMobxSn9MrHT Tbmd0te6Da6Ty4H9Q1cpkhYRYMVxDwvyw0vyeka4LUQED/FidCNTHUecvXZijOG5YNAb cycqo52OC6zh0itgr9Gjzcc0b1OeT1kVJMtPuo/IFywOfgAaviqQcARX7YZ4+HqCc1bj nbMw== 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=S09zsoj91hPzJak+yWLt37kMUWW9ePRNfyV6JMTP71Y=; fh=PqPi9tLX1KivBGeXAeM9kLs9V5BaS2dc5e/o+f6JZoE=; b=Uf+8mupk6LPSHMuuaHN+ViX28S2jVEb4xq7quqWi3J/6qwwYssWFyGiIHWJUVypzaE UcjCgR8bMC03I0alVZ7RbUhFk959Go8awNXl779JVEM7HF4vedDdRrXuwGS3WXtzrcKg 7XiA7AC+jjElFIxFrVI4q8tnyZJDR4P29kkohPiQgvmv9+qSP7s/jbAOmmthOKvWMYzU NMU5dawK7vSZKwjuB2aW3s/4Q6wSYLi4DKJ0zMK1EcwfgsIqxL5OP0SmXngb7bzFOulg O8LFxfZtmkD5NS0IYFEPzfgVUDo7VWN2oeL3zdpyAKkQr7Ky/TbEbezs9xWTlxjBkRPk eOFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X5oLqyFs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202997-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3542e394bsi10356486a12.95.2024.06.05.11.06.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 11:06:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X5oLqyFs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202997-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 55564B25E8C for ; Wed, 5 Jun 2024 17:57:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD72A195383; Wed, 5 Jun 2024 17:57:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X5oLqyFs" 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 EE3AD194AE7; Wed, 5 Jun 2024 17:57:41 +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=1717610262; cv=none; b=LzvKBj2RTJZon7SOpJ5J2UGBJEua8EFRmXHPo4m3U64PbSIo6/3d6Lp3eH8q6/C1dardRC908jqm4aGpJ3/G7YfT85OAsA7MR3BkKvBpxbD6yQ0q1PBDphtCJir7NfizCjw2Q1jVdqT27hdyXs1Vt7RgNWhZWbAbKFvqXiHC8UA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610262; c=relaxed/simple; bh=5qgE9HCIK6VgCwwxB3oLRE7JHeNCeqE3R3gGXoTgU70=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VgzNtFNlRWKyYJkIIQJNVsA9HdH+SGiU54XGZ3fSLGEPpyT7fzIyAuoaQCwNYzpVPRIf1rjgaxHGSMXdk3vEAw+jO0+17EO+F6DUR/7Zhots5GsS5wdzh9lPHSYIj//dUHa5aBpWpZ/yfje5Rbyj78ECVyi+LFhPfzoPMMHrJBs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X5oLqyFs; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9CBAC3277B; Wed, 5 Jun 2024 17:57:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717610261; bh=5qgE9HCIK6VgCwwxB3oLRE7JHeNCeqE3R3gGXoTgU70=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=X5oLqyFs/fUOIspiZa3AO98Uwy+/LGpCKo+rDKsLfLHNrxARh48ud5ztVtVxD0ym2 2LCsSXPumsnEB6KW2dKvdf4MmtBnuwrQkMavym3dbw/3paACPdyIyYIOifBj+M6VCl Vl15J6irXr+pCIc4KqQ6+4E0ujTUghH96mPVe7QMqmrBYasli5yR+Wop6r9NKJoJeM bgzLMne+IwX/BhmYxq+Y+585w2jiTCLZ5+O7wOYGo73DOvBgke/a/mo0eeGkb4TPHT LImvMIp7R1Hxghw2kA1sJyQWUFGnUDJ9S04k1XXAHt6t6cpyT/rYUaPqlwPxZEhkiI Fsl6WwRIU3j4Q== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 794F0CE0A72; Wed, 5 Jun 2024 10:57:41 -0700 (PDT) Date: Wed, 5 Jun 2024 10:57:41 -0700 From: "Paul E. McKenney" To: Marco Elver Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, kernel-team@meta.com, mingo@kernel.org, stern@rowland.harvard.edu, parri.andrea@gmail.com, will@kernel.org, peterz@infradead.org, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, akiyks@gmail.com, Daniel Lustig , Joel Fernandes Subject: Re: [PATCH memory-model 3/3] tools/memory-model: Add KCSAN LF mentorship session citation Message-ID: <62cbaceb-1f65-4569-a54f-4c4bffed746f@paulmck-laptop> Reply-To: paulmck@kernel.org References: <20240604221419.2370127-3-paulmck@kernel.org> 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: On Wed, Jun 05, 2024 at 09:52:38AM +0200, Marco Elver wrote: > On Wed, 5 Jun 2024 at 00:14, Paul E. McKenney wrote: > > > > Add a citation to Marco's LF mentorship session presentation entitled > > "The Kernel Concurrency Sanitizer" > > > > [ paulmck: Apply Marco Elver feedback. ] > > > > Reported-by: Marco Elver > > Signed-off-by: Paul E. McKenney > > Acked-by: Marco Elver > > Thanks for adding. I will apply your ack on my next rebase, thank you! Thanx, Paul > > Cc: Alan Stern > > Cc: Andrea Parri > > Cc: Will Deacon > > Cc: Peter Zijlstra > > Cc: Boqun Feng > > Cc: Nicholas Piggin > > Cc: David Howells > > Cc: Jade Alglave > > Cc: Luc Maranget > > Cc: Akira Yokosawa > > Cc: Daniel Lustig > > Cc: Joel Fernandes > > Cc: > > --- > > tools/memory-model/Documentation/access-marking.txt | 10 +++++++--- > > 1 file changed, 7 insertions(+), 3 deletions(-) > > > > diff --git a/tools/memory-model/Documentation/access-marking.txt b/tools/memory-model/Documentation/access-marking.txt > > index 65778222183e3..f531b0837356b 100644 > > --- a/tools/memory-model/Documentation/access-marking.txt > > +++ b/tools/memory-model/Documentation/access-marking.txt > > @@ -6,7 +6,8 @@ normal accesses to shared memory, that is "normal" as in accesses that do > > not use read-modify-write atomic operations. It also describes how to > > document these accesses, both with comments and with special assertions > > processed by the Kernel Concurrency Sanitizer (KCSAN). This discussion > > -builds on an earlier LWN article [1]. > > +builds on an earlier LWN article [1] and Linux Foundation mentorship > > +session [2]. > > > > > > ACCESS-MARKING OPTIONS > > @@ -31,7 +32,7 @@ example: > > WRITE_ONCE(a, b + data_race(c + d) + READ_ONCE(e)); > > > > Neither plain C-language accesses nor data_race() (#1 and #2 above) place > > -any sort of constraint on the compiler's choice of optimizations [2]. > > +any sort of constraint on the compiler's choice of optimizations [3]. > > In contrast, READ_ONCE() and WRITE_ONCE() (#3 and #4 above) restrict the > > compiler's use of code-motion and common-subexpression optimizations. > > Therefore, if a given access is involved in an intentional data race, > > @@ -594,5 +595,8 @@ REFERENCES > > [1] "Concurrency bugs should fear the big bad data-race detector (part 2)" > > https://lwn.net/Articles/816854/ > > > > -[2] "Who's afraid of a big bad optimizing compiler?" > > +[2] "The Kernel Concurrency Sanitizer" > > + https://www.linuxfoundation.org/webinars/the-kernel-concurrency-sanitizer > > + > > +[3] "Who's afraid of a big bad optimizing compiler?" > > https://lwn.net/Articles/793253/ > > -- > > 2.40.1 > >