Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp325394ybr; Fri, 22 May 2020 07:34:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKyYJ2BFmEbYjG2K3UGrMF/ks21Ss7T3qaMRWV0dId/IWOtGqAY7CUwhUNFe8u+CypWItl X-Received: by 2002:a17:906:934e:: with SMTP id p14mr8181029ejw.494.1590158058470; Fri, 22 May 2020 07:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590158058; cv=none; d=google.com; s=arc-20160816; b=EDR2YcvvOJAEzcsescdjiryn3/ZStTKZ/SEkpnWWWkMWPVFPDdIbUb4cAqWfNZFQMM 2/Cm/oCfH2Jz2mhhymRvTPR+nb6JaFiQos1OUntDqjlWurK0EXEXxi2ugfdPXki/s2fu v3dlYriQvDSCNAsi2oKFk9o78hSh7rsJYpsaM3j0ag5krgXPb7q8/cyUzRB3F2EZDAA/ ljcX0XicFDe6Lo51kAAln2Jq3fGYyxfkZdP4Vyyut6XadSmRSD0VkIHfKXJut9IZCx4q pO7RPGM7UGFPS7B/1bdn/PFjxhygLqwPswrid3T8geXfWwWdk+P5epoQItNnsjfmnP1M ToUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=meHDq2BzfQrKfvcKd+rnt1Lpby1dqB6pN1lvgoFR0aM=; b=lrruyVdBTRdB11xerMmXCav5EluKAqjSIe8HpTY+kkf/Nn/G6Vg2I13aM8LZIjislD RiZLhTP8DkGomRpi12OgOaOvfNkyip4RmiKRD8aWxvsCNV9mTGd/uchz4LYfwTiOBr0w 4smi6WwHIJkcW10IkfkUtqnkWn74frpRtRWgH4TgSKsDXwo99ecfvZzUGhOO/7QVL/CM y9OcTYBcC5s8IbyKj9IuVUFRk7f/SzDSL5A3k3RhHoEnCSZdRr7jN09KuTQn/IXDY59l CKxKQTYOALkUrmrsdK/nAtTy5LtyghptS17L57c9IdsDinvHQZN8fqJTiyjpNJz6WmY5 I+eA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si4482327edq.592.2020.05.22.07.33.55; Fri, 22 May 2020 07:34:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730105AbgEVOcC (ORCPT + 99 others); Fri, 22 May 2020 10:32:02 -0400 Received: from netrider.rowland.org ([192.131.102.5]:41547 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1729997AbgEVOcC (ORCPT ); Fri, 22 May 2020 10:32:02 -0400 Received: (qmail 1576 invoked by uid 1000); 22 May 2020 10:32:01 -0400 Date: Fri, 22 May 2020 10:32:01 -0400 From: Alan Stern To: Peter Zijlstra Cc: "Paul E. McKenney" , parri.andrea@gmail.com, will@kernel.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, linux-arch@vger.kernel.org, andriin@fb.com Subject: Re: Some -serious- BPF-related litmus tests Message-ID: <20200522143201.GB32434@rowland.harvard.edu> References: <20200522003850.GA32698@paulmck-ThinkPad-P72> <20200522094407.GK325280@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200522094407.GK325280@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 22, 2020 at 11:44:07AM +0200, Peter Zijlstra wrote: > On Thu, May 21, 2020 at 05:38:50PM -0700, Paul E. McKenney wrote: > > Hello! > > > > Just wanted to call your attention to some pretty cool and pretty serious > > litmus tests that Andrii did as part of his BPF ring-buffer work: > > > > https://lore.kernel.org/bpf/20200517195727.279322-3-andriin@fb.com/ > > > > Thoughts? > > I find: > > smp_wmb() > smp_store_release() > > a _very_ weird construct. What is that supposed to even do? Indeed, it looks like one or the other of those is redundant (depending on the context). Also, what use is a spinlock that is accessed in only one thread? Finally, I doubt that these tests belong under tools/memory-model. Shouldn't they go under the new Documentation/ directory for litmus tests? And shouldn't the patch update a README file? Alan