From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 529E8C7619A for ; Wed, 5 Apr 2023 14:26:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238418AbjDEO06 (ORCPT ); Wed, 5 Apr 2023 10:26:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238372AbjDEO0z (ORCPT ); Wed, 5 Apr 2023 10:26:55 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 663AE4EFD for ; Wed, 5 Apr 2023 07:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680704740; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/PrTUC1frDc4ONSybRkUjf9mg/0PMjE5a3fC6SdvA4M=; b=O8kDLQgiUJvQ9zjmJMtBFdJpgb3lKU/Jp9CYkg3Lzys6I4SL9ihO7l50sZOdPPAP4f8SsP ZKvuWpEVQ4nNIH+UNhkl2Z6y1pyJMudPJjLxR5AFWQtc4PAe6xqSMW7LQ4VZhLhpPJJDRt rKzXTSLaZlUWzxgHdbE+5VfqXcKKcPU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-17-69bBNsnbO2ix0dbsL13xbg-1; Wed, 05 Apr 2023 10:25:37 -0400 X-MC-Unique: 69bBNsnbO2ix0dbsL13xbg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1C2CC85C069; Wed, 5 Apr 2023 14:25:37 +0000 (UTC) Received: from t480s.fritz.box (unknown [10.39.195.71]) by smtp.corp.redhat.com (Postfix) with ESMTP id 01FDC400F4F; Wed, 5 Apr 2023 14:25:35 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand , Andrew Morton , Peter Xu , Muhammad Usama Anjum Subject: [PATCH v1 0/2] mm/userfaultfd: fix and cleanup for migration entries with uffd-wp Date: Wed, 5 Apr 2023 16:25:33 +0200 Message-Id: <20230405142535.493854-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org One fix (I have a simple reproducer but it's too long to paste it into the commit) and one cleanup. uffd-wp migration entry handling for PTE/PMDs should now be fairly similar code-wise. Cc: Andrew Morton Cc: Peter Xu Cc: Muhammad Usama Anjum David Hildenbrand (2): mm/userfaultfd: fix uffd-wp handling for THP migration entries mm/userfaultfd: don't consider uffd-wp bit of writable migration entries mm/huge_memory.c | 16 ++++++++++++---- mm/mprotect.c | 2 -- 2 files changed, 12 insertions(+), 6 deletions(-) -- 2.39.2