Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3099655rwe; Mon, 29 Aug 2022 05:58:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Hz+YjXgbB6y9+ALffoXtbhvnaQLVp6wwPzUGbwbUqJxr9Nj6fsls+xpRobtsRytPlEuAM X-Received: by 2002:a17:907:60c7:b0:731:4b42:4e3e with SMTP id hv7-20020a17090760c700b007314b424e3emr13546455ejc.236.1661777912504; Mon, 29 Aug 2022 05:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661777912; cv=none; d=google.com; s=arc-20160816; b=uemkn5/EvQQ1qnCDTaqueSSNjB9EUIdEdNcqCK0bzpB2bJTNQQKdJ2/crEP601ERcX faow3bfYVX6Z8wbNPvI5jCJ4Hfcxf2X7BqTDl0mTZWD9MHuk7lPxPTX3IVo6QUo2wbyN 7hviPdztfD/e3vnbyz2w7D1TmgBbKATT8KVQehR9cm7MS6O1Im4h2K8xF62P/mwTEghh lsKWEnsp6rrSOGcu4gI+vRxYcf5uCw5Wiql0uM7G205v7hUZXroLM3gp6AvHigxYd5Mw BMkvcnHWG7lXg51MiVSmA3daSTxbNirPgdLEUFjYZFq0LV0JsOpnpa2Qb04xZ50XPM3D pp8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=0qdGgO2rOOiEsdPc5g+6lBtBnMXsNRWaXIW3GkCtu00=; b=NmT4zhAL8OBuMlsGNZwP4yez+ti9uVOOXO3WsTemcbMQS325UEt22hXT8Kvipo7LSL fXYY47Z9L1fgJVqpYZwNP4DFj8NWCYD803jIEOCLeTcVVopAVioaENVYvhM+XfuwrIyr Kd7twKmIB82FaedCEYJdM2Z2JAIrxOcmuTvwuP807tAA1LuQ5dW9rcj5RgwoDG8vTw3t zz2E0DoFCL3/RqORVeKnEg6Ym0urPs+5M9R5SifRsGm8YDSMZYXbY4N7HeWjcmtqWNKf 026o2erVoOXByQ7ULlK+6PePqZ6IDVA9LuhHW8qe5MZN2m+0/y35K1SxhewdeRcp3C2/ QFCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U9rc4Pl+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v8-20020a50a448000000b00447879e8221si6057387edb.247.2022.08.29.05.58.07; Mon, 29 Aug 2022 05:58:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U9rc4Pl+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229557AbiH2MmJ (ORCPT + 99 others); Mon, 29 Aug 2022 08:42:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbiH2Ml2 (ORCPT ); Mon, 29 Aug 2022 08:41:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C5F4AA36D; Mon, 29 Aug 2022 05:25:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9008BB80F9A; Mon, 29 Aug 2022 12:25:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C1B6C433D7; Mon, 29 Aug 2022 12:25:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661775952; bh=3iB3FPdcSvm99iM6SmOB3c5yrDWVJ8azBbcMqlPGahU=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=U9rc4Pl+o0ydfA3ZabupGKgLAeKFGa9VTdEKPzEQfZJGvjz5rf/x1+Pa6RMPxDiBC 9jqfx+lScrIMrvPA3riy7bAjy4iXqnOeiQ5RpXRLfKI7wATqiPdDv9jOfTtNr2h+Yq Wa20ghuu2acgEA3aLSs3uLf5wthIZ6qxjVhNb0qvfc8x3Zav6sSokUCAjA+A0+P5de bQNqtx2Zwz2+DaKO6sCI3kLAmL8NA46x3FcuUCCe0t5hFORtboJg0kbLnB+FUuI9EE UulxZQCkL5hNebcDXHpxCKz4XhYLZsSfE1TMqSUpfspvZpiyzGy3XWlxAXXfudtV4Q DnEHl86Tq6WOA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id D087A5C019C; Mon, 29 Aug 2022 05:25:51 -0700 (PDT) Date: Mon, 29 Aug 2022 05:25:51 -0700 From: "Paul E. McKenney" To: Andrea Parri Cc: stern@rowland.harvard.edu, 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, dlustig@nvidia.com, joel@joelfernandes.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: "Verifying and Optimizing Compact NUMA-Aware Locks on Weak Memory Models" Message-ID: <20220829122551.GL6159@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20220826124812.GA3007435@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 29, 2022 at 04:33:23AM +0200, Andrea Parri wrote: > On Fri, Aug 26, 2022 at 05:48:12AM -0700, Paul E. McKenney wrote: > > Hello! > > > > I have not yet done more than glance at this one, but figured I should > > send it along sooner rather than later. > > > > "Verifying and Optimizing Compact NUMA-Aware Locks on Weak > > Memory Models", Antonio Paolillo, Hern?n Ponce-de-Le?n, Thomas > > Haas, Diogo Behrens, Rafael Chehab, Ming Fu, and Roland Meyer. > > https://arxiv.org/abs/2111.15240 > > > > The claim is that the queued spinlocks implementation with CNA violates > > LKMM but actually works on all architectures having a formal hardware > > memory model. > > > > Thoughts? > > Section 4 ends with a discussion about certain "spurious" data races. > Do we have litmus tests with them? (I could repro with Dartagnan...) Their Figure 5 clearly shows a data race, but agreed, their claim is that this race is prevented by other code not in this litmus test. Me, I currently suspect that the spurious data race might be due to the failure to guarantee mutual exclusion, though I have not yet read that paper carefully. That is scheduled for tomorrow morning. Thanx, Paul