Received: by 10.223.176.5 with SMTP id f5csp1325563wra; Sun, 4 Feb 2018 01:17:06 -0800 (PST) X-Google-Smtp-Source: AH8x225PVmJqCj4ws5/beJMOzUfRgfRFyzUV6GftYaqHF89jHyjmtqd2ytWCL7yT5Tiw0XwHrHXB X-Received: by 2002:a17:902:6ac7:: with SMTP id i7-v6mr39393447plt.368.1517735826213; Sun, 04 Feb 2018 01:17:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517735826; cv=none; d=google.com; s=arc-20160816; b=rDgFQ5uCUZnsewQSjljBSaTPACZFf02N9Gzaj+9CKzKAc4QzYF1jsq81DaUgZXd1no ijL4+FcTtOi2cGVj8vX+kePBpJh4KZZP0tzGC/TuSWpt6cuvYhGtzzXzhtA6S8pWJ2Mt reuCAZEPmDGaNpGYarnpBwhAeU52IBMcRTMjD07R/07ovDAnjpprRmShzsU91cJd2uNt Di0we+0SslF74ezUcXBJ+IE4D2RpFfG3KsRjy2RL5Gy1NyjL/lg/vSEbmJAStZpPf7DY Sdwu/W4wtz4o7IDKXi0cCzOGfhYoTDDf/2xTgMYbcN/yI6sl9GyA/Epa6PzIBCN1y7Nw 05iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=hQusB0b/Ct4JWcVQKHxs5zrDbnIt+mQB6V4DoR9MFZo=; b=gRgmH+bylSNAYRHNs776F/FQDx4Corm6s895RP97EMz0+rlGebV0vRC4G0mf5nwlsz 9NDdBHnLUq7FP9c2PkvOVSB3jxl9OYW9gCMaH6O6JJQHIv2xinhYOUqXT68KESHaniCS CBieYIRFNmeCBaxc0Gwekpn+gwO7GtaYwKce1VNrHLKMv8Ba4eDXfdxeqW36ot6O7wyo zec5ichUmzJ+78ysG9GrFJMPxXovrVXpm6z/SuVhHuFg5v4MHz84MXOqnMjy7Roly0RE 4cR4SlTaPrxyQye2xdaoesPMfe5tP8LXNHBWYKxLDySt9iWJaX/2QSGqY3iCPqtB4zfn eBhg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11si565423pgp.162.2018.02.04.01.16.51; Sun, 04 Feb 2018 01:17:06 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751558AbeBDJQI (ORCPT + 99 others); Sun, 4 Feb 2018 04:16:08 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:60900 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750818AbeBDJQA (ORCPT ); Sun, 4 Feb 2018 04:16:00 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w149DotY133070 for ; Sun, 4 Feb 2018 04:16:00 -0500 Received: from e18.ny.us.ibm.com (e18.ny.us.ibm.com [129.33.205.208]) by mx0b-001b2d01.pphosted.com with ESMTP id 2fwuekp2h9-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Sun, 04 Feb 2018 04:16:00 -0500 Received: from localhost by e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 4 Feb 2018 04:15:59 -0500 Received: from b01cxnp22035.gho.pok.ibm.com (9.57.198.25) by e18.ny.us.ibm.com (146.89.104.205) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sun, 4 Feb 2018 04:15:54 -0500 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w149FrUu50528350; Sun, 4 Feb 2018 09:15:53 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BBD8DB204D; Sun, 4 Feb 2018 04:12:49 -0500 (EST) Received: from paulmck-ThinkPad-W541 (unknown [9.80.222.191]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id E92C8B2054; Sun, 4 Feb 2018 04:12:48 -0500 (EST) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 88B4F16C120E; Sun, 4 Feb 2018 01:16:01 -0800 (PST) Date: Sun, 4 Feb 2018 01:16:01 -0800 From: "Paul E. McKenney" To: Alan Stern Cc: Ingo Molnar , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, parri.andrea@gmail.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, boqun.feng@gmail.com, will.deacon@arm.com, peterz@infradead.org, npiggin@gmail.com, dhowells@redhat.com, elena.reshetova@intel.com, mhocko@suse.com, akiyks@gmail.com, Thomas Gleixner , Peter Zijlstra , Linus Torvalds Subject: Re: [GIT PULL tools] Linux kernel memory model Reply-To: paulmck@linux.vnet.ibm.com References: <20180203084809.GE3617@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18020409-0044-0000-0000-000003DB36DB X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008468; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000248; SDB=6.00984726; UDB=6.00499587; IPR=6.00764097; BA=6.00005811; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00019359; XFM=3.00000015; UTC=2018-02-04 09:15:58 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18020409-0045-0000-0000-0000080AA497 Message-Id: <20180204091601.GO3617@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-03_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802040121 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 03, 2018 at 05:10:06PM -0500, Alan Stern wrote: > 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. And they do for me as well once I upgraded to the most recent version of herd. Whew!!! Boy, we weren't kidding when we said that you need to us the latest and greatest herd7, now were we? ;-) Thanx, Paul