Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp517506pxj; Thu, 3 Jun 2021 12:18:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEy5HNm67qehonj36nVY6yXYD0MzRxqdLHCo3E/aeEP2oCOAl70X6loNZf7zbfgyWq+QKS X-Received: by 2002:aa7:c354:: with SMTP id j20mr977551edr.294.1622747925024; Thu, 03 Jun 2021 12:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622747925; cv=none; d=google.com; s=arc-20160816; b=aGIS/+UyxwnotOnobg7l6jfeyM+lc9AxuKWqaV6gx8dPimKGDuyrpJ8nDQEU2BYiw2 vHf2Ml0KqnmNqNvBbZTVHgwln1IGxv+jsYYGoNEz3JwIWG5NJRMbSCsYFeiPb083kI8f Sx9/59YrS56hTh9cKcQXODnhrPmCXTKDNGeAUTGZ63+XMjYkAZYdxF3z38Htkaw0VPa9 k0T05bzcYgEFLX54sm+4xq+9zyfJb7XyiTaM2WfPbs+ziw12Xvpg2eeHsgk8yoVTtgwa l8BMkypTGb4JdbalwacW+Dd4Zr4iEY9aU1IpNbsQ7wJElwC9HcJdMLAVaMRx/EotOp0S 8rCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6CRsT8crQOoq4KK7EHvJ7QQM+oKI52My1kzGYaLGrfI=; b=ybccQsyYJw37FKQo3MqXejNTqU7xQuHEyp5IWTXtrQOcs8JSRCYlh6x88BRLS3UN/g V16LeghGEcCFghdfq3q5Bkm6bB7Rnc5/l0K3SI6KKH8yNOer+KkD5VJbkKtKbxsSSCm9 0SULWuc2WAyQFRCLBt0KRJ7uE1az/07vMvcDsx0KP+8Y+59raQL4SBW3Yjalt0svILic LT4hztrNKUqkPPUK9cHlXc/9ne0nm/b96U7Zr3TuGCrkOyrStQaMg64RZ36LuSyGZMF1 YouwVDfIDdJ+n3pDyNvpiPE2TwpK9TaHDyj2zOuTGlsz8C6PMViquStb/OBqPYqDvaBX KAKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=R8VDVRcP; 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 c11si3222293edy.550.2021.06.03.12.18.20; Thu, 03 Jun 2021 12:18:45 -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=@linux-foundation.org header.s=google header.b=R8VDVRcP; 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 S229625AbhFCTR7 (ORCPT + 99 others); Thu, 3 Jun 2021 15:17:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229656AbhFCTR6 (ORCPT ); Thu, 3 Jun 2021 15:17:58 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FB9AC06174A for ; Thu, 3 Jun 2021 12:15:58 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id f11so10429668lfq.4 for ; Thu, 03 Jun 2021 12:15:58 -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=6CRsT8crQOoq4KK7EHvJ7QQM+oKI52My1kzGYaLGrfI=; b=R8VDVRcPoGt4k3cTxV+3sOakxWxFIWv9QitfEwkiZuFc+TePCnjK5n4i0LW5CY7vBE 13FlE07lfLUcNnJ843cb2LCV/zg8vLt0u8cwi/gVWfImNpe1FxwNQ+MJ/WaTmrDjfj+J vXkTFwqZubZn2FR3ewqOSGR+9hjtemq0rhKHo= 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=6CRsT8crQOoq4KK7EHvJ7QQM+oKI52My1kzGYaLGrfI=; b=nA/PdoBCMhd+V8HSaqTkLohB6M3b0HZbJkAYR4EkkDXdZZIBVhdlcrlHDmAIXhDAUV TdchbbNYn6dUw153PpuXIYFZwYolxr+O0BXbti3nwwqeGBaLr7h8TQW5XQ25tOD2ser9 lxmg/6Vz50khdw/zgRtjctL7oQ8OD5Z1U79R8JKFIIqv5YlcFRgQAGQKGXIDIL7Me4up FMRboLQouh0IbnwiMLUimmntWvQnC4d1sh7W8/pIkGJbnjH4O7fQxM8TTdlm1yGeTwz9 la9Y8pCtL0gs336cArwMC2hoFNIo913kNo2UlLMBWtU3XmwawEOjBMul1dl+cl+aNKmt 6tYw== X-Gm-Message-State: AOAM53128osIpo+HLjgiplJV7h5uWiocLLhT+XjGfnwuFJSFqu86fkKO BHa7/weBkNkMW60dXARQuxWPpkLKUezmBKYz X-Received: by 2002:a05:6512:2209:: with SMTP id h9mr294519lfu.474.1622747756300; Thu, 03 Jun 2021 12:15:56 -0700 (PDT) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com. [209.85.208.179]) by smtp.gmail.com with ESMTPSA id x1sm429754lfq.240.2021.06.03.12.15.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Jun 2021 12:15:55 -0700 (PDT) Received: by mail-lj1-f179.google.com with SMTP id c11so8506890ljd.6 for ; Thu, 03 Jun 2021 12:15:55 -0700 (PDT) X-Received: by 2002:a05:651c:1311:: with SMTP id u17mr626097lja.48.1622747755672; Thu, 03 Jun 2021 12:15:55 -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:15:39 -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" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 3, 2021 at 12:12 PM Linus Torvalds wrote: > > Yeah, if that's sufficient, then that original patch should just work as-is. To clarify: it obviously needs the VM_xyz flags things, but the VM_SHARED check in do_anonymous_page() is fine, and the whole issue with VM_MAYWRITE is entirely moot. MAP_PRIVATE works fine with zero pages even when writable - they get COW'ed properly, of course. Linus