From patchwork Tue May 31 01:11:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 12865014 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC9A8C433EF for ; Tue, 31 May 2022 01:12:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1AC8D6B0072; Mon, 30 May 2022 21:12:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 15B846B0073; Mon, 30 May 2022 21:12:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 045746B0074; Mon, 30 May 2022 21:12:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id E5BB76B0072 for ; Mon, 30 May 2022 21:12:03 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id B4CCE34819 for ; Tue, 31 May 2022 01:12:03 +0000 (UTC) X-FDA: 79524261726.19.6B3D012 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf29.hostedemail.com (Postfix) with ESMTP id 3815912004D for ; Tue, 31 May 2022 01:11:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653959522; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uY3Q5t/YVyCbs5m+kSxWQrSqX2D5qqz1qZgdmSgdE/A=; b=bXujg+jNcEz5DWfC+aE+nZ7RI0eQe8c474js3L7x43AFLJa9y6Nt6rxvi1fBooxynjsWsV QsLt5gzbcT9oK4LaZsyJLUEoCppzSmiqAJ6JYQivF/CpZyu4GRNxzfSK54tE14pfhQTDVn VZX1MUgfeh3X+erxbYbZ4M5/Hx2CPK4= Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-304-vmQ5ANhVM2Ka4WgxVdSAZg-1; Mon, 30 May 2022 21:12:01 -0400 X-MC-Unique: vmQ5ANhVM2Ka4WgxVdSAZg-1 Received: by mail-il1-f199.google.com with SMTP id i18-20020a926d12000000b002d1b13b896cso9278692ilc.7 for ; Mon, 30 May 2022 18:12:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uY3Q5t/YVyCbs5m+kSxWQrSqX2D5qqz1qZgdmSgdE/A=; b=kNC20+VFMZjGUPKckzN3qXbw4OQTR61Gyj8oyVlflCmp3d9cXKiyldBcpvRfrhE7hV E0fTALUKDp8r9KmxPjmCCEDml1lDNNf6WT3hQDW7KsWa9n3Nqb8WfTSjgasfQFz1008a qUFf3VkHl72t4mxmGNRoFBX+uFXABZdf3psdLX+9//TcEFWJGY3dSHxSz/aVZr58OdaT 5wASEe+DDqlPxy2OjaBLBxirG0tLZxSA1jZM90zzEzKk6Ty61QubC1At8oKM8B9S40Ns 2Mg+zxM7lDP8J3YX8nLmBZCy0iNcb8pQZuj+nX2j5hufr6FKEPBBYm2rn+nBLcqha5u5 ibDQ== X-Gm-Message-State: AOAM532xS5qbopGpNHtTji6QuKCExAOgRreBwYWBdkMdI4hDlFnqsf4b 6yLO7YPAqlRwFi0X/rWCwtYbuXk0J0SiA7dX4ILWJcjfz5TSBBPBVk1cdYrugAHvH8vUIz4NQU/ Sj9fV9er961c= X-Received: by 2002:a92:ca45:0:b0:2d1:b7cf:26a9 with SMTP id q5-20020a92ca45000000b002d1b7cf26a9mr19174943ilo.52.1653959520450; Mon, 30 May 2022 18:12:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeURDuT17RoMdt/uGX/WT1sdcY73aFHJEA9T6tFDlMEsYyTOLLFA+3AE/oWzP7hkMJWJHdWg== X-Received: by 2002:a92:ca45:0:b0:2d1:b7cf:26a9 with SMTP id q5-20020a92ca45000000b002d1b7cf26a9mr19174930ilo.52.1653959520215; Mon, 30 May 2022 18:12:00 -0700 (PDT) Received: from localhost.localdomain (cpec09435e3e0ee-cmc09435e3e0ec.cpe.net.cable.rogers.com. [99.241.198.116]) by smtp.gmail.com with ESMTPSA id s6-20020a02c7c6000000b0032be3784b9bsm3158234jao.117.2022.05.30.18.11.58 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 30 May 2022 18:11:59 -0700 (PDT) From: Peter Xu To: linux-kernel@vger.kernel.org, linux-man@vger.kernel.org, linux-mm@kvack.org Cc: Alejandro Colomar , Michael Kerrisk , Axel Rasmussen , Andrea Arcangeli , peterx@redhat.com, Nadav Amit , Andrew Morton Subject: [PATCH 0/2] userfaultfd.2: Update to latest Date: Mon, 30 May 2022 21:11:55 -0400 Message-Id: <20220531011157.46868-1-peterx@redhat.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=bXujg+jN; dmarc=pass (policy=none) header.from=redhat.com; spf=none (imf29.hostedemail.com: domain of peterx@redhat.com has no SPF policy when checking 170.10.133.124) smtp.mailfrom=peterx@redhat.com X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 3815912004D X-Stat-Signature: erw7hp6toipyfikox4sxws9gs7gbp7o1 X-HE-Tag: 1653959510-295217 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: Add the two missing pieces till latest 5.19-rc1: the UFFD_USER_MODE_ONLY flag, and also the recent wr-protect support on shmem and hugetlbfs. Please review, thanks. Peter Xu (2): userfaultfd.2: Add section for UFFD_USER_MODE_ONLY userfaultfd.2: Update on write-protection support man2/userfaultfd.2 | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-)