Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1468901ybd; Sun, 23 Jun 2019 08:15:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhy4cGJG4FVVI8MrST+ei26RKBMIPfKeMzAwKdQo6fUUxzBzMV+OgHS3FvIeUdJEkFPcaT X-Received: by 2002:a63:2a0f:: with SMTP id q15mr29078784pgq.163.1561302953378; Sun, 23 Jun 2019 08:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561302953; cv=none; d=google.com; s=arc-20160816; b=BcM6Xg4JvtEJNKz8zzZO6ykIQmHBgel5CF+8Y62+qPZc/VJvYi1dk1chsbHDWsdhZW 33FrOEZTvrk80zLxAoUVbq6I/1kxM1R5UzDLZw6wV2HkN2jX2F4x/XRFxAkAlTzKZl6u ofI3KRS4VIxXQk065F/Q0NO6SX7bgCUppx8I84IG+pnxghaX1SSJBSPjM/TezJHqtA3S XSQ69ARlVHg9wPhbzgEnc2umXneICxtddZoEshCsK2vf9tBnoi2USvgnFaxpyNo8UHpg VZoh8BxuBEWa/zNbp82Mia4RIc+njKCTAh6TcVvbYbxxWkZkKEJV6o+/bwdPgojhNA0i 1DWw== 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; bh=CPWn/6c0i2+jNJNRPGmWqyC8rDwX0LAVHbxc20GvnQs=; b=ie2zZ7rf4XgO3ALf4A6rlBPvBXZ68CeXznDMOPzPDjZvrQJy8bIB8VXNK+naVt+AjA caBh+T5OfeiCHipI7MValQyH54q5ghhiLJr0ue+Mrk2uIhF6VTTo1+9DRYSfrov86gRt EVLQx6qnu+Lo1KBngEq8zDyaW+2+xL8UbJHxGnpRxr/BIWYN+VcnI+P1GN3f+yHJAUIA tBCDKX2Xg4ElMAEjI1l+XALxQahi0eHW0h1BjRAvDQInVi2Uqbt2pCJXquVldE3WpUJm /fC11CmZoZjhKhpYS4VmA88gSrUoWCIyZ/yI+XLAk/hc1zUUXozN3ZBXBOPHRON4shPo eR+Q== 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 g18si8152475pgk.477.2019.06.23.08.15.38; Sun, 23 Jun 2019 08:15:53 -0700 (PDT) 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 S1726863AbfFWPPI (ORCPT + 99 others); Sun, 23 Jun 2019 11:15:08 -0400 Received: from netrider.rowland.org ([192.131.102.5]:43227 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726429AbfFWPPI (ORCPT ); Sun, 23 Jun 2019 11:15:08 -0400 Received: (qmail 25897 invoked by uid 500); 23 Jun 2019 11:15:06 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 23 Jun 2019 11:15:06 -0400 Date: Sun, 23 Jun 2019 11:15:06 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Akira Yokosawa cc: "Paul E. McKenney" , Andrea Parri , Boqun Feng , Daniel Lustig , David Howells , Jade Alglave , Luc Maranget , Nicholas Piggin , Peter Zijlstra , Will Deacon , Herbert Xu , Kernel development list Subject: Re: [PATCH 3/3] tools: memory-model: Improve data-race detection In-Reply-To: <91a9c6f8-7bbf-376d-b1e0-0e2693c84ee8@gmail.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 Sun, 23 Jun 2019, Akira Yokosawa wrote: > Hi Paul and Alan, > > On 2019/06/22 8:54, Paul E. McKenney wrote: > > On Fri, Jun 21, 2019 at 10:25:23AM -0400, Alan Stern wrote: > >> On Fri, 21 Jun 2019, Andrea Parri wrote: > >> > >>> On Thu, Jun 20, 2019 at 11:55:58AM -0400, Alan Stern wrote: > >>>> Herbert Xu recently reported a problem concerning RCU and compiler > >>>> barriers. In the course of discussing the problem, he put forth a > >>>> litmus test which illustrated a serious defect in the Linux Kernel > >>>> Memory Model's data-race-detection code. > > I was not involved in the mail thread and wondering what the litmus test > looked like. Some searching of the archive has suggested that Alan presented > a properly formatted test based on Herbert's idea in [1]. > > [1]: https://lore.kernel.org/lkml/Pine.LNX.4.44L0.1906041026570.1731-100000@iolanthe.rowland.org/ Yes, that's it. The test is also available at: https://github.com/paulmckrcu/litmus/blob/master/manual/plain/C-S-rcunoderef-2.litmus Alan > If this is the case, adding the link (or message id) in the change > log would help people see the circumstances, I suppose. > Paul, can you amend the change log? > > I ran herd7 on said litmus test at both "lkmm" and "dev" of -rcu and > confirmed that this patch fixes the result. > > So, > > Tested-by: Akira Yokosawa > > Thanks, Akira