Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp527767pxj; Thu, 3 Jun 2021 12:37:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwb/qKCKAylkLs22BLAvhKc93BiHDwDYxnt+BUrNfuexHPTUyv1FPOfcKoHVzZQIYDGMVvy X-Received: by 2002:a17:906:dfd1:: with SMTP id jt17mr841819ejc.486.1622749041465; Thu, 03 Jun 2021 12:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622749041; cv=none; d=google.com; s=arc-20160816; b=HQa3z+HjjsjgXMjzBarv0f2NPfhGYGIZnOlQfjwL7ClKrTqnV4rVNDYQ9dXmFv1piV T/1w7ikTCJEUh5kytDTobaWcPDbKk6CXZ1FPUqWPIAV8De8iG+yjPwmQJQydCM4LAnHl v7AlMDpB8RqpbSC/TyBY1FKk+S9DV8xeCs+BFWIE4P30sX2RqntKxjkWNQx3TW3pA4FA qAgib9UpYLzLWwSRutQHMbmZGxEyUtRSbbuk5Q6kqht2f9z0ARgmcireR4RnZqQbyr81 yHus5Og7T4XHGpODhzSMgjMyL4A6Zs9c81o2YS9/zUH+Etf8NyfaWVVBITeMzc1GulaA 4K3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=upIN3rRVlmuGccakb3pkBawIHaqI8SnKPwFBlV2wP3A=; b=jUD5MSVE341uJs9DB0TECjVzuzTHzMbP0qnzRAd6mz/efjWSSqpKrX27gnav3p4wes WreNO4inaTDW2K9KtNNlI2QiA/0DOuMAu45PGbdERvwgVpT6GoRa4397gGEFP8NhYy8I zUkODfIQmPqu1fY4WcrvWCjwVX+O6BIp+skKPdzGAx/A29FK4A1qTKcnXFv1cbIFKftt 4+o3eUVw20kL2H+u6uyndhgyNjsGtsGvnGH78/RtCJn8uvApTA4HTmWrdEvG1Up16ylF dCwX+CoLBHxmi0/cckUniSdxC7dTslB8TWJGt99mUhSWXORXKnuHV5KjZDt0ohUbyInT foEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail3 header.b=ih7mvRTe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=emersion.fr Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gv3si3297028ejc.220.2021.06.03.12.36.57; Thu, 03 Jun 2021 12:37:21 -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; dkim=pass header.i=@emersion.fr header.s=protonmail3 header.b=ih7mvRTe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=emersion.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229736AbhFCThZ (ORCPT + 99 others); Thu, 3 Jun 2021 15:37:25 -0400 Received: from mail-40133.protonmail.ch ([185.70.40.133]:31392 "EHLO mail-40133.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbhFCThY (ORCPT ); Thu, 3 Jun 2021 15:37:24 -0400 Date: Thu, 03 Jun 2021 19:35:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail3; t=1622748936; bh=upIN3rRVlmuGccakb3pkBawIHaqI8SnKPwFBlV2wP3A=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=ih7mvRTeDlgXaPIULSRAbKPIdZ9gIUzCeK3vte6y6mP23bMDrzDX/Sk0/vEeOrpuf J8GFqBTsHW24SKyj5MSoG+PkQPicFn7ty0v81/yNQDLSyDWhGPcrQ32+XDWiqZdYtV ztFTRmbt4a8ylZb3s0Cy9aHF/16s0JBBLsyeiAnKSkZL9fuOXi4QVLI2PhTNTaLZMd 904/8+WerJVMz1mnBlJMEXr2yj7w9LpjPPnk7yCcRdJIAmARpg93jg64mW5L1fMjRD U0+Pqsp0jVn+x5DN/ZAqdTOuPnBTT86gzF0OJYSVZd/7x5rTi++MsSMfXHX2bDEdvn choACIjT9vlYQ== To: Andy Lutomirski From: Simon Ser Cc: Linus Torvalds , Hugh Dickins , Ming Lin , Linux-MM , Linux Kernel Mailing List , linux-fsdevel , Linux API Reply-To: Simon Ser Subject: Re: [PATCH 2/2] mm: adds NOSIGBUS extension for out-of-band shmem read Message-ID: In-Reply-To: <1FD047D2-F5F3-4AC6-A4E4-DB8FB1568821@amacapital.net> References: <1FD047D2-F5F3-4AC6-A4E4-DB8FB1568821@amacapital.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, June 3rd, 2021 at 9:24 PM, Andy Lutomirski wrote: > I don=E2=80=99t understand the use case well enough to comment on whether= MAP_PRIVATE > is sufficient, but I=E2=80=99m with Hugh: if this feature is implemented = for > MAP_SHARED, it should be fully coherent. I've tried to explain what we'd need from user-space PoV in [1]. tl;dr the MAP_PRIVATE restriction would get us pretty far, even if it won't allow us to have all of the bells and whistles. [1]: https://lore.kernel.org/linux-mm/vs1Us2sm4qmfvLOqNat0-r16GyfmWzqUzQ4KH= bXJwEcjhzeoQ4sBTxx7QXDG9B6zk5AeT7FsNb3CSr94LaKy6Novh1fbbw8D_BBxYsbPLms=3D@e= mersion.fr/T/#mb321a8d39e824740877ba95f1df780ffd52c3862