From patchwork Tue Jun 20 01:17:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13285111 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2928EB64DC for ; Tue, 20 Jun 2023 01:17:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B8FD18D0009; Mon, 19 Jun 2023 21:17:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AF09C8D0007; Mon, 19 Jun 2023 21:17:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9423D8D0009; Mon, 19 Jun 2023 21:17:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 6B2298D0007 for ; Mon, 19 Jun 2023 21:17:37 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 3566C1C7C48 for ; Tue, 20 Jun 2023 01:17:37 +0000 (UTC) X-FDA: 80921363754.11.CC0EF77 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by imf16.hostedemail.com (Postfix) with ESMTP id 40F75180012 for ; Tue, 20 Jun 2023 01:17:34 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=OzQaOX91; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf16.hostedemail.com: domain of jhubbard@nvidia.com designates 40.107.236.41 as permitted sender) smtp.mailfrom=jhubbard@nvidia.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1687223854; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=cvdHBj5yApv+3mwcH6LWSMXJlHljQnJdtS4CV2ZOt8I=; b=GMGt7rUqqbcEva4utj8QGF3YG07BGqt0Zm7t+4LS237cd1EkKq8mvmoMuKlCfIv7dhtiba QB5x5sNiySZrJO+2nBFBxzUOG91QMnVAjKRktI9eJcGzl77TlepvrVLTHA259/ICXjUVZl 6bAVRhiI3zOjdFY2lWgSvgwW+Zi5mSw= ARC-Authentication-Results: i=2; imf16.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=OzQaOX91; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf16.hostedemail.com: domain of jhubbard@nvidia.com designates 40.107.236.41 as permitted sender) smtp.mailfrom=jhubbard@nvidia.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1687223854; a=rsa-sha256; cv=pass; b=UKvE4SwU/cmlcG8ZhYiZyANzB/nKzLMH7yr7vDT1jbCQnMFMBF7wuqA6/WdV8H9R/vUZKx 3uOuqGWna/GTdlKEB5FhgTY7bbsDtUQIFz7FB2dYqa/baUxl+qmzM4xMOwGNvVPWD1LpQI R86Hx1IcuX8ZqDenIxx9gOSBe9txm7c= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N7brwF2IUaVKKtJo6FAdCtwt+LvqPGUovVA+JBf0D2BD8949TcCCaqP7OAdFjIxuTt8LUG/t9izJyt1e+oNDzjmyolGorN9u13bqpvzgzFsGEOjSt02+HL3dN4y+ikPHEKby3Z5rqFDaXRCLnru5qZOJQNSxfX+q72ig8v60+rFY3++6OrUOjzPvHS+neOvlDMnjcLjBsufQOJqFwMv6bzn2oAn/pwpYCW9u3hFCzoAm2ByvSlSMETC4HV235Kg2Ey3f14Jw3n2vdHqEU3ID3oSHTtuLN88jc6cooJVcJT0lgdNJv4dlChapjZZqqJ4f1EEfLdzHvrBVpPdTBx1//A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cvdHBj5yApv+3mwcH6LWSMXJlHljQnJdtS4CV2ZOt8I=; b=LiRJhv9vZWRQUYZb46WArDXYgGvcnKzbkLNPjjE1CGw4/ehNkiYTqeiHnDWLZv7+eNJw0ceq0DOgXUObE53ewJDgSGWCWAgu7qJu12s2vlFyDfikIjr1qZ35qO9OmbSwWM8GtvgHVhP68VjIGKvR34Oyq5KsHwJdumYeUlruwGCTJKqmD13navXeyxQFjOqu2FhDXtvkXJd23+5CApghiZ5hCTx2JmbOsQaFRrCtukX6t4Loqqtn1XwUC9+U9imO0RrkZMffapuAavIry72OYbIOnrx/Of+nrJ6F+EF52NKtYJdv4bH4Qs6iRr2K8SIlbvaQhxwz+KYXNolADIMswQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=redhat.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cvdHBj5yApv+3mwcH6LWSMXJlHljQnJdtS4CV2ZOt8I=; b=OzQaOX91pAZfoRNfnbY4LFAebi5dE+ZKyw7TpQI6clNcyn6K6e4SstfJJyH/YpXvAByiLlh2u8rKh5Nkv9rbsh8ZEEU7EnqqMwMDrSIb0w6GZCSNvOJvrco+a0FXKwITbuJbWkj0MVg9Ty+YCfXErOBdrfjjq7bihAdzjoaNAsSYdRF8CJ4Rlb5RteeQZ1gyKizb87yrLA4QYhBVMLcHXpD4FpLsMRqV8Vvf2BYjxLHNsHETqxNjJR792zokQwXjmSYDmRiuDqBo1EInvx02+D992+q2lboRIwcAOMYcm/UHMIOqAwJgY5fkErUqQ1L8VOd2zMN5qMLykLgLjPw+hA== Received: from SJ0PR13CA0084.namprd13.prod.outlook.com (2603:10b6:a03:2c4::29) by DS7PR12MB5958.namprd12.prod.outlook.com (2603:10b6:8:7d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.36; Tue, 20 Jun 2023 01:17:31 +0000 Received: from DM6NAM11FT069.eop-nam11.prod.protection.outlook.com (2603:10b6:a03:2c4:cafe::44) by SJ0PR13CA0084.outlook.office365.com (2603:10b6:a03:2c4::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.20 via Frontend Transport; Tue, 20 Jun 2023 01:17:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DM6NAM11FT069.mail.protection.outlook.com (10.13.173.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 01:17:31 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Mon, 19 Jun 2023 18:17:22 -0700 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Mon, 19 Jun 2023 18:17:22 -0700 Received: from blueforge.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.37 via Frontend Transport; Mon, 19 Jun 2023 18:17:22 -0700 From: John Hubbard To: David Hildenbrand , Oscar Salvador CC: Andrew Morton , LKML , , John Hubbard , Peter Xu Subject: [PATCH v2 04/11] selftests/mm: fix invocation of tests that are run via shell scripts Date: Mon, 19 Jun 2023 18:17:12 -0700 Message-ID: <20230620011719.155379-6-jhubbard@nvidia.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230620011719.155379-1-jhubbard@nvidia.com> References: <20230620011719.155379-1-jhubbard@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT069:EE_|DS7PR12MB5958:EE_ X-MS-Office365-Filtering-Correlation-Id: e0713533-9bc8-4b39-b872-08db712c1ef3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1hdJME0ht5nOVxtfdnwbLMaqXiI7VFqO4QhAZffGyEQcekRntckPeGnYUyp8x9cEC1SacSmuSN4eIs+8Dy9rphZjSRIbP36CIKUcw9Uv5WAFQzuL2pX2LQ3+WrDrZ5xM8LuBDu+oRyN+yQjxhGoE7RZby6DPb+qSWcXmvjZGjpRDsswer2m0wlR4gBACMZUlSiynDS349oVZazOFNhyAKAv9Ss52O9mlSDELx+u+BkA8o+tDmYs6EbprQfIl1AZhHNyLrIH9LGxYIecgB6CWFuNoHe8bHStcXsAq4nQ8ewjVRa8mffHOsPzovFX/Y3y8fSYLWB4CcvTlqCQUdQmx3wcf+oHpLGlcM+qfCpBzycG5uYDwWiAJVfy9aHDgcOPkCNyvTzNHOOCwVbfWUMbOvlINZx5dbCNhi9duKO75JRVZHix/BiqFnXbfvZPaQjrq5rzPQ7noTduewV1REqE7pUsHTiPqiVM8geuQPvYnMYrjQSxU5AyVnPc27w6YHlEWt7VicQYP3PU/s9pNGuzedfhBTWvWCF4YIu3aHQreSs+C3afqOEiZidzUSKRM0IEcQocskNpnVGTBxtL/IG/VAp2iwl3V1x3ii1tmc5Lt5GKu4StETgLPLAt9Fk9t58kJhAmVNOIOWFCFyEq7Bk+vl+G80bRNV/G8SiG8bMErElBe+EyVrxVQ6qKT67nO3OwDNu+Rfox8CfRn113zq/DsoS5D65XEG7+Oua2Rj01xbZEs9QoTYkQizskuyuJbKcXY X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(376002)(396003)(136003)(346002)(39860400002)(451199021)(40470700004)(46966006)(36840700001)(478600001)(70206006)(70586007)(36756003)(8676002)(41300700001)(4326008)(7636003)(47076005)(356005)(40480700001)(2616005)(426003)(83380400001)(336012)(82310400005)(86362001)(7696005)(5660300002)(2906002)(54906003)(110136005)(316002)(8936002)(40460700003)(1076003)(26005)(186003)(6666004)(82740400003)(36860700001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 01:17:31.3439 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e0713533-9bc8-4b39-b872-08db712c1ef3 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT069.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5958 X-Rspam-User: X-Stat-Signature: ran5fkcx6wkk1hwinp11dt8jbzqxnf3x X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 40F75180012 X-HE-Tag: 1687223854-646284 X-HE-Meta: U2FsdGVkX18pW+yb9DFCBELLa9v4yOinF33XwWItTiBu0O3y384jOXwd+QWMSN+dMh9oWfHnHlAy6sghLA/ZNHkkqGNHqCUPet0+DG7e5WXWkcDAPdaBJGz1itpARs48kp0ITTyBi2nybYnZuBYU91gY8eMVBszSLZRIWxIzY93iqvChpMcxGyUwJa2PCZhjEkNgn65WSVVldz+EX96XBCTejqe1Q19tFq+zFdGVaqQmlFyilj3wn7tXtjWmIYAfCBbjwzx0qJ+iAzmbbDLIJsKM0r4v5SafIfgzrZZQedFFHDIPgsXuve1aHQwTBKE4OkDz/uEbCISi7uIkT0yLLDI956u9sERHaCAJJ9H/vM6Udhx9EO5TKLSypa5row0VOTcoqWtGW/eTsa/ppzMkXEFuloJsHTLc0y+R14Sxy5kmFAeFBHZ67Unev4xwyFOVy5VX9BaHyTL5kY0oC4Pw/Q2iB1/I9hWnfNCLDms9h7aXNde68KG5lLW0EJnhmzL6SyFVotuDIjBKz0xHig2G9zWUdqtiFtvLqVQgk1zsts5Pn2wN4qUqJx/z36g/hst/WVuALbVF5Jj7hOGQRtMWsbLYQvhmdfv7k7NsaXnsXLD8ctd4UqQLqWyZORdwPJcwyZ33IH0zdZsjhs+AdhX0Qlmlfg2h6f5p//HnDOJ+1kSeTrN+bTXBYbBl0FYWnAPBdcPAqi/diKcdPULNBY2S32IMkLkruA8SUgO8eGUPtm2flhNqFbXm6lCwP0c26xEjt9ywRbicw/BbxiZaidQgtfs4+07s4Zn9nc48/1QTjgtAPo9YYPASKNBch08UlLfC7pnue09Vr+XvzWjyHB1+zCnDr8kr6q8+DzfOM67E1d3+9eSym1H2vHxwjvarNuRFKG+LAaaQh3ETcAaMzF5+83NtUr248hkycO/57DeoG8riwFyfbbdlUSB4ghBu4dmamgnsXA69sHnEmlEKYyA xeF0Cku1 O+Pml5JnLZsFbBNLMA7Fn3EWOQJnIWyLZD0sXVR43MnbJ0LqGla9JhPL2nWOKtgaVDMB+2Dy23sT/GUFwFZKQu2PbvFEgUySFNzUFBuBQvcXGOV5HyDADx2gRMxuEbvD1JbWl9H6ofjcPonG/xrzaQjvxaB2MrAVJb0VGZuY9WFFmc7JMwXPpdN60caSf+v7MRGLfQ8jQDUdMEZlfASjjuESgnoOxO1r6c0dI5OhQwJEGuQ8l/rcrxqPHobC/nrPhJ7/vJlvihtJZlrH6aZe5mnY0x4WykLn9T9YiaZukcyKeob6woDfjzn2yTGph5xNHaZCLCb3Eam07HjE4lNrZ01DDnMrv9mNeOOmk X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: We cannot depend upon git to reliably retain the executable bit on shell scripts, or so I was told several years ago while working on this same run_vmtests.sh script. And sure enough, things such as test_hmm.sh are lately failing to run, due to lacking execute permissions. Fix this by explicitly adding "bash" to each of the shell script invocations. Leave fixing the overall approach to another day. Acked-by: David Hildenbrand Cc: Peter Xu Signed-off-by: John Hubbard --- tools/testing/selftests/mm/run_vmtests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh index 4893eb60d96d..8f81432e4bac 100644 --- a/tools/testing/selftests/mm/run_vmtests.sh +++ b/tools/testing/selftests/mm/run_vmtests.sh @@ -242,18 +242,18 @@ if [ $VADDR64 -ne 0 ]; then if [ "$ARCH" == "$ARCH_ARM64" ]; then echo 6 > /proc/sys/vm/nr_hugepages fi - CATEGORY="hugevm" run_test ./va_high_addr_switch.sh + CATEGORY="hugevm" run_test bash ./va_high_addr_switch.sh if [ "$ARCH" == "$ARCH_ARM64" ]; then echo $prev_nr_hugepages > /proc/sys/vm/nr_hugepages fi fi # VADDR64 # vmalloc stability smoke test -CATEGORY="vmalloc" run_test ./test_vmalloc.sh smoke +CATEGORY="vmalloc" run_test bash ./test_vmalloc.sh smoke CATEGORY="mremap" run_test ./mremap_dontunmap -CATEGORY="hmm" run_test ./test_hmm.sh smoke +CATEGORY="hmm" run_test bash ./test_hmm.sh smoke # MADV_POPULATE_READ and MADV_POPULATE_WRITE tests CATEGORY="madv_populate" run_test ./madv_populate