Message ID | 20220125150920.23955-4-joey.gouly@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0D3E1C433FE for <linux-arm-kernel@archiver.kernel.org>; Tue, 25 Jan 2022 15:19:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XJF3FhI63N22pXdq5V60WdkuKBYxbiYO7Jq3MaYZj2A=; b=pP1bGf8yckDrAU PbARC/K0PYZEHVyG63aF24Bh0cImqGA+4ycvE4eA5c+ssGstPrcbFBVm3oiPIDL/KGL0GSgi5nIW/ 9JrJYLJnUX0Oy6NImSbUIcr7vjdLXKHCy8kHE1A9WU6F6hDItjgMiwuZLdb2MQhd5OOyJoKCrYW+8 Oj5IZqetvpVEtB95HCV5FEBEIK8n6vEkkL8F3ODaL6x994z/WIQzM2s7cgm1pjMAWI2ZOZGIulRqE 48Fq+dy5n2+s0//RQozb2iFst8LnOMvnj0P3zbzeG7dtaq70UIZ9ycQVrHst1JUTJTuqeSxYpR2FG WYT7f5xhqFACVWpd3WzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCNYn-008Kbe-Ij; Tue, 25 Jan 2022 15:16:43 +0000 Received: from mail-eopbgr60040.outbound.protection.outlook.com ([40.107.6.40] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCNS5-008IEe-Qy for linux-arm-kernel@lists.infradead.org; Tue, 25 Jan 2022 15:09:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=67nT5bwAOjBc8AC+sVSr8dTrNVtH3lJmXHaTwlb4cq8=; b=0lfp7P9UEWGXvwVGkNcDRwESXsU/87W9iUEi45vbtRZS8d4KZFEH/+gpiy0i+MGpPTNWfubqkqV3EUIAPo1wTM5PYgI2PBvw/R08scqm+I8uwPN5O0wWVrQG2jzMRSo6pdpQfL4Sc0wpMqst1C/UJVzehZ2WPizL3NMIV31Trmw= Received: from AS9PR06CA0102.eurprd06.prod.outlook.com (2603:10a6:20b:465::19) by DB7PR08MB3050.eurprd08.prod.outlook.com (2603:10a6:5:22::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.11; Tue, 25 Jan 2022 15:09:37 +0000 Received: from AM5EUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:465:cafe::38) by AS9PR06CA0102.outlook.office365.com (2603:10a6:20b:465::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.8 via Frontend Transport; Tue, 25 Jan 2022 15:09:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT059.mail.protection.outlook.com (10.152.17.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.12 via Frontend Transport; Tue, 25 Jan 2022 15:09:37 +0000 Received: ("Tessian outbound 826a6d8e58c3:v113"); Tue, 25 Jan 2022 15:09:37 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: bf4f932cbbc22e55 X-CR-MTA-TID: 64aa7808 Received: from f6bf28d2becb.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E9645A30-EAD2-481D-A1A0-F6ACB2A75953.1; Tue, 25 Jan 2022 15:09:29 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f6bf28d2becb.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 25 Jan 2022 15:09:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ne48GyD2wkUdTGBPn7cp0mIt9ej57MxG69XQW6DUDbyp4l9BO7wcGQ9Iy/qVVtmAoGU3elzmPRHszi4jyquTW7cNDUxADUYFJeDvf2jtoegr0cOHnPS6WaOPbxwiqkjm4z2+3BmihuUtk/lycQ9p60wOm8p/dXgDfRAmBWztPPmHFikaB8n/ojxUFHj4eB9Xo/WsLwJ+MFy4/0W4DkGhQ3hjQUEL485cv3naMn3Z6RYOP/chrr2jqD8fOpN+g/7G5zjUbWGZ60bcS0JVMrpP67xSiDn1qsQHr5nssr9AZIyh0N/LuJhn5AJjajSmvaDYn71MEe8j3F9VzaBlF25HAg== 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=67nT5bwAOjBc8AC+sVSr8dTrNVtH3lJmXHaTwlb4cq8=; b=I9WnIXjD4tyv4509ZYeK7lKP+0u5qYRpr7AHzHEJRnobQa+D+cf5NzNSJWExtGen3Mg5coSy3VCcF5rWdf/RDEP3GQHGoSQNVqx9dYIPcdICDRz0BCc3SGzlL47yP02+CxFX3JbT2leY5BeMLSTMufIKsXIpT7i5k8sUPP87AGMoBkSEtiCTrGo5Ehjyu61idWprqkGj/behWS6p1LORdqSPnhZkYRKBAk+QPoQCtSxQ1gGpnsnwvZG8QLSemSwvQfxTyk7UnfwdeAZmurPEAqxZzYlFjS+I4ahyqaLjbvqC+DykVr+EkQHj21rjAuAdh8gSi7NDWt//ydvYWPf8Hw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=67nT5bwAOjBc8AC+sVSr8dTrNVtH3lJmXHaTwlb4cq8=; b=0lfp7P9UEWGXvwVGkNcDRwESXsU/87W9iUEi45vbtRZS8d4KZFEH/+gpiy0i+MGpPTNWfubqkqV3EUIAPo1wTM5PYgI2PBvw/R08scqm+I8uwPN5O0wWVrQG2jzMRSo6pdpQfL4Sc0wpMqst1C/UJVzehZ2WPizL3NMIV31Trmw= Received: from AM6PR10CA0051.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:80::28) by VI1PR08MB3696.eurprd08.prod.outlook.com (2603:10a6:803:bf::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.10; Tue, 25 Jan 2022 15:09:28 +0000 Received: from AM5EUR03FT004.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:80:cafe::cb) by AM6PR10CA0051.outlook.office365.com (2603:10a6:209:80::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.10 via Frontend Transport; Tue, 25 Jan 2022 15:09:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT004.mail.protection.outlook.com (10.152.16.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4909.7 via Frontend Transport; Tue, 25 Jan 2022 15:09:28 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Tue, 25 Jan 2022 15:09:27 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.20; Tue, 25 Jan 2022 15:09:26 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2308.20 via Frontend Transport; Tue, 25 Jan 2022 15:09:26 +0000 From: Joey Gouly <joey.gouly@arm.com> To: <linux-arm-kernel@lists.infradead.org> CC: <broonie@kernel.org>, <nd@arm.com>, <catalin.marinas@arm.com>, <joey.gouly@arm.com>, <will@kernel.org> Subject: [PATCH v1 3/7] kselftest/arm64: mte: user_mem: add test with mte tag inside a page Date: Tue, 25 Jan 2022 15:09:16 +0000 Message-ID: <20220125150920.23955-4-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220125150920.23955-1-joey.gouly@arm.com> References: <20220125150920.23955-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 7c26fa1c-18ce-49ff-1d41-08d9e014b431 X-MS-TrafficTypeDiagnostic: VI1PR08MB3696:EE_|AM5EUR03FT059:EE_|DB7PR08MB3050:EE_ X-Microsoft-Antispam-PRVS: <DB7PR08MB30504F100DB75FD5578EE8DA945F9@DB7PR08MB3050.eurprd08.prod.outlook.com> x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:7691;OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 90o6TqpKcZXQ5zJFNkg6cnkIE9clG1kU3dIVZc0lzAaUludALXDoMCdDGkhhPzsaJ7cKQyL2uyPi4qBnN2mFY3BFTXaDzz6yf8ygX7LUJn/Tqx3wjd5K/YTYUe/KKJ8rqzmm+a5Tt1xMfdWTWtgmvqdzCZDjuTL5pBTRu7gQvxL5GFJ0nSoWJeXWxmUn+gwj7U4gtmGENWkxgezEzBWrp9C7aAbv4SazLEV0sBrlJfF7J1i+WXELMoSJi+EFa6KoXCingsih/Ha5dOE96/0w0DEo4AaIz+WzTNM3ylPnrUCeYktq+XIvcmyXxgfQ0tWwhZsxmg3SGiK/0ty7rzzj5Cap3s/UTGoVyHp7KpyB9ZxRp9mpxZEVq2ZxN4tcZ6iCYitHFJbLSPjJwepy6c5myuMBBOujUCHkKYp3sPI4CAXQSj2yJuEwnhcSZQ1UckJQQ+KgBZYxxiMTWiVqz/bydfE6l1QiaShmi/JfCOz1KcXhOoV5A9I6mROqYgR2rwWr82FxMNPQpX/P+HmHvzpPGwlNQKLRIOE/iGBM57MWMvyPao0MKZDwNKacOjHxGBEyltRnENANSi/1Zo8zjo1l6Z2GkqmfPgQ2yvNGafNhFrRBjB/VY3fAC0v0ziAk8nHgOXDm12If5kAHKMNbABW1Z5vVH9nfav97PJXJjFdoDUICkmytFZ6RAbqEyonlZJTM9utsQ2VF2RdUsI9WqI0gQBOvKeLuRswJha8ejGf3g7YFnLVVNkgfCP/S4UCtdGOVR18Em/4jAUDJd8azT6PJBdRZA3UGSEjGukLmnWKLTJk= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(40470700004)(36840700001)(46966006)(8676002)(6666004)(36860700001)(54906003)(8936002)(4326008)(70206006)(426003)(336012)(47076005)(44832011)(316002)(2616005)(86362001)(508600001)(2906002)(7696005)(40460700003)(1076003)(6916009)(81166007)(356005)(26005)(82310400004)(186003)(5660300002)(36756003)(70586007)(83380400001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3696 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 29ff98b7-065f-4d13-a2d4-08d9e014ae7f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: j1GsYi8MDMGYbryxEMKa388VYuxUTy7+f4xsR0ZjASubYzYfuXZYoqSNgU2kvJigwqViCRQ6Kz+T3WPfpNfXaqlKGOJcZg583I4g1gLwWPcs99PcoviyC48C8/LSZJt0CIMS3cut5SKENRBw70JIWE1ZS90lnbA+WvAI87aoGuNUO0sZfttlDmNpwxe5RWK3MQ+BPgyEtoxDYNznRH8CsR5vs8O0KuxsXwOVyugWanNICOMn7kgVEsuIpq2D6Ia2tpFOsAB3RaBTx/Jr3dTN4apGQdcUsO0sj0bv3/Cb99GkJcTYPnaok4Wrd8ozvAb5Z+eKabiH7uQ/LPWxE94BNXEu6xgw/N77qo6P6COTVzJ70kBDfRSDM7fhg0THvo8llit1O3/VT8KJls1sZ1ruEEwAUrs5h3KkX/eGkxAqZB0c8E/4nU+21KiS+dpsIQOjgwse/DahxmUyocxOvBw2FtKQ15gCG7jOS2SKyvAfjCHyAEmr9Arigzq+vEMsmqp1EEq+8JM0GqBTIlRh00ADlE5WxjtMNiMfCJQkOaEpY2p9L70I3eT4V20MkcdLakGyLaMVrKVXmUaXCKATzAzuhFIfY/17cUzkKbtrzirpSaNjYN+2ixesPEYX85CQaakMWCW7WFi0yQ1Idf6UmQgGD3ZbzvVaSa9z8guhCyRpj/kebOHw9bjxa4OQ+ipepsACsp4qA2wEOAPWLh2kolOODqGbW6qDfCmhgmJbOrjV4vt5ongZjhMrj+sz7X6Fj9E5bKQ6ZVtWqgHI9Aakll85kg== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(40470700004)(81166007)(36860700001)(26005)(83380400001)(5660300002)(2616005)(7696005)(6666004)(2906002)(8676002)(4326008)(336012)(6916009)(107886003)(40460700003)(36756003)(82310400004)(1076003)(426003)(44832011)(70206006)(186003)(70586007)(54906003)(316002)(508600001)(86362001)(47076005)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2022 15:09:37.6137 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7c26fa1c-18ce-49ff-1d41-08d9e014b431 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3050 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220125_070945_944003_60613924 X-CRM114-Status: UNSURE ( 9.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
add more tests to MTE kselftests
|
expand
|
diff --git a/tools/testing/selftests/arm64/mte/check_user_mem.c b/tools/testing/selftests/arm64/mte/check_user_mem.c index d33b262ccdb0..3497960851a9 100644 --- a/tools/testing/selftests/arm64/mte/check_user_mem.c +++ b/tools/testing/selftests/arm64/mte/check_user_mem.c @@ -107,7 +107,7 @@ int main(int argc, char *argv[]) mte_register_signal(SIGSEGV, mte_default_handler); /* Set test plan */ - ksft_set_plan(8); + ksft_set_plan(9); evaluate_test(check_usermem_access_fault(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE, page_sz), "Check memory access from kernel in sync mode, private mapping and mmap memory (tag_offset: page_sz)\n"); @@ -129,6 +129,10 @@ int main(int argc, char *argv[]) evaluate_test(check_usermem_access_fault(USE_MMAP, MTE_ASYNC_ERR, MAP_SHARED, MT_GRANULE_SIZE), "Check memory access from kernel in async mode, shared mapping and mmap memory (tag_offset: MT_GRANULE_SIZE)\n"); + // In this test, the tag only covers MT_GRANULE_SIZE. + evaluate_test(check_usermem_access_fault_helper(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE, MT_GRANULE_SIZE, MT_GRANULE_SIZE), + "Check memory access from kernel in sync mode, private mapping and mmap memory (tag_offset: MT_GRANULE_SIZE, tag_len: MT_GRANULE_SIZE)\n"); + mte_restore_setup(); ksft_print_cnts(); return ksft_get_fail_cnt() == 0 ? KSFT_PASS : KSFT_FAIL;
This new test has a tag that is only a single MT_GRANULE_SIZE large. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> --- tools/testing/selftests/arm64/mte/check_user_mem.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)