Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp81809rdf; Thu, 2 Nov 2023 14:33:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHfN5uThlTU9yEweBugzy0FfGzM/jJss8tGrC0wYeTq0SXeTftLMnAlwK4PlpfVYV9X4JuN X-Received: by 2002:a17:902:c951:b0:1cc:70dd:62c3 with SMTP id i17-20020a170902c95100b001cc70dd62c3mr8234152pla.30.1698960781461; Thu, 02 Nov 2023 14:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698960781; cv=none; d=google.com; s=arc-20160816; b=HY6O3+yRezWxGmnnFmhoapsdsUbylGeKiISPiDCEcJpvIrg9ndDLutQDof+G89V5NM 58PSkeT2zeO7T3kYTE+ZgFjv6QZ9/pc71myjTDUwgm6l0WFhFfMsxrIc31Tf4sjW8Mrr 78G4/g+OOBr0N/fbPVqK2gnPZUR8DxCV78bBj5zLVcZgAlkJTagddPe8gZz596sSBohV bojObQ38yE05zoHnlP43hcgARsOoolAw98d/bL5nHCRDGiEDfJIlp8jkm6fy62AZ+U10 hr/6eDD14Mu9j3+9N601PO6fQ0n/BNaOILhkQLDfRi+z1as6/KWz+3pwe8lNeopn2omB wwRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Vq5NPo4MczJen086IQAvce9UPFocIswVxg9xIedCGQw=; fh=gx6nF0C3By4SahE2Z+BTSQ4Ewd5kgXkQLzzotG2ZNns=; b=F6KGVrRnbimHpa4Ejuyb9k4S+dqmdgCqr8QdoqlMFLXQSdwXvMpBdH3Z0NKxcnBGae YTy4WQhpBSZaVpl+LSY0p49cOPX+y926AVQzAlLBiF43YUnXuyxb1bg/adlSjm7ba+mE yfYIqJV+q1juqa75kL499s6rp+dZAMmXkjrEYajQJfYHh1t4r+GrjK5KzCbR6y8RHv+X WrzL06eeKYbLR1jkSkRomg3vhwqhO2ikqss0pYsfcKUy5O8SGd1PT6FAWGPsucFJNWmE zUBzd30LCbRfjFtzMAbANjlfChLGSCUqmuLnrVXsBskRrp/n5Ghk2lwqcdhE8y0gJd4l +dlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=xgRMslaT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id q6-20020a170902dac600b001cbe7f1db37si309941plx.331.2023.11.02.14.33.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 14:33:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=xgRMslaT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 161188392325; Thu, 2 Nov 2023 14:32:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229448AbjKBVct (ORCPT + 99 others); Thu, 2 Nov 2023 17:32:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjKBVcs (ORCPT ); Thu, 2 Nov 2023 17:32:48 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABA5818C for ; Thu, 2 Nov 2023 14:32:42 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-9c41e95efcbso212642466b.3 for ; Thu, 02 Nov 2023 14:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698960761; x=1699565561; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Vq5NPo4MczJen086IQAvce9UPFocIswVxg9xIedCGQw=; b=xgRMslaT1VfBaZkQ3faINVjc8DK09pbRq+078Ra9cm8HShgS9Yn5RydVFqI+QM9znk RlVzg7etf8M5Hjbpd69AbTwZtg0TpPg0J/QRDzjN5iNCkDEO6YY1a8VVLkDG8y32St16 4PyTJKsiogtPLZvPTCF5GBhco3Pw2NaKkTAMAV8De2SPe5f5UrZvLotWvdj1Blpb8A0N XL78pkZGq52OrQ0Xb36Ui+wPT/umzNj5EkqT/iJJ6ng19etQRvVYn+L4zu8qqxFciOkM ipw1zJ0xqZyHQnbzNhU2Uvv2/Novby1zLlO0I1vW0gsu4eJzx2e7U6wCfz73AXCppLV2 WH6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698960761; x=1699565561; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Vq5NPo4MczJen086IQAvce9UPFocIswVxg9xIedCGQw=; b=mF7GTpzYeSIZz/odXtyuikaQWVuTP/NGSDEw7a0jfqkHc3qANrBZnQ5CsfRDMs44yK GaT5R+u/YhUUvdCLGPRFcD+miF6+KvDkXtJ1IjDDvu9UMxnr4AsZhthHzc6ujiyfZmnA rtV4fzZ9oJ5QpTsIJ68tOj2+xpT9UkB0pRWaxIvyb0T1bZBLjfE5dWuU6IvcwiDz6j5l a4s/kctlhi91aI7vh/UGjBJ2M/QaHw6XaJsZaJ73+ryz3ev4ZZKOkFsTNYCRMI6RkISd SLaKQ+saK7MJlbixDjGnFv9xWJJ6ARXjO7Zh4yoauhhpfoQT9cWPDPC3YSq8FkfFRs89 APNg== X-Gm-Message-State: AOJu0Yx1J7B/O1WhUG7ePOUvAqEd6Ovzfv1zTMbenjn/K8yUOerdHOJX D46fD2/kXyPC3LiZqlVXJ8NkY6UIFXNyTGu3Aous7Q== X-Received: by 2002:a17:907:954f:b0:9c4:4b20:44a1 with SMTP id ex15-20020a170907954f00b009c44b2044a1mr3798351ejc.65.1698960760931; Thu, 02 Nov 2023 14:32:40 -0700 (PDT) MIME-Version: 1.0 References: <20231028003819.652322-1-surenb@google.com> <20231028003819.652322-4-surenb@google.com> In-Reply-To: From: Axel Rasmussen Date: Thu, 2 Nov 2023 14:32:02 -0700 Message-ID: Subject: Re: [PATCH v4 3/5] selftests/mm: call uffd_test_ctx_clear at the end of the test To: Peter Xu Cc: Suren Baghdasaryan , akpm@linux-foundation.org, viro@zeniv.linux.org.uk, brauner@kernel.org, shuah@kernel.org, aarcange@redhat.com, lokeshgidra@google.com, david@redhat.com, hughd@google.com, mhocko@suse.com, rppt@kernel.org, willy@infradead.org, Liam.Howlett@oracle.com, jannh@google.com, zhangpeng362@huawei.com, bgeffon@google.com, kaleshsingh@google.com, ngeoffray@google.com, jdduke@google.com, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 02 Nov 2023 14:32:59 -0700 (PDT) On Mon, Oct 30, 2023 at 1:14=E2=80=AFPM Peter Xu wrote: > > On Fri, Oct 27, 2023 at 05:38:13PM -0700, Suren Baghdasaryan wrote: > > uffd_test_ctx_clear() is being called from uffd_test_ctx_init() to unma= p > > areas used in the previous test run. This approach is problematic becau= se > > while unmapping areas uffd_test_ctx_clear() uses page_size and nr_pages > > which might differ from one test run to another. > > Fix this by calling uffd_test_ctx_clear() after each test is done. > > > > Signed-off-by: Suren Baghdasaryan > > Reviewed-by: Peter Xu Looks correct to me as well. Thanks for fixing this, Suren! Reviewed-by: Axel Rasmussen > > -- > Peter Xu >