Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp156334imd; Wed, 31 Oct 2018 16:27:11 -0700 (PDT) X-Google-Smtp-Source: AJdET5ckCYniDgNvyo2fu9Qt2fhkE3C38znRF8Mn1UH18nEbbJOEQRW1dUz93+42CAA89Zjwqk3/ X-Received: by 2002:a17:902:b612:: with SMTP id b18-v6mr5348548pls.205.1541028431439; Wed, 31 Oct 2018 16:27:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541028431; cv=none; d=google.com; s=arc-20160816; b=jaYWgDbM4IkTadngACCZ9REpZdPC5cplRvbSlxMh9c7xxPBFQvjUJ9JsA7h6bKlDQK HrXOg2SMkSgqmLOnPLo5v2cU4ofISYs4KOCPA46SRxY0jE3f+PQmjJuD+Hd4oDlRfVYW Xt8tEDADjUq5VkTHPtIIYLFYX3sxKqdz5KwZVUwQIlHAIxyE/ZPUVgA3iLRAexJFGVLf RUndneAA61/l+n8XbQRX3O0VMtvt9i/nHpx/Ab0XrWECHpIeUqkPe78S74kzodwqKDOZ 24GDapnIrlMY24LMaf4gp1Vp7/8dOHVV4WQSM1VHhB59s4coZnHlIAZ9N5q/RzT16Xs2 Ub7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=bYvSjIaIsPqm0El1wWSvP8KsufjC/oEwOQPYiVRHspc=; b=VZ6m3bWGKbNswfMtgwD/azUxB/atGzWKllyrJVAyFwJDqDV4SyrJnr48p235pmAIXb HynWdyVgsq+uvWzeHEoQzGZcjSbHLx7qXFh+S/B7FQR4AHxjHgUeBhj76blbMInpfm4o NzsM9NTjJF9aMR9aUhvQCtHttfSGGiaN4UMSBjXdIHKku9MgOoGNfmba6dJBLxNsdyVV lSf1TjUklA59DJv5WcCMwmAyENlOyw5XV1uF8i5WfV9ptyhEpBbe3dR7+vrdyaYSJiFx qYE/76h4JoqS0ZFezfsCO3JhnAfXWgOCbR5dWvernZxY8z4sqQs2z+SyjsF93sG5x6pO +PRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uNBzINul; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w27-v6si25301650pga.258.2018.10.31.16.26.57; Wed, 31 Oct 2018 16:27:11 -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=pass header.i=@gmail.com header.s=20161025 header.b=uNBzINul; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731440AbeKAIYm (ORCPT + 99 others); Thu, 1 Nov 2018 04:24:42 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:33849 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731229AbeKAIKr (ORCPT ); Thu, 1 Nov 2018 04:10:47 -0400 Received: by mail-lf1-f67.google.com with SMTP id n26-v6so12960357lfl.1; Wed, 31 Oct 2018 16:10:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=bYvSjIaIsPqm0El1wWSvP8KsufjC/oEwOQPYiVRHspc=; b=uNBzINulDQi6bkHaqZ/jJmLA6O8ppB1Chie3RRl6cDZjNCc2opxtV//u6TJabrAjDO hMUXnrrWSMLAwezRpxNto5dgQstx1KWHCPUtVNt9iTkJqJDi4J+Xe2V5hR89zldgBfhC csJbppMR6ETBaGRns5zLoqy7Hq2FhIrQDT6sdSy2OGwddkCw2Gfh+e/eHSS2Ozco4y01 vDEl/ilE6y2oQ63lbzPyrT+C0QbKBYpKt7AMuuWwrvRK9GWa0C7p96zoulDj44RGsXTH wNk3EyYVdR/Gs1DWG9itlgLR9hz7fwphGS8mUL3L1n1gG6eiedDY7WIm9NZ1FN6VTCJR 2xlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bYvSjIaIsPqm0El1wWSvP8KsufjC/oEwOQPYiVRHspc=; b=oVyv+/VATxZi2bNr5ODilo2mxw78yaGQMsJlz+dMZ9n9Zm26uMsN+Uc7Uc4ncGc4Yf VVXdI3k9ml9ZUzT9ft2FKvQskcetGB4XijhoK/KY5avNqxGYJv8mfc9mSC4RfX1c8jG5 DubcOVzp3bxP+TRCKBxVpeeiCLEe0WOe7ry5kIXia6Lu0qmpyjzkWACt6/DGttcbv+FE L4z496i7f21Ul+BZuvi0Pjo7/R7hBOCIb92AYkkn1sV9n267XOVXiLACL+oWHkZ3eSgG 8eu/42frC67bnOdx4jrfBim+T8ZdtYtGMJSBapZESq2k7p1qiR+VpFniQQv83Mi1rlnp XfYw== X-Gm-Message-State: AGRZ1gJl3qPs6Iev00KVOxE0mkY8JT6WX2kr+KeCxlQnInniF77t9AC0 lkc4bpj3MspqPwd6Dzrf5rE= X-Received: by 2002:a19:200b:: with SMTP id g11mr1281107lfg.58.1541027433478; Wed, 31 Oct 2018 16:10:33 -0700 (PDT) Received: from [192.168.10.160] (91-159-62-242.elisa-laajakaista.fi. [91.159.62.242]) by smtp.gmail.com with ESMTPSA id e14-v6sm672120ljl.43.2018.10.31.16.10.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 16:10:32 -0700 (PDT) Subject: Re: [PATCH 10/17] prmem: documentation To: Andy Lutomirski , Peter Zijlstra Cc: Matthew Wilcox , 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 References: <0A7AFB50-9ADE-4E12-B541-EC7839223B65@amacapital.net> <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> From: Igor Stoppa Message-ID: <4124995b-4363-9b37-19b1-1879bf04978b@gmail.com> Date: Thu, 1 Nov 2018 01:10:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <2E29C35B-3F98-473D-A874-0D9B9B15B399@amacapital.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/11/2018 00:57, Andy Lutomirski wrote: > > >> On Oct 31, 2018, at 2:00 PM, Peter Zijlstra wrote: >> 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. Using that for a reference count sounds wacky. > > Can we see a *real* use case before we over complicate the API? > Does patch #14 of this set not qualify? ima_htable.len ? https://www.openwall.com/lists/kernel-hardening/2018/10/23/20 -- igor