Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1100433rdb; Fri, 19 Jan 2024 08:10:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJ6u8bStZq+MPuWaFTYuBAl1SoGHqNvYXvejb+s8zAthGWmCZy6NyskXpHBodFgPwGF0Bb X-Received: by 2002:a05:6512:3e0a:b0:50a:10a6:1448 with SMTP id i10-20020a0565123e0a00b0050a10a61448mr1009586lfv.59.1705680599994; Fri, 19 Jan 2024 08:09:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705680599; cv=pass; d=google.com; s=arc-20160816; b=TpE+ihwGxu7KRE2rZeTd9gjerVhxP0aSCmToSfvVR3r+K1TX7bO3nYnRN/nBWJ+oWb Y/g/akx/MzGllfGtaKOpauCmGFz7NOXArr3ZURX11z+8mgx1zAxwiV+EQ4BLqGuXxu/U q0FhIUu/RIbkheGzce6rVc4wWKKMIFkyI6tUBqaefg3ruJNigxqUnrPrkCncpuGtrzKL fb14QgKNaJF81ImVgm6OFla1kyoT/9e7ZfoAZndV89QmsnDo8RTh8DbVdlrbcU18bnE6 GgOeaUrPGAAefWPxaWkvfP9oaLNRqjmSOOKMYqBfo08nRyzhVPue8Ksr5cL369O85PFM PNXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=dbpZkI2FURU4mf3gpDD6//kGwVqgmALvcOyy2RpgGkM=; fh=gOhv3D/kYyRllW5RCyI5bLYRxQkk1VGcrAAAcK9U6M0=; b=D2N4blqnvzJ5O9tZswWWd3Q7t2wxnFQ67UWLMD2pFpzlWi1WHP3TLdSHfEH3bPBhoG 3uKDhwUCtp2MQ/q9r2W70hxvlZQQAmONvstlrIGisypDtv0evn4ZntE/7m2IlwjrY5V7 GmoWqXuN5K/GRS8geB8tWz2hFRzXfAi/vTz9tvtI0Nm/ZZ5guBrlxipgKM8jyxRPuOaI wQAkvWkwNMi1nvINVHnAPRZAtU+QqgvFHMVM17TPOi1Za6qHiKKcXAh60LYcEg2+aznb OeOx6SZ43DOibtNkKzJxyquzrqhN8hDYhQVbTtEXHCfGTflEQAxalQCFxL1WhJwo5cK9 pRPQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-31344-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31344-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j19-20020a170906095300b00a27b3cfb05asi7703824ejd.386.2024.01.19.08.09.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 08:09:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31344-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-31344-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31344-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8AA001F22F62 for ; Fri, 19 Jan 2024 16:09:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C44754F82; Fri, 19 Jan 2024 16:09:51 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06D7854659; Fri, 19 Jan 2024 16:09:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705680591; cv=none; b=hknFLml6jATcJ3f7ksqKcyOzaEVU3nx/NzYxGr6WNFyqO/4v81T8Zv4jhHp9qUyaMzY2vEM4JXc3soxrQFvUEcAKFZ39W75jsLqAG4gLCX1OwXYJZBijpF5JeoyPdXQqLm/qZMLBAoZwT/PKStEudgaYAIMAWQfqiqMxLutsnNE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705680591; c=relaxed/simple; bh=+qVwNgKWyvVHNlIWEZ5n9M6EFS+J7PQq+oE9zH58ZMg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=i/H08cCNjyZCVuY4ukAhZ/4fMlKWeL+i6ohfTJxS2vYvTPe3FGjXuJTFeTYylXrQOCZMkqbWoi89u4hk6PNUmLOzdH889Yeylmr3wkLjF7nSQH58m9cI5y8E4XZ7FFZRM6c+YAf+CqF5hrLWJSX9EEvlLZXD4x5C7LeCQd251IA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 73B9D1042; Fri, 19 Jan 2024 08:10:25 -0800 (PST) Received: from [10.57.77.97] (unknown [10.57.77.97]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 04F803F73F; Fri, 19 Jan 2024 08:09:37 -0800 (PST) Message-ID: Date: Fri, 19 Jan 2024 16:09:35 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] selftests/mm: run_vmtests.sh: add missing tests Content-Language: en-GB To: Muhammad Usama Anjum , Andrew Morton , Shuah Khan Cc: kernel@collabora.com, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240116090641.3411660-1-usama.anjum@collabora.com> From: Ryan Roberts In-Reply-To: <20240116090641.3411660-1-usama.anjum@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Muhammad, Afraid this patch is causing a regression on our CI system when it turned up in linux-next today. Additionally, 2 of thetests you have added are failing because the scripts are not exported correctly... On 16/01/2024 09:06, Muhammad Usama Anjum wrote: > Add missing tests to run_vmtests.sh. The mm kselftests are run through > run_vmtests.sh. If a test isn't present in this script, it'll not run > with run_tests or `make -C tools/testing/selftests/mm run_tests`. > > Signed-off-by: Muhammad Usama Anjum > --- > tools/testing/selftests/mm/run_vmtests.sh | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh > index 246d53a5d7f2..a5e6ba8d3579 100755 > --- a/tools/testing/selftests/mm/run_vmtests.sh > +++ b/tools/testing/selftests/mm/run_vmtests.sh > @@ -248,6 +248,9 @@ CATEGORY="hugetlb" run_test ./map_hugetlb > CATEGORY="hugetlb" run_test ./hugepage-mremap > CATEGORY="hugetlb" run_test ./hugepage-vmemmap > CATEGORY="hugetlb" run_test ./hugetlb-madvise > +CATEGORY="hugetlb" run_test ./charge_reserved_hugetlb.sh > +CATEGORY="hugetlb" run_test ./hugetlb_reparenting_test.sh These 2 tests are failing because the test scripts are not exported. You will need to add them to the TEST_FILES variable in the Makefile. > +CATEGORY="hugetlb" run_test ./hugetlb-read-hwpoison The addition of this test causes 2 later tests to fail with ENOMEM. I suspect its a side-effect of marking the hugetlbs as hwpoisoned? (just a guess based on the test name!). Once a page is marked poisoned, is there a way to un-poison it? If not, I suspect that's why it wasn't part of the standard test script in the first place. These are the tests that start failing: # # ------------------------------------ # # running ./uffd-stress hugetlb 128 32 # # ------------------------------------ # # nr_pages: 64, nr_pages_per_cpu: 8 # # ERROR: context init failed (errno=12, @uffd-stress.c:254) # # [FAIL] # not ok 18 uffd-stress hugetlb 128 32 # exit=1 # # -------------------------------------------- # # running ./uffd-stress hugetlb-private 128 32 # # -------------------------------------------- # # nr_pages: 64, nr_pages_per_cpu: 8 # # bounces: 31, mode: rnd racing ver poll, ERROR: UFFDIO_COPY error: -12ERROR: UFFDIO_COPY error: -12 (errno=12, @uffd-common.c:614) # # (errno=12, @uffd-common.c:614) # # [FAIL] Quickest way to repo is: $ sudo ./run_vmtests.sh -t "userfaultfd hugetlb" Thanks, Ryan > > nr_hugepages_tmp=$(cat /proc/sys/vm/nr_hugepages) > # For this test, we need one and just one huge page