Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp344966lqr; Wed, 5 Jun 2024 07:47:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVa6ViCdvGcFvrmZHZJEsVLNR5WqaT33oy533tudRn5GuSWK8KxHTgQ/5cYgmbSlz9aIKykr5jxB0fwJj9i+6h+CEEv3+Wa+Sy6JjFgQw== X-Google-Smtp-Source: AGHT+IF9S6Y+dbibgKJNgWcfcu1V0hgOUzY1ZwXjUhefGgXCexRaCEgtA5wLkoVdOn2qQavjdLmG X-Received: by 2002:a05:6a00:b4d:b0:6ee:1c9d:b471 with SMTP id d2e1a72fcca58-703e59e4616mr2878436b3a.25.1717598837831; Wed, 05 Jun 2024 07:47:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717598837; cv=pass; d=google.com; s=arc-20160816; b=DPlRA2bD6MBMpEKsGAUovfInuMmhloLi2ao0T+E7xUn/eTX2Vd8nGcFmtwZcgWpfyN onmx4DtVcqWUumu27+vRdy9GcyxKlborrmzjAIFPbcKUdD/uDjnICvg0EWebqrV1DaqD 62asNoavxEZ4lEpXuiQFIo1qDLeDgoNClynJLqbGJxcWz+z5V34LPnPnKp4huXQwDg6U bZ64BwrFy8kknnSVmTuO53bg3Wz2PO8soMb6YsQ/OfFcwAHnnO/a6/BT8j5+98TaDf/X 4MChoqRS7f1U4FKdJdlSqxfHwd+mjrLQTdMO3PH0z/bfs4raStkl8kbFs2peAvH/uuCF RdRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date; bh=sYvpSqvx/oxesDREQEVcnJXoreRgFWVK0rVHMjCam3I=; fh=0zCIpKUUfXNR4vgEGKRVdryXrgfIVE1T7Yen7VUJyhA=; b=tASuKiDtqCf5qkgqhDtPIlgNe2tuYMQxNVq6PTC8Axa+oPHmfobYIlCDkAAjP4lqqT L0+VEI02XSKY020QSJDqLyHvgmP+0b2uZ5z3rYEjwUbtK/1FhDHeRhdEwX2h9wmFqGXV fofdFCGgA39WrEAphmiKoOyLeXcvHqdh4dok4s0kzUqIrcBiVaKwAWLv4K0QqM/BbjsM 654OW7M+JWE7MbKSiB6ST+HMed62f8PeAe1yAP7LHnbZ2KXRwoyT1nGy+N9HS4/hoJ3U zCaeKT3v6UgzlO1m8Bj4FUdx3CJWr/APdQTVxjWKJLAZrbcIRqCCUK1bCAHmerHIdfky rdBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-202787-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202787-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-702866d6bc2si2842130b3a.153.2024.06.05.07.47.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 07:47:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202787-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; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-202787-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202787-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu 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 79D032888F7 for ; Wed, 5 Jun 2024 14:47:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A8802232A; Wed, 5 Jun 2024 14:47:12 +0000 (UTC) Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by smtp.subspace.kernel.org (Postfix) with SMTP id 4900319D8A7 for ; Wed, 5 Jun 2024 14:47:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.131.102.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717598831; cv=none; b=YDJ42EGXdHT3Yjj1KREm47sAt+4/URSO1ApZT9e90/qB9M6YJxRszsLXrZKZgVJ2Ceg6U1ej+McSrsbexPQ4JXD/kE8JH6AU2zZN0DVxaLndC6W4+U6yJ5eBbGlDzoABbHc3dlqhWaLITkfntHByZsiA6mhqhAEv7nOz+5QDxAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717598831; c=relaxed/simple; bh=26Mmd5wjZFDXiPuulTYjpvu+4ei/osZxeFNfc9g6u/c=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=gnk+7qEgbPV6Hca0vfi2FW/s+Yhg5hshla9lAiW4GUqyIipMG65ZYSJgtBq092i0/z1TbkTu8120/UuJHNd5JnS4oHf4SNNbHpz6ISgecTj+XBLHi+X8UhuPvea6MDK3i+Fm08YpnmDkuMoo88x/Cf0VRtvuxCfzc39OaLkXXgY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu; spf=pass smtp.mailfrom=netrider.rowland.org; arc=none smtp.client-ip=192.131.102.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netrider.rowland.org Received: (qmail 198843 invoked by uid 1000); 5 Jun 2024 10:47:03 -0400 Date: Wed, 5 Jun 2024 10:47:03 -0400 From: Alan Stern To: "Paul E. McKenney" Cc: Andrea Parri , 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, hernan.poncedeleon@huaweicloud.com, jonas.oberhauser@huaweicloud.com Subject: New locking test for the paulmckrcu/litmus github archive Message-ID: 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 Paul: Below is a new litmus test for the manual/locked directory in your github archive. It is based on a suggestion from Andrea Parri, and it demonstrates a bug in the current LKMM lock.cat file. Patches to fix that file will be sent shortly. Alan --- C islocked+lock+islocked+unlock+islocked.litmus (* * Result: Always * * This tests the memory model's implementation of spin_is_locked(). *) {} P0(spinlock_t *x) { int r0; int r1; int r2; r0 = spin_is_locked(x); spin_lock(x); r1 = spin_is_locked(x); spin_unlock(x); r2 = spin_is_locked(x); } exists (0:r0=0 /\ 0:r1=1 /\ 0:r2=0)