Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp850239rwl; Wed, 5 Apr 2023 08:29:43 -0700 (PDT) X-Google-Smtp-Source: AKy350Z8/ZJWieEypiMR2qvv0F12g+i0UbIvzISqeb2nyNbqzjdU8GuIYzSLGoogFFh+0I7DJP55 X-Received: by 2002:a17:906:844c:b0:948:c047:477d with SMTP id e12-20020a170906844c00b00948c047477dmr3196147ejy.22.1680708583531; Wed, 05 Apr 2023 08:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680708583; cv=none; d=google.com; s=arc-20160816; b=YbZrA7ZFrPdb6Ak78CnGQodSoyA6CyDfUxEzQsm6tW6giPDhgZBID3xHc8NAInCCpQ Bl3FKl1t3A81IuSRsV+9GTR7F97UBLEjREWh1sbtab9EUUAUWQv+Eym2ogbaYaD4qOdg Rgnh0j1Eq9+EwytW7tAsa9HThOW+4cFZtbY/aVnPrBC4l9crCdju2cCeqfx2LBrh2q4Q btK9KbqOfNSX+uVo3w9BuHmEspSsUBAl4i4ezsRq9plK/sc0A3ZAmUKNA6lsKYoh2+Pq IQExYidFyFO0mAWbuiFnSbR0iFP7AkOWSxkx3hBbLy9a2YxwJDBLol4q1f1vIlrlUieq Noiw== 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=ZEt4/fLuqkiy2IaMPsm2XYqAFwxWZjnumwAK7my1HZg=; b=RqtaKFNiLmO7d49X8Y509W9B92dwohQ4UJPYXwbb5dVXq+GY8XcsBwrAEAADGON2sY k0aN3UgAjqxCXF2f9h+uVrT7QvigQ2PWImGT/Awzhp+c5NAGV4B5gcTcloYe9vqymN6S RWDeLawey5WQqjBeaM5U3EoLWFwHvUOmpw9PvXBtCfd7JooPUVoYBnzBXajcaVbiRNrB 1Z6lgXbVdqGOh2W7cnVlbRQnuIAguEmWqDyaK4z4PDR7WJu+dgmcoVyyfplwpPoKUaS9 yClyWI5gnX9qgJ4CdS3fiYi0TOFtAJmE3acUXM4zzGincBA4OH7j/O5v0HwiJzB24Nx0 zkzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=V2HGeEem; 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 qh21-20020a170906ecb500b008e7916f1952si1299281ejb.822.2023.04.05.08.29.02; Wed, 05 Apr 2023 08:29:43 -0700 (PDT) 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=V2HGeEem; 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 S238336AbjDEPVc (ORCPT + 99 others); Wed, 5 Apr 2023 11:21:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238101AbjDEPVa (ORCPT ); Wed, 5 Apr 2023 11:21:30 -0400 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 F423510C for ; Wed, 5 Apr 2023 08:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680708040; 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=ZEt4/fLuqkiy2IaMPsm2XYqAFwxWZjnumwAK7my1HZg=; b=V2HGeEemJTnBcguemwxPLde09rjQYJsxsLcLlVtEOY1XRdJ/xF6OT5yZoyEpLC8dpX34EB 4XMk+SXcN1ddK4ywf1TeDB0nUuogBfWcEMFlba7CODJ949JexOMfJgcrI4zp+Dbf/JJD9l NRRTLrALlF4L+ALsnx4FujUJh7F2fa8= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-625-nJ13xFoSOr2LDOHGFkabdg-1; Wed, 05 Apr 2023 11:17:40 -0400 X-MC-Unique: nJ13xFoSOr2LDOHGFkabdg-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-3e2daffa0d4so12220271cf.0 for ; Wed, 05 Apr 2023 08:17:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680707860; 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=ZEt4/fLuqkiy2IaMPsm2XYqAFwxWZjnumwAK7my1HZg=; b=z7dvQ28DAVDds4eabhR+5T+sD/bcf7WKvBCPfUxnjpf7Svc5DHnHDNnnIxUqNuZAa2 BJdnI5chI5r2Bjtqdu3PR+TwA593OXD1gySor4NvjABrxhRCfzKr2CWWNoUGlV6DpBm9 TlDa50WDEPToFanSChcHqR9O5GxgSiF1FP2xZf0TiY8+e3QaKL6B6OEOtSBk0VIVR85x oRgVc6bubQp5lGxvilN4QETZYhwbAVYA5ZzElvVAZ1DgI/NTsqnLTmHAr/2GO0RZM7Z+ LYrj7EeuphHyN78jZiaoEwGfur6TG1aFU432WZHyNKfYwJHbSWt5q0Tsgmd8hVWU5BQD Y1ug== X-Gm-Message-State: AAQBX9etX+L0J1jr6vxR9MNBeiQIwcagiQTFaBh3bhYj+rOs84gjqEYI vQSzU5s6fZKnPDlcf/hmQwmXTfSDCa4HZ/EmSZZKWv2FfLEjkZoAvPsVVtm2aTiItKYh7xQBmT+ DyEDFSxlJq41NfFxgCIzJk+3G X-Received: by 2002:a05:622a:1888:b0:3bf:cf77:a861 with SMTP id v8-20020a05622a188800b003bfcf77a861mr6152065qtc.4.1680707860126; Wed, 05 Apr 2023 08:17:40 -0700 (PDT) X-Received: by 2002:a05:622a:1888:b0:3bf:cf77:a861 with SMTP id v8-20020a05622a188800b003bfcf77a861mr6152022qtc.4.1680707859781; Wed, 05 Apr 2023 08:17:39 -0700 (PDT) Received: from x1n (bras-base-aurron9127w-grc-40-70-52-229-124.dsl.bell.ca. [70.52.229.124]) by smtp.gmail.com with ESMTPSA id e1-20020a05620a014100b0074a1d2a17c8sm4324729qkn.29.2023.04.05.08.17.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 08:17:39 -0700 (PDT) Date: Wed, 5 Apr 2023 11:17:38 -0400 From: Peter Xu To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Muhammad Usama Anjum Subject: Re: [PATCH v1 0/2] mm/userfaultfd: fix and cleanup for migration entries with uffd-wp Message-ID: References: <20230405142535.493854-1-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230405142535.493854-1-david@redhat.com> X-Spam-Status: No, score=-0.2 required=5.0 tests=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 Wed, Apr 05, 2023 at 04:25:33PM +0200, David Hildenbrand wrote: > One fix (I have a simple reproducer but it's too long to paste it into > the commit) I hope the recent rework of the unit test can help having more of these unit tests into the kselftests directly. Currently it's still ugly even after the rework patchset - we'll need to reference e.g. area_dst in unit tests for the allocated memory region (with specified type of either MEM_ANON, MEM_SHMEM, ...), but there's plan to make it even better. Thanks for fixing those already. -- Peter Xu