From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A13CC47096 for ; Thu, 3 Jun 2021 19:12:49 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E2854613F4 for ; Thu, 3 Jun 2021 19:12:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E2854613F4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 60D796B0036; Thu, 3 Jun 2021 15:12:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5BDF56B006C; Thu, 3 Jun 2021 15:12:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 45E3D6B006E; Thu, 3 Jun 2021 15:12:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0070.hostedemail.com [216.40.44.70]) by kanga.kvack.org (Postfix) with ESMTP id 169956B0036 for ; Thu, 3 Jun 2021 15:12:48 -0400 (EDT) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id A5FB6246A for ; Thu, 3 Jun 2021 19:12:47 +0000 (UTC) X-FDA: 78213359574.06.57A8EBB Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by imf23.hostedemail.com (Postfix) with ESMTP id 4E367A0049D4 for ; Thu, 3 Jun 2021 19:12:30 +0000 (UTC) Received: by mail-lf1-f45.google.com with SMTP id w33so10445352lfu.7 for ; Thu, 03 Jun 2021 12:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5EDxCagl07bOh/Nv8oABAKO17kN+L9A+RY/dcpJKFLM=; b=UTljGEGQNYuxNXIn0v7XzxieUWCtnIsxzkRCecivfei0dzW5YoDgn0l5XlRffuAtRp 9lRSLYrp3aHu78VwRpo49Xzw5AfLWYiO+J5j4JygA2mmEuyDFb9pNuPPxy5EAwi8/b+z 1pN+oUWFghkmkRW6aHl9ejWgOUmra/8PfgAXw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5EDxCagl07bOh/Nv8oABAKO17kN+L9A+RY/dcpJKFLM=; b=GO+jo02He/Ky/cBID9BTrpLZwX3HUo/f/AzwjtUQs7wiN3Lcmv5aKUNAlfPdGW0cAS hMEYfrV/cGtyZjR68UQ8SvUQhGLaA1YZSI+KcGSIRLKYUo0vXnzVp8C/eNw/kWdr86Ww WoVTzxPGrxfV576eFrnVjdZTHt0z967Jr50PfUGTtoeI9agcSaXz862XKdfdMxoUY8+L ZWjI7xD2BQTlLVLpiP+priAxiyUlpG6zwpiwWz8FM2O5tugZhO5qLHzafEsJvq+BZhum fat+JhiZQwIFg2EsRxaOBAZEteQWILiTINqC4eMutWQpnj70Rq7RIATR0yB55RNuqjHT 8SBw== X-Gm-Message-State: AOAM530tHXIaiU1O+H3UP6caZBm/E53+JRTUgIzkgYVoDu59WxN+dJ4s dmCF9Nv//lQ+pIfie0RQo2Y6rtB+9Do8+QrM X-Google-Smtp-Source: ABdhPJweqHicG19ELG96k4qBqwcgnHO0mLgQtkDEW78SsGWOsk2PJKxzofpsTtU/bQ5fAAK2yZqakw== X-Received: by 2002:a05:6512:3287:: with SMTP id p7mr262332lfe.213.1622747550676; Thu, 03 Jun 2021 12:12:30 -0700 (PDT) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com. [209.85.167.41]) by smtp.gmail.com with ESMTPSA id q7sm395997lfb.177.2021.06.03.12.12.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Jun 2021 12:12:30 -0700 (PDT) Received: by mail-lf1-f41.google.com with SMTP id f11so10415947lfq.4 for ; Thu, 03 Jun 2021 12:12:30 -0700 (PDT) X-Received: by 2002:a19:7d04:: with SMTP id y4mr260545lfc.201.1622747549926; Thu, 03 Jun 2021 12:12:29 -0700 (PDT) MIME-Version: 1.0 References: <1622589753-9206-1-git-send-email-mlin@kernel.org> <1622589753-9206-3-git-send-email-mlin@kernel.org> <79a27014-5450-1345-9eea-12fc9ae25777@kernel.org> In-Reply-To: From: Linus Torvalds Date: Thu, 3 Jun 2021 12:12:14 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] mm: adds NOSIGBUS extension for out-of-band shmem read To: Hugh Dickins Cc: Ming Lin , Simon Ser , Linux-MM , Linux Kernel Mailing List , linux-fsdevel , Linux API Content-Type: text/plain; charset="UTF-8" Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=google header.b=UTljGEGQ; dmarc=none; spf=pass (imf23.hostedemail.com: domain of torvalds@linuxfoundation.org designates 209.85.167.45 as permitted sender) smtp.mailfrom=torvalds@linuxfoundation.org X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 4E367A0049D4 X-Stat-Signature: ui68fhjs31oimah13cx4q9sjp7maikiu X-HE-Tag: 1622747550-651737 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Jun 3, 2021 at 12:07 PM Hugh Dickins wrote: > > But the point that we've arrived at, that I'm actually now fairly > happy with, is do *not* permit MAP_NOSIGBUS on MAP_SHARED mappings. Yeah, if that's sufficient, then that original patch should just work as-is. But there was some reason why people didn't like that patch originally, and I think it was literally about how it only worked on private mappings (the "we don't have a flag for it in the vm_flags" part was just a small detail. I guess that objection ended up changing over time. Linus