Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5002628imu; Tue, 15 Jan 2019 09:27:33 -0800 (PST) X-Google-Smtp-Source: ALg8bN4uuUzrzZvQ7AQkLnB+WJxjyewW7cDcmuuUrCiF/nFh+mB7Pc2hawj1hd9Lyodk4eBqh940 X-Received: by 2002:a62:6303:: with SMTP id x3mr5268267pfb.110.1547573253299; Tue, 15 Jan 2019 09:27:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547573253; cv=none; d=google.com; s=arc-20160816; b=z5X50ThmbdYbEK/dubvE3Yb/27gzfe0DAv7JtRuQq8oGrxXRugXQ+1j1rPSNy1gxxv cjHd+bI3FVK7YmNPywKe8EXJtnxK+KWAsmAdwSxwQxFtN+XhqZj1JTWIHtd56ApgCWye 29+1Pk61SCJevFx8wWAdB9bSeAOJOWfmLfo03SJbz6R2t48S3yisUPm5j0Cbp3rE2UzQ vMH/SVjjVB8lWL048kPCcJm9MwGDhL4M2Xh54F4Y5ZHCQ1rAlwXJpGixueSuiOEpy7Iz 8hwY3BStyCuvblwOlwdTGILo0WWZQFG2yAPwonezXd8yFpKWfpqWS6TXSyhnPpq0Wffo Rrnw== 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=GayAi79SvAueL16KiyMRTkwLBILXPBBfLL3P+0jG5EA=; b=En1aty4uPJWOvvcZbZ9jlwJjl4CrqZECjApZ7SgbRXgQyGueanEHpFO85E+rJlACtu bbDHJLhFBAEVNZt4la8pBFWOV5l53ZFNupJAbA7L8LX4ZQ86GjvWljhppkN/wyZjcgoh gZlHzMQFZr0yWHQDZyOBPaOeTw2IX3h3TYmXOOa28ICicdkfhpjhHn9t20KgrOXaV38l KPLS9KNMYAKEzaR3cMSiLFmq1Zp02viVzjrRIJbA5DYhFbq/H/Vow9U1jDLDiSxm4f/I EOYWvhT1EOdyrDcPyqEFepduTukU52NEqIDoAefODBn5NUaCo7k2WKBxYbnOLP2Ldj5H +C6w== 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 d92si3916842pld.45.2019.01.15.09.27.17; Tue, 15 Jan 2019 09:27:33 -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 S1729492AbfAOPD2 (ORCPT + 99 others); Tue, 15 Jan 2019 10:03:28 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:43730 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726077AbfAOPD1 (ORCPT ); Tue, 15 Jan 2019 10:03:27 -0500 Received: (qmail 2365 invoked by uid 2102); 15 Jan 2019 10:03:26 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 15 Jan 2019 10:03:26 -0500 Date: Tue, 15 Jan 2019 10:03:26 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Dmitry Vyukov cc: "Paul E. McKenney" , LKMM Maintainers -- Akira Yokosawa , Andrea Parri , Boqun Feng , Daniel Lustig , David Howells , Jade Alglave , Luc Maranget , Nicholas Piggin , Peter Zijlstra , Will Deacon , LKML Subject: Re: Plain accesses and data races in the Linux Kernel Memory Model In-Reply-To: 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 Tue, 15 Jan 2019, Dmitry Vyukov wrote: > On Tue, Jan 15, 2019 at 12:54 AM Paul E. McKenney wrote: > > > > On Mon, Jan 14, 2019 at 02:41:49PM -0500, Alan Stern wrote: > > > The patch below is my first attempt at adapting the Linux Kernel > > > Memory Model to handle plain accesses (i.e., those which aren't > > > specially marked as READ_ONCE, WRITE_ONCE, acquire, release, > > > read-modify-write, or lock accesses). This work is based on an > > > initial proposal created by Andrea Parri back in December 2017, > > > although it has grown a lot since then. > > > > Hello, Alan, > > > > Good stuff!!! > > > > I tried applying this in order to test it against the various litmus > > tests, but no joy. Could you please tell me what commit is this patch > > based on? > > > > Thanx, Paul > > > > > The adaptation involves two main aspects: recognizing the ordering > > > induced by plain accesses and detecting data races. They are handled > > > separately. In fact, the code for figuring out the ordering assumes > > > there are no data races (the idea being that if a data race is > > > present then pretty much anything could happen, so there's no point > > > worrying about it -- obviously this will have to be changed if we want > > > to cover seqlocks). > > Hi Alan, > > Is there a mailing list dedicated to this effort? Private messages > tend to lost over time, no archive, not possible to send a link or > show full history to anybody, etc. No specific mailing list. We've been relying on LKML. > Re seqlocks, strictly saying defining races for seqlocks is not > necessary. Seqlocks can be expressed without races in C by using > relaxed atomic loads within the read critical section. We may consider > this option as well. That seems like a reasonable approach. Alan