Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1120197imd; Thu, 1 Nov 2018 10:29:19 -0700 (PDT) X-Google-Smtp-Source: AJdET5dzTocGDV2IJ3Oy7SnPtXLw2AKb+WY5vtiG3vRqmyaQK3xpTZoSm+4pBMuxKUVLNsIm8Rg2 X-Received: by 2002:a17:902:a9c5:: with SMTP id b5-v6mr8446730plr.340.1541093359876; Thu, 01 Nov 2018 10:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541093359; cv=none; d=google.com; s=arc-20160816; b=zuha2730OYLsYvOGqD6yYLKw/L8B/kuRlDKq5KCeXmk280bH1MChia4oBqP+s3jE+s sV2wCIU93xb4NokAyjoEDNyoOVR24p680FHk950x7vvdNMzHjbdhptevUEWSzaEVKJTB V0/yR7lgoczRHDVbuJuyNji+TXZPBKlLYVBtXmiyfpCcoLV/FDvCTFnSDvVdtdYaumzH rlUtgx1ZN8vTTEEfi/5HqhfjkARgWkR8EQ488XG+7Qc1FgF4vJcRlkP+9fGR+GVGjxPV MtrNnX9B0aJydjxWg7sOC6ejrvTazCJKgcv4W6FeYCap3Bk8x6nvcv05vdBRSW4qCcg6 BMeg== 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:dkim-signature; bh=jSislqE+AJGzdIO99eirTTUGxDTH9V/LGpGloAJW35M=; b=qWQK8Tt7TH8vVgDmWw9KQJnAfsvAkRlonzO2dJV/y88JcnRKfWbs4lRsYy3NOFIzY5 ioR34uN5QrEwJuVdlPZ6m6B7jkqZ+ewqFvaH9tzKhErVSrhq160oGVVxMEo345g3EfpD RGIs809Tzj/hJzlXkT66Jrywe4+LCqgDpq6+s5MVAMP64sJe1pEphf3ZVev6hxIlmdY8 XzpCcRKrg3fHkTlh4EMZQg7sqTnonkhWF0rtvsHe/bzjogJLsJZHKJmvq8k5laFx2G0k xUdE2jK1KD5O1Yy/WPiETlrm6vAfK8yaDvH0zdvL1ebb9Cd0dhZscCPs9B+DA5rjvrtw 3qRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=nRyiJF6t; 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 q3-v6si7627562plb.331.2018.11.01.10.29.04; Thu, 01 Nov 2018 10:29:19 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=nRyiJF6t; 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 S1727372AbeKBCMd (ORCPT + 99 others); Thu, 1 Nov 2018 22:12:33 -0400 Received: from merlin.infradead.org ([205.233.59.134]:54836 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbeKBCMd (ORCPT ); Thu, 1 Nov 2018 22:12:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jSislqE+AJGzdIO99eirTTUGxDTH9V/LGpGloAJW35M=; b=nRyiJF6tEzjAixqDn2meRKEED lO5z+OQNvMn+JOexJIrYS17meAWxSJRNr7iK5D4iB1FDqRg0DY3C3cPB3XrKJxkvS2PLp8PnpPExn x1E/YLbvw153MFd3L0tGkOC4bplwgrhmr8QvZc9N4ZF1OqJwmXZ84I6fEI5JBKAQ7c+YAvEqP5M5t 7AnQZYuad0vLe6eIAc3CNSMmvVxTiLecDSEeRRcg48oi556JJIUs5jiQMkVJQ+8qWEhKk4j83CO3J YB9G7Z+4SUBkJ1hmw0sJsQiPG9tEeqEsQpstZGGEsw2bnMZGpmQn5ZJYaD7ZaRu4L9nHZymD2+kju RFFMAgk7g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gIGS3-0005l6-Lt; Thu, 01 Nov 2018 17:08:12 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 702D72029F9FF; Thu, 1 Nov 2018 18:08:09 +0100 (CET) Date: Thu, 1 Nov 2018 18:08:09 +0100 From: Peter Zijlstra To: Andy Lutomirski Cc: Matthew Wilcox , Igor Stoppa , Tycho Andersen , Kees Cook , Mimi Zohar , Dave Chinner , James Morris , Michal Hocko , Kernel Hardening , linux-integrity , LSM List , Igor Stoppa , Dave Hansen , Jonathan Corbet , Laura Abbott , Randy Dunlap , Mike Rapoport , "open list:DOCUMENTATION" , LKML , Thomas Gleixner Subject: Re: [PATCH 10/17] prmem: documentation Message-ID: <20181101170809.GG3178@hirez.programming.kicks-ass.net> References: <20181030175814.GB10491@bombadil.infradead.org> <20181030182841.GE7343@cisco> <20181030192021.GC10491@bombadil.infradead.org> <9edbdf8b-b5fb-5a82-43b4-b639f5ec8484@gmail.com> <20181030213557.GE10491@bombadil.infradead.org> <20181031100237.GN744@hirez.programming.kicks-ass.net> <659CFC78-22BF-492B-B2E4-B8E89AA08446@amacapital.net> <20181031210032.GA3159@hirez.programming.kicks-ass.net> <2E29C35B-3F98-473D-A874-0D9B9B15B399@amacapital.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2E29C35B-3F98-473D-A874-0D9B9B15B399@amacapital.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 Wed, Oct 31, 2018 at 03:57:21PM -0700, Andy Lutomirski wrote: > > On Oct 31, 2018, at 2:00 PM, Peter Zijlstra wrote: > >> On Wed, Oct 31, 2018 at 01:36:48PM -0700, Andy Lutomirski wrote: > >> This stuff is called *rare* write for a reason. Do we really want to > >> allow atomics beyond just store-release? Taking a big lock and then > >> writing in the right order should cover everything, no? > > > > Ah, so no. That naming is very misleading. > > > > We modify page-tables a _lot_. The point is that only a few sanctioned > > sites are allowed writing to it, not everybody. > > > > I _think_ the use-case for atomics is updating the reference counts of > > objects that are in this write-rare domain. But I'm not entirely clear > > on that myself either. I just really want to avoid duplicating that > > stuff. > > Sounds nuts. Doing a rare-write is many hundreds of cycles at best. Yes, which is why I'm somewhat sceptical of the whole endeavour.