Received: by 10.223.176.5 with SMTP id f5csp1006354wra; Sat, 3 Feb 2018 15:48:31 -0800 (PST) X-Google-Smtp-Source: AH8x226y7zqqHOxMmdzfmiIpwoLK2V09KfHp39z+cfWkyuvaxCb/MeJAtjD4V8rEogvS9pnRmoXs X-Received: by 2002:a17:902:8d81:: with SMTP id v1-v6mr39517381plo.430.1517701711615; Sat, 03 Feb 2018 15:48:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517701711; cv=none; d=google.com; s=arc-20160816; b=PsM/XxlaHVMi+k4QzijwCaG+6tWgoTjPLhhyVSL+36IpELNSn1ChEm4z160tVhbq8n tkH3kkEEWySPFqiCci6Yn7CFJzR5b7/1WEjI5YfboDkZs4ACpA/BhpUfaiPphzpjdyiE fhNMGWUfZYqReIy2Uw43ZnDQ6y4aWBpxPMjRJJTUjJEXbLcwncBWIXh0kApgag07hLd3 HOOFQVRZipJdaIq/wmRkD8uBy5165hSezZsAVtLVyKHoJ6ciDxPYJC3rfhwDEpOvK1no xtd/jke1Dt8IidsrLMdROWfOovrMgH8pxNnrZjmG1kDPp4WvLY23mJbhojzL6Rp+LRnJ 1SzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date:arc-authentication-results; bh=pawS7+ZNyPcaS1lbX2e6tQg6PoUkKDnRGahiiAcmtwo=; b=TbOprth2ZWjYw1J/Ga5+2Rh3uAtmLndOtaHs++b62nMkt0ROFOcs+RloJBIQcjx0iz XhP21ekijQF0VF1xm2YOQjE6YDYsLO6jnK8U72loK2kH848H/YM772OXVoPvloa4G+gA VqkoI9zp9tZUCb1UJGjjIPeU3yIIHTh19PgVUQF7PdPd/vjLQhtRi8/Dw00Ot1YXnXEC XAAHXPt2vneBmT1Bei8uIsCkX7jqx8pE/6vdY+5lTh0QrtQvwo3m6Mk7GU5kkIp64xDd pKu+OskAGaH9/Qk+Ko/1h53mtwu5ZCwm8B4WbPDQ77jCU1FPbtgWZiygqFkhKQ27KETt DMLQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v77si1746920pfa.277.2018.02.03.15.48.17; Sat, 03 Feb 2018 15:48:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754551AbeBCWKP (ORCPT + 99 others); Sat, 3 Feb 2018 17:10:15 -0500 Received: from netrider.rowland.org ([192.131.102.5]:51667 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752465AbeBCWKH (ORCPT ); Sat, 3 Feb 2018 17:10:07 -0500 Received: (qmail 29927 invoked by uid 500); 3 Feb 2018 17:10:06 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 3 Feb 2018 17:10:06 -0500 Date: Sat, 3 Feb 2018 17:10:06 -0500 (EST) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: "Paul E. McKenney" cc: Ingo Molnar , , , , , , , , , , , , , , Thomas Gleixner , Peter Zijlstra , Linus Torvalds Subject: Re: [GIT PULL tools] Linux kernel memory model In-Reply-To: <20180203084809.GE3617@linux.vnet.ibm.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 3 Feb 2018, Paul E. McKenney wrote: > Please see below for an initial patch to this effect. This activity > proved to be more productive than expected for these tests, which certainly > supports our assertion that locking needs more testing... > > MP+polocks.litmus > MP+porevlocks.litmus > > These are allowed by the current model, which surprised me a bit, > given that even powerpc would forbid them. Is the rationale > that a lock-savvy compiler could pull accesses into the lock's > critical section and then reorder those accesses? Or does this > constitute a bug in our model of locking? > > (And these were allowed when I wrote recipes.txt, embarrassingly > enough...) > > Z6.0+pooncelock+poonceLock+pombonce.litmus > > This was forbidden when I wrote recipes.txt, but now is allowed. > The header comment for smp_mb__after_spinlock() makes it pretty > clear that it must be forbidden. So this one is a bug in our > model of locking. I just tried testing these under the most recent version of herd, and all three were forbidden. Alan