Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4957430pxy; Tue, 27 Apr 2021 17:04:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6pMVkr0XUULwuBwzTsEukvmRPzNIQNf/Htm1hvozD54LWZwqml+06NKi0GXPSkysyfo1J X-Received: by 2002:a17:902:7fc9:b029:eb:4828:47e8 with SMTP id t9-20020a1709027fc9b02900eb482847e8mr27649903plb.56.1619568241483; Tue, 27 Apr 2021 17:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619568241; cv=none; d=google.com; s=arc-20160816; b=iMRe55Yv9eJBWffsG81VdiO0p2PqOlYaGiZSG1l3ffvno7hpZoHZ4w683vuvFxqeGQ tJumk7YwyYl9zkWeGaTpGIc4xNn8htPeVoabE01oIhaNczpD2lZNo8tpBUiGrE0FxzaG GfBdwZrbVb423eswPCTsZWlem4DUCdUwm8PNUDssjT1YEk5MfL7vbwkdBvoeux3S615X sAEmL009MBEbfzW/OaHkk7bpqK83yqu7OhwooIlrvWCFwfgsCkwUZFZ2UtgqZBAgyj3y o3VokjTvtYB19T3/Du9HkRa4OwcwKXUWLoX7/ArOPcCNqWY2qA2q8YpSSdQ8d36OhXVL eKHA== 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=6p+JC3rKVjYrYlLA8QianvKVOFGkYhcWLY47LZagLL0=; b=CE71hhH/EuRJHaqtmjOMQBFS5GIaYTzUBV6uV48HJhjSnn1yQ+UHxM3HZVFPySR6o/ FAfH+dVoHapP0vJ+uMgu2f7djh4CTPjA2hWaTHYJqHSavTNMtioTYRQZ8sJTecCxs7CI GdsScRFsRYJgXubd/8kTwwY94MqyGHQiFIApDbur6zdvevbAcambULgHW47zf5MMuiYC C8s6Jm9DkwWOcDRtOB5rfM11EdrSbuFhbsj0G4VApJn5mPg0YFwG4uB/MG9K468jugca vMvbjZF6lD81MnNkz+ClJ5iiEkCMpCRZO/r4ozkql6CdhAUHM/l75CsqYrk9JEPcsuF3 mm6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QG2EIYp+; 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 q15si1728453plx.202.2021.04.27.17.03.35; Tue, 27 Apr 2021 17:04:01 -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=QG2EIYp+; 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 S236782AbhD1AD2 (ORCPT + 99 others); Tue, 27 Apr 2021 20:03:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235653AbhD1AD2 (ORCPT ); Tue, 27 Apr 2021 20:03:28 -0400 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DA44C06175F for ; Tue, 27 Apr 2021 17:02:43 -0700 (PDT) Received: by mail-ot1-x336.google.com with SMTP id 5-20020a9d09050000b029029432d8d8c5so30966168otp.11 for ; Tue, 27 Apr 2021 17:02:43 -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=6p+JC3rKVjYrYlLA8QianvKVOFGkYhcWLY47LZagLL0=; b=QG2EIYp+HC97NQun7wDIY0YwlOSn1mnmnxpu3OvXDOY3mR4wRvei0y53o8fYQr5kTV 8oDkBNSoqmkyXMHAwBO0cmXYQgr5+9vGeBJ/0riXwQt8lIi7PmcgOAJ52+kiL4jLit1L iOGMBNecyxBH0usH0DNCUpLcwyQbR1kz6FnIaEXAYwcxtDyt9i5EDkI0LmU3ZIod5MDv gA6TozSWFZVS0SXEnj1kfysquTzkeq9DfWE+8JAZIZ8kkrGTq3IYs1sSJElWSQA3MnPr JLEx6WZ4dcSnczVjd1SgNKsmoUO5ngTfmw34QUGn9VvgnfOwgMEhsBUt/ioMW4IINC4j Mmuw== 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=6p+JC3rKVjYrYlLA8QianvKVOFGkYhcWLY47LZagLL0=; b=UUJUUSrom8wuVD1tpAlE7i3nmN1TeUn4jfT5YnsbOSmzpP1EMXhnyiWrcl2OE3wWgD kVNxq81F5M04+bOPj/ZF+lUUPWKuHw42fv9DZqH+Py3Fmqn6XeTSNzoAKc+82241aYjH +Dwx0+G3k2F84lOKqyy0+okZuzA5fR5d414YqpGrTD35kS3EnK4a1Ede0FINS9buMx+i YzczDe8OTrWthXU9YWMDB4OCov3zKwBgiFBWoWkJzGN2jhq9c+4MkMTjpyiH3djmxmz2 U3/PPQJC8j50jqav/dF2MTSwQ/jW4oyszi22nYjOB54oLRn9QR1H5WT0Yq5SEjBiBVWX Tsdg== X-Gm-Message-State: AOAM531fepHUoYrC9o27jPDjrP2sZLUj4odNq6EcI7ic4kP8UsZk7Z35 Lx5QaFOVrgcbhWpZ8+TP7VEYpQ== X-Received: by 2002:a05:6830:2418:: with SMTP id j24mr1782028ots.87.1619568162507; Tue, 27 Apr 2021 17:02:42 -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 a21sm981529oop.20.2021.04.27.17.02.40 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Tue, 27 Apr 2021 17:02:42 -0700 (PDT) Date: Tue, 27 Apr 2021 17:02:25 -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 v5 03/10] userfaultfd/shmem: support minor fault registration for shmem In-Reply-To: <20210427225244.4326-4-axelrasmussen@google.com> Message-ID: References: <20210427225244.4326-1-axelrasmussen@google.com> <20210427225244.4326-4-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, 27 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. > > Because of this, we also don't yet advertise this as a supported > feature. That will be done in a separate commit when the feature is > fully implemented. > > Acked-by: Peter Xu > Signed-off-by: Axel Rasmussen Acked-by: Hugh Dickins > --- > fs/userfaultfd.c | 3 +-- > mm/memory.c | 8 +++++--- > mm/shmem.c | 12 +++++++++++- > 3 files changed, 17 insertions(+), 6 deletions(-)