From patchwork Thu Apr 14 17:15:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidhartha Kumar X-Patchwork-Id: 12813780 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 93197C433EF for ; Thu, 14 Apr 2022 17:15:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 297B06B0074; Thu, 14 Apr 2022 13:15:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2463C6B0075; Thu, 14 Apr 2022 13:15:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 098F56B0078; Thu, 14 Apr 2022 13:15:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id F0A596B0074 for ; Thu, 14 Apr 2022 13:15:53 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id B6DED2747B for ; Thu, 14 Apr 2022 17:15:53 +0000 (UTC) X-FDA: 79356136986.11.D4B7512 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf16.hostedemail.com (Postfix) with ESMTP id 265CB180003 for ; Thu, 14 Apr 2022 17:15:52 +0000 (UTC) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 23EGh4U7029741; Thu, 14 Apr 2022 17:15:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2021-07-09; bh=ZJS2TazoVpOx6lNLJpMOjqk/mT8Hy8aLpYjiZyXj5JQ=; b=HrlyaOSdI9jPt5SGVGntYzlhAAJDZ17q9GD2/Y5ZeAaRqDAvsLRUuU+Bnom3L6vPzKNr zA8zifz6m6IxlY1UjzoxWf01RQsZVESyczhVBPkQT8sP6ysDZqTQG88bDn1X8gJ+Tm9o YXA12Rg/enliUEvPLwjUhRSYKW99zEEUJQiNkLEO68hcbgVUEOE8UVu34XwihazNPfdi kQobgVyAj8Tc/pRXQmBGAqinz1k7lYYu7cZ0D1E4/Z6yD10Ls5K+6Tl9O3/EiaAyuTCT fNVdG3d7qsAz/L1haQWlNNqSRrIDL0aadqyF/LaBXqWIIgPFDdsT0150DVPysC9spLdz Bw== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com with ESMTP id 3fb0jdd1w4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Apr 2022 17:15:49 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 23EHBUvG029678; Thu, 14 Apr 2022 17:15:48 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com with ESMTP id 3fb0k5kxpx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Apr 2022 17:15:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ws/nqQelAA0yuwtSE13jrJ+z/mUgM+HNdB5JPCjfcxS1WSVcseg69P0LCLMzgSsIZwtcbhtzLf5un6KacHSfNZSzlM1JclX3IiFAuTOFuR3FaxuNQ0l9iqFpw7teDvjcgEwC9bfx8dEvEGZPCm7xTDuFIpaF9UmQCN3QvpddMpIE7XgHXMJkjqeHeSa7Vyu45gRascz5cYRda3oaJQUeRE7VQqQZJm/UbScT5lDatfLQx3fbdaF1sqRtA9UTW2+J5zg3pHBzTJR6aUL68PDngkt3ket2DE2e9U57GJFm3jmfI5klS9iEGWmSJcxdd+bcKj37LIdgt7jEv8MFZ7UMtg== 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=ZJS2TazoVpOx6lNLJpMOjqk/mT8Hy8aLpYjiZyXj5JQ=; b=jK5F4/6X8AukDiOtqvFjMswIJbET4fZ9/j9Ds/7ZP4WgwDXARHNmakBQzM+mAwznmCshcc+9lBMGJpP0j/WTVLEXXsDVaV/59WddB1wf4E7c4l+hFRC5U/hJ3ExMaw5qUo8QgTTtySSAFFiLdfrT83wDgGyteHsqoICGfNT9tqhPjc75voGxMkW42D4X5Oki1GDOLW/m5VkNjP+4UNnlDaELNB8NTCQcXr4i/+vmMA0FhOVrYRuDP3aY46zgdKbSJsZUyUtuRoyhfh4n6X3vOy7qb5ZTyX0+9eTjsTZFxfVTD8WQO9Ng+IX/zmWUfruRyV5p8ox9scbGb8NDyrtBZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZJS2TazoVpOx6lNLJpMOjqk/mT8Hy8aLpYjiZyXj5JQ=; b=BLFPh+8JKt+qQ5Xw3u9GNo9PC7IiUkvZ8jzSYJK4H2X9iU/3WnUivmjpW/UFS1ZijfnUXt+Bb0jo7dZxjHJtsKa0JMY2CfUaQW6iofMN2rRcjOSflQ5jsGz8X2k6qNJlAENxjGuyF91b53mjwhorQpHIkEXsdPQ7qWgmd2iOfaQ= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by DM5PR10MB1516.namprd10.prod.outlook.com (2603:10b6:3:7::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Thu, 14 Apr 2022 17:15:46 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::a8c2:7a0b:5845:1675]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::a8c2:7a0b:5845:1675%8]) with mapi id 15.20.5144.030; Thu, 14 Apr 2022 17:15:46 +0000 From: Sidhartha Kumar To: shuah@kernel.org, akpm@linux-foundation.org Cc: Sidhartha Kumar , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] selftest/vm: add skip support to mremap_test Date: Thu, 14 Apr 2022 17:15:29 +0000 Message-Id: <20220414171529.62058-5-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20220414171529.62058-1-sidhartha.kumar@oracle.com> References: <20220414171529.62058-1-sidhartha.kumar@oracle.com> X-ClientProxiedBy: SN4PR0401CA0007.namprd04.prod.outlook.com (2603:10b6:803:21::17) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 84fe81bb-f08e-4c46-4e81-08da1e3a6a34 X-MS-TrafficTypeDiagnostic: DM5PR10MB1516: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: sZf1qsfv/Fp22HJMHIlxnpvtBO5C0t1/4kBuxaQeT+Aw8VrGncQCXu/CbX59ztLVyxAng/k3EI9qj/39s+ti23SdLw8jtSdhkTVI+YGagK+sNutiXT3Cam2UhB0mJ9e7iq7o89F5qORr4cuhsOrzClXuKgLzmkgIs6IBGMJzuA4T5YApTBiN0E5/C/bqAGtVoNG8oETBSLAiNV6o2qLnbDoHPg54U/XPolwckZ7FE5X605DCIT7UqAS5HzBMVDadlGn7exKqkpa8kNQPRsocGd0lYT1HfrkJo2sIg2FysJpVhKP3hszw7FK15K+JsFXEgc5Q3HUU6WAdRj2ljT6Pqyz4EbXZKk+zIbWk8IjSecobwhirYn6au3k/vNW48RQp7+/MY2pamw/nD2iet/B8+vOJ9oawpivJvyXG40D57XZTDoJeZeDzOTVtJNAZk1txWQq4W/ODgzn0KEZ3/CmnUMK0Iz8YJ6nD0QvN5iCJ/irXbEuV8kwHdY3WMX7180m+THoYfaKaN+8lG2j+8rugXsQz56Cl6XRSgRYYh6CR5f0vHmZAiGrmauQhDUng0z0r/N/oTlCotEJoj0kFHWlH2prImzDtiMwIx10HfOV5/8hlapLZw3gBTExhXoqeLaK3ekzO67cMSLYJaikLLV+2b5hvndsKPp2KaitGM99pTU+9YDQBb1lvKD+t77P061Ajt1sYr7JM2WksI7BW8VzSlQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR10MB5113.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(66946007)(4326008)(8676002)(5660300002)(44832011)(36756003)(6486002)(52116002)(316002)(66556008)(508600001)(2906002)(6506007)(4744005)(66476007)(6666004)(8936002)(186003)(6512007)(83380400001)(2616005)(26005)(1076003)(38350700002)(38100700002)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13H+SCcNE4onUYwjeGG/4TgmJirXfsbkvjjErZa8fWm//IRfwEstvyNKm+sWB+B491BS6OzFEJCYru1HHJNAhUl6lje9uGgu4SVqTYliB/3BVpqSS2xOr8+Ofy16/gGZIXwyK+PbDJo97/m+6HpdKhio3JKqHpRAb0gB8GGPS/65jolQQkXF9TVvbYGYOaO8oJjyzBPwPwqRfbSEt4crRyQrfAUqRWEJfG7kfy1LVmeF+m4sAyil413W2CAiBzRhiq2wuNhBLdiTyWRi0mvizNDbHRMZG+CX6HwqXaR5tfqYl/FBlqcU8dzfUBYGFvPRYG44E8OboMXY006b0hrYypPQNYo8Vmp8B2amGX7B4Dxb/0sP5iucosE+/6BZmP3ghhofG3MhHEJ9FHhAcU7owcTGp75eFEAhg3w1v9SaJKY6LM+n7NmeyVsbzozvzbX9CfbFZZWLXSZ/f+mcIBf7lRIvMZFU5hHITkQWQ+MdkIw+MSF/K4hBuJzmngR506EyzFLP+N6sp87rxNK5FTIf9agod3YUDvmGnieOk5P3xMQe6vdxnSm6zPZ2Z+LA3SC/HftHBqkPWa3owrmpas8TWp1jzhjBcU8Th8qfOyr1ew0SkmJtBTlCsQX9bkHZUFhrWR9/JvBHXVED2xKgia0q5fjgCuiec7ajYo0gPKbDvgwBGGLGWRkM17Lqfthz02QYp7VX+zXXR/PEqt59lEWrq0kJ2AlwwRhnBvSVi6sIIylIvTvDP3XZvNzo5eeKTxco= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84fe81bb-f08e-4c46-4e81-08da1e3a6a34 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2022 17:15:46.6657 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: RjDmtRYptHXgwiXbjf59FFahPO39V9945OGYgtOH5NoDIhIZA0Gg67VxphjuEjzCHl5dsP3HuwT0REKVk7OBOEucnCcNYNuollBMZJtM6O4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR10MB1516 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486,18.0.858 definitions=2022-04-14_04:2022-04-14,2022-04-14 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 adultscore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204140092 X-Proofpoint-ORIG-GUID: JwvzBQskxDtkGd1Aqiv_QooF-N8wZa1Q X-Proofpoint-GUID: JwvzBQskxDtkGd1Aqiv_QooF-N8wZa1Q Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2021-07-09 header.b=HrlyaOSd; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=BLFPh+8J; spf=none (imf16.hostedemail.com: domain of sidhartha.kumar@oracle.com has no SPF policy when checking 205.220.177.32) smtp.mailfrom=sidhartha.kumar@oracle.com; dmarc=pass (policy=none) header.from=oracle.com X-Stat-Signature: j81ee4dzyztxrcp4rfpnn84n3s3nwunt X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 265CB180003 X-HE-Tag: 1649956552-21824 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: Allow the mremap test to be skipped due to errors such as failing to find a valid remap region and failure to parse the mmap_min_addr sysctl. Signed-off-by: Sidhartha Kumar Reviewed-by: Shuah Khan --- tools/testing/selftests/vm/run_vmtests.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/vm/run_vmtests.sh b/tools/testing/selftests/vm/run_vmtests.sh index 88e15fbb5027..eae98f5de2cc 100755 --- a/tools/testing/selftests/vm/run_vmtests.sh +++ b/tools/testing/selftests/vm/run_vmtests.sh @@ -272,11 +272,16 @@ echo "-------------------" echo "running mremap_test" echo "-------------------" ./mremap_test -if [ $? -ne 0 ]; then +ret_val=$? + +if [ $ret_val -eq 0 ]; then + echo "[PASS]" +elif [ $ret_val -eq $ksft_skip ]; then + echo "[SKIP]" + exitcode=$ksft_skip +else echo "[FAIL]" exitcode=1 -else - echo "[PASS]" fi echo "-----------------"