Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5659041ioo; Wed, 1 Jun 2022 09:49:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCh6/wD3sujfsn2e7RPHusV5AGV8t4ezNK/7gHlJGOgcxTPFGxx1ZI34GGRp/sPXXRBA84 X-Received: by 2002:a17:906:7313:b0:6fe:ecfb:703f with SMTP id di19-20020a170906731300b006feecfb703fmr392467ejc.680.1654102139792; Wed, 01 Jun 2022 09:48:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654102139; cv=pass; d=google.com; s=arc-20160816; b=vjdHZFa3RnrP5hfXtNZmNGIxPrKxdlvKaeGC/dzSJYxQkkoVUO7cRTxr5mA1xv1MCj da70ZRfxZSyHRNgBJ/EJpuTf1qG99Mt5k48BaBccWmMAeeOpM7zzlT2bjVqBO2Zduten vwSTcVEJnj32fVGaFUWgdh0ZngBV7GMjJPIKM3fKzwRu6jcpEOJwhLeiKJ5A+TVkvCcf XLDhXkE819qxRW6v/YPOgq0e2i5aViI8xRInGfICfACvqaN/AMHlExcduOh/Xov5XP5k XWbuiZDSiLEaPRagWLkmBriCF8p1nqDC+Qr4o4GjjnvAXX3qzLgOMqWDVqpYJHMzBxWg 0bVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=I4hxh/Rz2Wpa2nDuJY/l38ZtYFFbGWJ6jto4hxhC/sM=; b=p/DITKwcXMvG/tkt3Fq3BspqUeZgNFhKAUBSjmmnX8qHOew8kxwPWPcChUoZlOUMdc KW1wV8dqN9f0oTNnT+2nKt0NKZTB/moBGvvw2MCXaDJ/sxDBES1g1Mb910jjdXNpdup4 QIOEA8ci5WiH5YfuFq3qVx5mjg1j4xP/RBFeJWve0bAMZq0pXEaI/prPlpigUQi2tHeM lJU73sM1uzN0VOn/qScUQzv1+v9UzPYJezm2D5Op0WtipDl4RW6P8hY1HJ9QjYjsqEUL dX5FGIjQsizmUq8QO8kKLmu1f1mxO003ptgQQELRldtSMT9FX4PRxwVJGjBF+1x/kpdy ywUQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=kdeypevi; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a1709062dc200b006df86351032si2091159eji.194.2022.06.01.09.48.32; Wed, 01 Jun 2022 09:48:59 -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=@amd.com header.s=selector1 header.b=kdeypevi; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347597AbiFAJOW (ORCPT + 99 others); Wed, 1 Jun 2022 05:14:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347283AbiFAJOS (ORCPT ); Wed, 1 Jun 2022 05:14:18 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2042.outbound.protection.outlook.com [40.107.93.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 995563BFB9; Wed, 1 Jun 2022 02:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CfeSHZe7ae5jNW0RSCODE/c17G/gUd3u5dOEWyI0Wbs1pwndmk9cQT0H9W8dAmnX/AVzgqFr2jNzBuVUojSJUwie8mVelSDgWo3PaiqZTOEfztn7kruILCLbHdOgOsHzi8TQNML8Z6x1Q4Fmdw/ZyNCP87O6AUcseXzpmS7ko/9Mrahgl6OX8sFuXc+EDUMqn7QQqnVG4Unw/K78RkSmRPy3f2/TbbtxlaBZk0Oewa4cElPbPgobSmIgP8EKy+6eKQQx0iIejXscI+fJeRDqNWUPWRPOIxkejHSlWbwMTwJuG300uGuINS0YeLSlr3lqg/7XhX/kfNnpbtU4nJm+vw== 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=I4hxh/Rz2Wpa2nDuJY/l38ZtYFFbGWJ6jto4hxhC/sM=; b=QRuFoDgsdp9Psgm4JdEHy9jQr8tBmMCtr4CKpP/BAi+dSuqeO93YSMFDD2Uk0BUqIyZHfeZ1B7FR4vcEJdsPupT6fB0DIg3DeOVsYqQDOWk8zCF/wMJtZBvW2azx9bndZByB/xBXvVDRb7OrcEaj5swGZmax9KQie2+xIE9vhi52c5/Qd1lZi/lqPspeKqaa/n3c1I/R1YEjj9+3wI4bGOXNiuRZrKsuu6ltQJ8ORP0xlT66gXPHP2wKuPO6QTAig16oKPHd+XkYz69tXARUbq5Rnw51SxNQpqKDvNcqCQCaK1TgOP6EbIqUYHwdBYjxKHQO9pqCzo3vCoqeJRV3LQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I4hxh/Rz2Wpa2nDuJY/l38ZtYFFbGWJ6jto4hxhC/sM=; b=kdeypeviprKqP/jSLWCvKfIMCrhqShauw9x+eLL48DEuKFEaSKDsKRytELaJgWHXouoQX0hKLiMn2rxisvhfsqP7tsDuGsXBTM9NS8bygIDzaEj4XS+5FRSr1xpd55XDAF+lCgpNNiiPXfxUU+yLijKe1B/i0+QguqJKG4lBqPQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BL3PR12MB6449.namprd12.prod.outlook.com (2603:10b6:208:3b8::6) by DM6PR12MB4300.namprd12.prod.outlook.com (2603:10b6:5:21a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13; Wed, 1 Jun 2022 09:14:15 +0000 Received: from BL3PR12MB6449.namprd12.prod.outlook.com ([fe80::5552:c915:15f5:cb5b]) by BL3PR12MB6449.namprd12.prod.outlook.com ([fe80::5552:c915:15f5:cb5b%9]) with mapi id 15.20.5314.012; Wed, 1 Jun 2022 09:14:15 +0000 Message-ID: Date: Wed, 1 Jun 2022 14:44:04 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH] selftests/vm: Add protection_keys tests to run_vmtests Content-Language: en-US To: Andrew Morton Cc: shuah@kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220531102556.388-1-kalpana.shetty@amd.com> <20220531114021.25a8ab92ad112a4b9f985ebe@linux-foundation.org> From: "Shetty, Kalpana" In-Reply-To: <20220531114021.25a8ab92ad112a4b9f985ebe@linux-foundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN2PR01CA0147.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:6::32) To BL3PR12MB6449.namprd12.prod.outlook.com (2603:10b6:208:3b8::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 072d166b-c444-432b-d612-08da43af1903 X-MS-TrafficTypeDiagnostic: DM6PR12MB4300:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NdUVM7+rMuSS0R44M49C6ZnMJuJhDu45cEeTGPQWnfaS+g1gFs6INo7ZPZr3zLHg10uQLZDhleJXfQFslY/U8nr7QjUCtGPrDGWadZqx0jArO8ceTHIupH1TEyIQl5Jgh9PoaHu71SUqBdHbRYyqkbIkHdGxQ0slK4F3a85kx9qimwPre3IrxXUurrgnh2RPhma6a89H+fFKxDQYwytD5KR5CoNn7erK8I7UvQkrKqbr0BFULgGzx8S8PNOofp14hTcS6SGOChp2pf7pXvGkWnr7Jmy35Bc80vlESmc/1qlKEEygQGkccEudfywZ9UxSmBsUB1CSZl1Vqb1k1uVyDMaXuNE5w5fyGc4qgLqmRysTV+kcUYrfnxTYSAeJL7Bjk0T8Bt7C6CDbbWQgnqUDN6nopqEsVe6AeoRwhkvyAH3jZbdGPZ8jWxXraboD2zSL9AUGMZh4sAyKdvEl7uBKj/LIMB9c7JoQxmi1iPl79pxsX75t0dm0ibD4s9nt+C1oSZouTE88jZK/SBQgYTvG0lFbRqiS+4lLgHKt+axDcBkebghyXCtUjYcR2UuYOjCLA4PHQkzqOaQQAO2Ba66Ys4ZW/gJ9VMziqDlVa+XxKSnTtohFhU1Fo3RJVeGISoieNop0BfUcuaFtX0folq0KHpMf/WCvCMcdeIstgr4iTgaj4kXjZyB055jvR4foJyGTW3N2ZIH61Q6KrVuUr6dhEv0+DBaKo8Cbu8chbK8WPdo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL3PR12MB6449.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(2616005)(186003)(38100700002)(8936002)(2906002)(8676002)(316002)(4326008)(6916009)(66476007)(36756003)(31686004)(66946007)(66556008)(6506007)(86362001)(31696002)(53546011)(6486002)(4744005)(5660300002)(508600001)(26005)(6666004)(6512007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OHNRT1MvdDMrU0s5VFlDVHJpRUdxdTEweDBoa05Gb3FZelZvcnQzWUIxNXA5?= =?utf-8?B?RzlKeVUrQlhUaGl1c2VqL0JaYmhXeTdWaERzTWd3NVUreHBCenk4VTlYZ3VK?= =?utf-8?B?TDNsby9EWEhpSEs3OGRwVVpEZUppZjZROVFXSmF0Rmc2NkQ5Um9KNHYyY1V4?= =?utf-8?B?WkJrN1E0MWY5VGhub1BrbVgwWFNlMWpjbVgvK3RKTVBEN2pwdUhHY0NyMGRt?= =?utf-8?B?VEViT3kvcHl2NEZRa2NyRG41TzlGMDZoVHp3M1NqYmhJMytHY0RZRU5oZ0F1?= =?utf-8?B?dTFubGt6eTNnMHRxRmMyRm1ZR0hZdFFSVktjaHp1eHVsRVRQYXo1bktqTXJt?= =?utf-8?B?K3Fyd2R2dTJuYW5WMUh6QUsyRUxjYU1FZkQ5NitscG9Gd3N0SGF4VU5VYlEv?= =?utf-8?B?d25VOWkzVktDeDNiWkRwR28vMmJmeU16V2xtSmhCb0wzaUp6OWNWd0p0bE90?= =?utf-8?B?WEVoZ1dVSjRNNG5ndkx4VWgyTE5mK0FKQnB3aUV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TA0YlNXNUFCRUxvcWZWaTRZQ0FuRWVSRGpUUT09?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 072d166b-c444-432b-d612-08da43af1903 X-MS-Exchange-CrossTenant-AuthSource: BL3PR12MB6449.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2022 09:14:14.9343 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: F6BGq+zkrBGB6D903K+WjjO0EbrpJ4nPL/Adjq2/2Z3jEUPzgAXeoPIpkVVm6vxFaTadsH7C8mN8cjcTD1gruA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4300 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 6/1/2022 12:10 AM, Andrew Morton wrote: > On Tue, 31 May 2022 15:55:56 +0530 Kalpana Shetty wrote: > >> --- a/tools/testing/selftests/vm/run_vmtests.sh >> +++ b/tools/testing/selftests/vm/run_vmtests.sh >> @@ -179,4 +179,11 @@ run_test ./ksm_tests -N -m 1 >> # KSM test with 2 NUMA nodes and merge_across_nodes = 0 >> run_test ./ksm_tests -N -m 0 >> >> +# protection_keys tests >> +if [ $VADDR64 -eq 0 ]; then >> + run_test ./protection_keys_32 >> +else >> + run_test ./protection_keys_64 >> +fi >> + >> exit $exitcode > So we're presently not running this test at all, unless invoked by > hand? Yes. > > I'm thinking we should backport this fix - have you any idea when we > broke it? We didn't break it, just adding "protection_keys" test as part of run_vmtests.sh Thanks, Kalpana