Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1605461rwb; Thu, 8 Dec 2022 12:52:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf62DjRfG0foaU94/LsF8xOQcMyR88F246TCxH5upiytz5u/hSQGyjTAdsjaHybOzhZYJnrK X-Received: by 2002:a17:906:3a14:b0:7ad:79c0:4662 with SMTP id z20-20020a1709063a1400b007ad79c04662mr80722072eje.400.1670532730403; Thu, 08 Dec 2022 12:52:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670532730; cv=none; d=google.com; s=arc-20160816; b=f5BpwD3Hu9xTn/c/AzUBvdNcFC9qFalxautqutrjJeHypVDAitSOWEqUExdPwkjI/k pzg62ZWfpxuRVGCy/SLGZZa5pgFa26TUesS/pJOh86mhv+R1RVVS3pvZvPlwWVDXoO4q fYx+CIFN9uIEpJFn400l2gymWRzKUm2K+Mi25288QGBwZpJH8B6LoTV+QqUzXW7K9rhk FgIEMdkXoUlse5bo5pjwiQrxQoePdoypg0uEnYwFvRCjYd0dg9/vmcKIGL2f7UWGQuTh E6JZcvVsnioYh62Z30KcuX0UGuxHxyMPLYamFJpTfBQWreiz0YoVo0oJsF0BtOLKuV+Y G51w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aO91Cy3aiM72NJuvUVHnXgYZwK+vF7vmwZ76fFMKBJA=; b=jR5hBIYCdLFNMsPoJgGRkCP4oeZCBANf4FCFSwQJxK3ysS7bzN+ZmolTffgGMkquFy wlTdiRK/W1dEFOSM8jc70fFfWXtwdsKGigkO9PKdkk4SSSYcQVtyCnLk1qqqedGvRC1m MCOgSGqZclkkYHM6cV/otiq1MCqhs4xC67Iqum/FaXZ28kIVxnwtKBC9n0JpKyd+B5Si EkrR/2X8B6t0jjsRHlWbXAAZ/jX51nBA7czax5oNj+bkhrPQSIsb3dMF62WhzdrZ0keO 4HkCShMOjjDRVs0ECSv6ZlKGc78Ae7W0L64phPokpIQGQos5jKYBoCJEE2Cq74YTlj/7 we8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MUjSTNFg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p10-20020a05640210ca00b0045945eed10asi6578683edu.5.2022.12.08.12.51.52; Thu, 08 Dec 2022 12:52:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MUjSTNFg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229844AbiLHUIN (ORCPT + 73 others); Thu, 8 Dec 2022 15:08:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbiLHUIK (ORCPT ); Thu, 8 Dec 2022 15:08:10 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28F3471266 for ; Thu, 8 Dec 2022 12:07:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670530027; 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: in-reply-to:in-reply-to:references:references; bh=aO91Cy3aiM72NJuvUVHnXgYZwK+vF7vmwZ76fFMKBJA=; b=MUjSTNFgLbzV2kmaynBsaS3qYt5Sbxg439Z8L2l4A4L7MxJUsoQYzc2H3BISCJT3bm1ipn WYF49W0PyDuS99d4wmniK7AeOnonlSgKRH0ei6e1P4WLpLj0srtGqko9PiR8JJ8t6NFnAz zy+OKe1ihl2NN4pgkIEk5P07YmZQOwA= Received: from mail-yb1-f198.google.com (mail-yb1-f198.google.com [209.85.219.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-136-tHOEfWaBPpCME_Z7XLVa5g-1; Thu, 08 Dec 2022 15:06:20 -0500 X-MC-Unique: tHOEfWaBPpCME_Z7XLVa5g-1 Received: by mail-yb1-f198.google.com with SMTP id r7-20020a25c107000000b006ff55ac0ee7so2599356ybf.15 for ; Thu, 08 Dec 2022 12:06:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=aO91Cy3aiM72NJuvUVHnXgYZwK+vF7vmwZ76fFMKBJA=; b=5RGcCxIw3gjbRdWN1QGjtMdnpBl7j9vdtgdzDAqpd762pK/QkmMc+JLjqGHVhLuytb /zemmz11WKuH7ydST5eQTNDr8sduHXE7CONEBg9DLQjEWDfy7tBWDZ7Te4UI3rFPKfi7 xqLVsE3902/i0PAAEnQkxjFGiC7FG2bLeN+fDgMRFrYtUOMH8kLEflFG7mAPQC6aQVpr Pnxd0Iz7BzcboW5MFlx7EMkD5LoPC9r5KVStQzmlmykeyNx50GywZOl9nC7OG8RJtFn1 04TJFfnHqDJ3LiN+7NlBCKy4PBjCikkyc0jxrZ8kAAzOYa5uvI59KhF5pjJv+d5tp8im ubyA== X-Gm-Message-State: ANoB5pkyshROV7pBHd2I2lCfyAyBvvuqkggX24VOsnaYla9v1VeqsBVD L/JVqFTK+MNG/VaY9F5Vf3SOuuAPzx9j640tZP88bxxuNze2Jl/ZHXUzRLhIDSsRmw4iJjapx7G wU9kpvGfKMRbM/UiKW6J/88ZU X-Received: by 2002:a25:2314:0:b0:714:e101:8548 with SMTP id j20-20020a252314000000b00714e1018548mr1353388ybj.58.1670529968073; Thu, 08 Dec 2022 12:06:08 -0800 (PST) X-Received: by 2002:a25:2314:0:b0:714:e101:8548 with SMTP id j20-20020a252314000000b00714e1018548mr1353366ybj.58.1670529967829; Thu, 08 Dec 2022 12:06:07 -0800 (PST) Received: from x1n (bras-base-aurron9127w-grc-46-70-31-27-79.dsl.bell.ca. [70.31.27.79]) by smtp.gmail.com with ESMTPSA id q13-20020a05620a0d8d00b006fab416015csm20082249qkl.25.2022.12.08.12.06.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 12:06:07 -0800 (PST) Date: Thu, 8 Dec 2022 15:06:06 -0500 From: Peter Xu To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Ives van Hoorne , stable@vger.kernel.org, Andrew Morton , Hugh Dickins , Alistair Popple , Mike Rapoport , Nadav Amit , Andrea Arcangeli Subject: Re: [PATCH v1] mm/userfaultfd: enable writenotify while userfaultfd-wp is enabled for a VMA Message-ID: References: <20221208114137.35035-1-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 08, 2022 at 05:44:35PM +0100, David Hildenbrand wrote: > I'll wait for some more (+retest) before I resend tomorrow. One more thing just to double check: It's 6a56ccbcf6c6 ("mm/autonuma: use can_change_(pte|pmd)_writable() to replace savedwrite", 2022-11-30) that just started to break uffd-wp on numa, am I right? With the old code, pte_modify() will persist uffd-wp bit, afaict, and we used to do savedwrite for numa hints. That all look correct to me until the savedwrite removal patchset with/without vm_page_prot changes. If that's the case, we'd better also mention that in the commit message and has another Fixes: for that one to be clear. -- Peter Xu