From patchwork Fri Jun 3 17:37:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 12869264 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 BD63BCCA473 for ; Fri, 3 Jun 2022 17:37:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C3B806B0071; Fri, 3 Jun 2022 13:37:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BE9626B0072; Fri, 3 Jun 2022 13:37:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9A0388D0001; Fri, 3 Jun 2022 13:37:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 7DBEF6B0072 for ; Fri, 3 Jun 2022 13:37:44 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 510B96E5 for ; Fri, 3 Jun 2022 17:37:44 +0000 (UTC) X-FDA: 79537632048.06.2447642 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf17.hostedemail.com (Postfix) with ESMTP id 3EF1140041 for ; Fri, 3 Jun 2022 17:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654277863; 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=4wY2ti1jWVmcco4dB7M/EO1qrDihEXd7FNjPS1P93a0=; b=aX4OJpM0z2y4jajZiiBbQ9F8rDffY81PeDPouO8FUQTisx9NudFRJ+ipzA96nMJkwy4zcP uci0GqVEyj2iY1W/xJvH9LYloxwcdtH4kK1ZWgh2EEtfJrLu+4JEHGBAPvCP8uJfLnZzPd RnG44/3HCrYTfe3k8rXT0fM5foAV8Mw= Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-108-vGpcFEDCNHuCbpOb36ReOw-1; Fri, 03 Jun 2022 13:37:40 -0400 X-MC-Unique: vGpcFEDCNHuCbpOb36ReOw-1 Received: by mail-il1-f198.google.com with SMTP id n12-20020a92260c000000b002d3c9fc68d6so6665369ile.19 for ; Fri, 03 Jun 2022 10:37:40 -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=4wY2ti1jWVmcco4dB7M/EO1qrDihEXd7FNjPS1P93a0=; b=QBEks07a+1sThEkbk7A5dZTkkmn86HfCTZBMqvrgELgutfYYTFU33c03v4IfpLHkao x2ilPF+ExBVpz7Z1qypuC6Qliie25gG8kTHgAGuddMQhFUiH2J2wqNPolH5Wi+hNnMdl hV+x7cVYtrk3xmvFi3TRorF1jc1RGrZrC0LT21JVp64RzZyP4klDu4SkMwH/LolGV0m9 R+eMmOlY8o156q6xGVzqQ2k58X04yXdrpb2UDduOJ96v0fs/aOCC0yqMsrkgNEpvtVx3 KlK45ujwl2+2H12fJPZ32Up1TOrBUHa1AnohSoGz8oAIlGRgnRmXaIpR0ChjELk5fJOO eOEA== X-Gm-Message-State: AOAM531Yuwj5TZ2UeJaaJYEzyJ3FPTqpUJxJiarG9YVPUouu8cUztcgr AgYMgiPROJbnWCV+UeNIHbLG28K6Qq4WzZxJJAmk/WMf0l6ldf4e6eTssE2hBdzoZbYGWHRuY5K 8s6Fb8MI2EZY= X-Received: by 2002:a05:6e02:1aa6:b0:2d1:b452:f143 with SMTP id l6-20020a056e021aa600b002d1b452f143mr6717754ilv.278.1654277859378; Fri, 03 Jun 2022 10:37:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXXN7nQhcHYuKYC3FMdwo6WzrsYqUkRVcgdkpnlgAN7OoTQ+TqlM8ndxiikifU+UVw8ICjBA== X-Received: by 2002:a05:6e02:1aa6:b0:2d1:b452:f143 with SMTP id l6-20020a056e021aa600b002d1b452f143mr6717740ilv.278.1654277859142; Fri, 03 Jun 2022 10:37:39 -0700 (PDT) Received: from localhost.localdomain (cpec09435e3e0ee-cmc09435e3e0ec.cpe.net.cable.rogers.com. [99.241.198.116]) by smtp.gmail.com with ESMTPSA id g23-20020a02bb97000000b0032e1e0ac289sm2791117jan.8.2022.06.03.10.37.37 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 03 Jun 2022 10:37:38 -0700 (PDT) From: Peter Xu To: linux-kernel@vger.kernel.org, linux-man@vger.kernel.org, linux-mm@kvack.org Cc: Michael Kerrisk , Andrea Arcangeli , Alejandro Colomar , Nadav Amit , Axel Rasmussen , Andrew Morton , peterx@redhat.com Subject: [PATCH v2 0/2] userfaultfd.2: Update to latest Date: Fri, 3 Jun 2022 13:37:34 -0400 Message-Id: <20220603173736.62581-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 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 3EF1140041 Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=aX4OJpM0; dmarc=pass (policy=none) header.from=redhat.com; spf=none (imf17.hostedemail.com: domain of peterx@redhat.com has no SPF policy when checking 170.10.133.124) smtp.mailfrom=peterx@redhat.com X-Stat-Signature: 84wqmgofr3ki5z4rjpf3t84pb678ukfc X-Rspam-User: X-HE-Tag: 1654277826-49338 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: v2: - Use semantic newlines always in patch 1 [Alex] - Fix s/.BR/.B/ in patch 2 [Alex] - Rebased to http://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git 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 | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-)