Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4128297pxy; Mon, 26 Apr 2021 19:25:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZUV5CcgjruN5wxIW7MF8DBss4y9KAVKAiWF/bebja/cWeWAv10wkFnsOcs1WJWm/3ruOP X-Received: by 2002:aa7:df0b:: with SMTP id c11mr1676803edy.288.1619490322400; Mon, 26 Apr 2021 19:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619490322; cv=none; d=google.com; s=arc-20160816; b=qsuNSgCfszmPIexDJ5D2IDzpTQA61L2H6ivW21Xfs8Anjc4NyHUlFVtyvKYs2LD8NW fLN+Soj38wAakYt8ILI3a8CftDIbZQrFSnxur+Uv2NWtf/dk7kpl2o/xzpKnWRh9cVG7 Vu8Glg4BBPKVcW0TGLawJ7tm9M5h82iuwvlablSFgzPNDkh9Gxi63anQYaKAtkrubh+x hiwGyHdJDiPuP2l+npUAThzDjYrG0xUOKZGRJCJj0B1jFCRIpqOH4WfJuV4k50yqW93w kAn13JiEdwwwt0vuVO/d2W1W9nOBSJ82aNKAbVLVaMqEfgUFLtU9ouX0wt4bhczWrCMM TGRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=aBj4f1ka2nJ/gpsa6TStMHZaqIrVKG/e6xHVPE7SPEE=; b=V+NYxWJS8WfSjY6mYAv3dM5IfVYVh7FdTAA54rrOcMNC0sV6aP5Zb+QXffHZu43hoL qg8Vo86Y4qdRaxT+N9VvqC97mB85uP27g/T6OoM9y+VGXF7LU680CRVEfGG8qakZOBOf uK0qcVrCI5DxbntZZykk/EEdg3O/Rse1uYYNEhx+FZeKSaPyBV7DvLi6bsEJ+ciAOXG3 pYbKg0TyAv/5k+CMTCKu4adMSwK6dW8IrerbtcGMunpp585lx6y5d+MYf8abbMkt/e2E Ev+eCxnTkjW6z8MMnidasVBXp3pDehOo2vfTO1Y+JuwCesJvWjCbZU7+Hq0wHHdKsf3Z k0Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=E+NwonMu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si1333404eds.333.2021.04.26.19.24.59; Mon, 26 Apr 2021 19:25:22 -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=@google.com header.s=20161025 header.b=E+NwonMu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232680AbhD0CYq (ORCPT + 99 others); Mon, 26 Apr 2021 22:24:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234093AbhD0CYp (ORCPT ); Mon, 26 Apr 2021 22:24:45 -0400 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A5C0C061760 for ; Mon, 26 Apr 2021 19:24:02 -0700 (PDT) Received: by mail-qk1-x735.google.com with SMTP id z2so21680863qkb.9 for ; Mon, 26 Apr 2021 19:24:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=aBj4f1ka2nJ/gpsa6TStMHZaqIrVKG/e6xHVPE7SPEE=; b=E+NwonMupVGezKMvjZ7hJwuZQ7V76KMT7a8ypVkX65/bszqV5hRAaSxib3pmK+eJfD tllgqMWe4sbOvxMl7aM71A2JNBTaV6C4u83GRHWJqFYRE+VJcoLkL7QAEEBwq7WiVHci mu8D0PyYgzY4sbwCSW2vC8nYPq0r6pbav55Ns7BukgH1UbnMxFMMxgilLzeSqlIlSofA 3UlLDdRyR+qwsj8qMAj7iuK0XWKe4Kx+CdfPJfaJCYsTqCzkbIHOIzVefh0TzQ5jTOs1 AwC2bB4Nfm5aVbPV4Fja3J0XyP69U0AMxou0bN2hbN9ScZn/sFvBlmLvq/CUoguRbXC8 Mh2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=aBj4f1ka2nJ/gpsa6TStMHZaqIrVKG/e6xHVPE7SPEE=; b=BMXnaFWKCnycfYjJL9ARtXjExlydlA3ISVhGQ4KIa623j+gL7FiieCzUa7XWLgIlhb JJI0zqPHGbWBN8qMW0nWJXpaHrQaZuMa3erliSgLRiTc4Oi4b7ibSLeMY2OlvMYSE+nO EY2PoZ2xauzlTSo0L9bRure3Aqh1wAxXUt3VQk3yJpSWWlXmuez7GA4oGAjloLmaw7Qy LJKRaTcb94FkZOOgxdwKLQQudQoCtWgGhJf6aQNAhss8Ug7VN7FPI/EZTBgnOfeS86uR w/0cuDCsbrkQTUCcm3T7n3hcmCxjU2IcE13eCMJEyIuYcVkmiPuS7QTlWi0fjzEK3T36 bMgw== X-Gm-Message-State: AOAM532zDSrlH9p9nkWyTPdsyRp2cEi99cZJ0IryVpDSQ8i8v/g3P7XV 1z9yVjEZZr/rZNCjAPZopkUkzA== X-Received: by 2002:a37:5b84:: with SMTP id p126mr21326713qkb.142.1619490241227; Mon, 26 Apr 2021 19:24:01 -0700 (PDT) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id i2sm13728602qtg.0.2021.04.26.19.23.58 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Mon, 26 Apr 2021 19:24:00 -0700 (PDT) Date: Mon, 26 Apr 2021 19:23:57 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Axel Rasmussen cc: Alexander Viro , Andrea Arcangeli , Andrew Morton , Hugh Dickins , Jerome Glisse , Joe Perches , Lokesh Gidra , Mike Kravetz , Mike Rapoport , Peter Xu , Shaohua Li , Shuah Khan , Stephen Rothwell , Wang Qing , linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, Brian Geffon , "Dr . David Alan Gilbert" , Mina Almasry , Oliver Upton Subject: Re: [PATCH v4 04/10] userfaultfd/shmem: support minor fault registration for shmem In-Reply-To: <20210420220804.486803-5-axelrasmussen@google.com> Message-ID: References: <20210420220804.486803-1-axelrasmussen@google.com> <20210420220804.486803-5-axelrasmussen@google.com> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Apr 2021, Axel Rasmussen wrote: > This patch allows shmem-backed VMAs to be registered for minor faults. > Minor faults are appropriately relayed to userspace in the fault path, > for VMAs with the relevant flag. > > This commit doesn't hook up the UFFDIO_CONTINUE ioctl for shmem-backed > minor faults, though, so userspace doesn't yet have a way to resolve > such faults. > > Acked-by: Peter Xu > Signed-off-by: Axel Rasmussen And if this "04/10" had been numbered 03/10, I would have said Acked-by: Hugh Dickins Just read the comment above: "so userspace doesn't yet have a way to resolve such faults" - if it doesn't by this stage, we're in trouble. > --- > fs/userfaultfd.c | 6 +++--- > include/uapi/linux/userfaultfd.h | 7 ++++++- > mm/memory.c | 8 +++++--- > mm/shmem.c | 12 +++++++++++- > 4 files changed, 25 insertions(+), 8 deletions(-)