Message ID | 20220203143620.30629-1-joey.gouly@arm.com (mailing list archive) |
---|---|
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 3062EC433FE for <linux-arm-kernel@archiver.kernel.org>; Thu, 3 Feb 2022 14:38:42 +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: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:In-Reply-To:References: List-Owner; bh=cwtFQUAEYhqzcgO05SlKMSUkKZ6xbDcdi/uUks/U07A=; b=qtaf4xNslmpp37 3Bxv8v+t633PRsOW4GCFy9LlUPbJRhc1NFuU+xF5955It0HquQgcpnL9yJY4HEbuWxX8gcUpSJ1q9 yUSoFM9PcnqMeq6MNKyjkVx0kuq5mcuUj5YljVkjDcwP8HAMLb+H4mXOOItYX4v9o/8m3Igg3HiHW Pb5PNV8WZBDTTN2XBuLPskbaIDxpU6QDRbQ7xskGUE6bunNHTFv4LSvtjVhvfUAGGHJCDGzPQs5/p 2OlnbYF/+B+/GykjByWvpHG+p5r+pQDOrPRp7pcnWZpG3UiiurcfnYnQKd8fKgGCxOAYsobR9nsQf Zy+lW/ETCmvmmtWcEsDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFdEO-001e1L-Oh; Thu, 03 Feb 2022 14:37:05 +0000 Received: from mail-ve1eur01on0607.outbound.protection.outlook.com ([2a01:111:f400:fe1f::607] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFdE7-001duv-Kw for linux-arm-kernel@lists.infradead.org; Thu, 03 Feb 2022 14:36:50 +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=6jjPqSFi1HwU4xiyJvXK5dHyi3t3x9L49qDAHQpnP+A=; b=AbsBxr3rB4+HrqEzYnxzp4k3RAEnRLejnhikbGISskUdieOepLMQR3RdrmgHx/uD7PI/3kEiL3YXa4hRv8bvU9G7rT2z/fW9Q4fh715alUd6Jr4TL7A6AqvPbwQvudRA9NGa2QXl8pPcabzITMoCncGMNozn/blD9ClXOFm5324= Received: from DB6PR0601CA0025.eurprd06.prod.outlook.com (2603:10a6:4:17::11) by VI1PR08MB3838.eurprd08.prod.outlook.com (2603:10a6:803:b8::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.17; Thu, 3 Feb 2022 14:36:41 +0000 Received: from DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:17:cafe::8b) by DB6PR0601CA0025.outlook.office365.com (2603:10a6:4:17::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12 via Frontend Transport; Thu, 3 Feb 2022 14:36:40 +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 DB5EUR03FT038.mail.protection.outlook.com (10.152.21.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12 via Frontend Transport; Thu, 3 Feb 2022 14:36:40 +0000 Received: ("Tessian outbound 63bb5eb69ee8:v113"); Thu, 03 Feb 2022 14:36:40 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 703266082cdc82ba X-CR-MTA-TID: 64aa7808 Received: from ec4ee2e91528.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7E0A1F05-3313-4472-9E86-B3C2B4A57A51.1; Thu, 03 Feb 2022 14:36:33 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id ec4ee2e91528.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 03 Feb 2022 14:36:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f5+DdqvVnx0ueW8+MO8P8JneTjy/d5J9PARqffGCV2ZCezEQkJfcYyM9yl168pcqnydEXiyCT6qbJ8oHhS7gkBqtorrgr8vulZmsyLaLZjAGJqauXqRQwNHbWBZrPzLhh3llL2R3HcABQPIovisi0JYCYEjQePMXhpMY6Md2N3sSlZL/XQFGKYYAPd16K/zepg8qnKMAxzStJUXrvxQTqlWAnUf4T1uoTlSG6U5YUC1/KCMEGw3eDrs2G42Pln3KAbnZflbnq/+1b2NCR0T629UarM5DZV7st4MGg0kqy32yf4dH2D//NtRGTVH3npAcul6mNQwcsdq6D2jSLFnlKA== 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=6jjPqSFi1HwU4xiyJvXK5dHyi3t3x9L49qDAHQpnP+A=; b=b4u4l9SUnKC3nD+zeo4Y8uzyEYCX+vLZ1Ift5bdG68DFwRDFrJqVTRDjWYCihPJeX9wjcyYg2O+tmy6FkkF+Ue8c4j45YJIxe82BSSW7l2+n691lXthTU7ahBvgovrfIog0Z8pXuoUIt+oSjecllMLJ2aObVF2knMjr9VN5kCHiD2R+iNYL6YqKuZZZy8lmxtkTmuVpXTasm/H1e0Q0hlHA7uEdyKh3xbywc652fP6h8YkxXgJxO5Hvk+s+pA4WNDhP4jK63zLfFxvvBMohJQnJv1QTOg0RXGD38VBqG38p1qV1GWYE8TU82aVpI8d9fNg4D33VpbT0nWFpQlBhFAg== 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=6jjPqSFi1HwU4xiyJvXK5dHyi3t3x9L49qDAHQpnP+A=; b=AbsBxr3rB4+HrqEzYnxzp4k3RAEnRLejnhikbGISskUdieOepLMQR3RdrmgHx/uD7PI/3kEiL3YXa4hRv8bvU9G7rT2z/fW9Q4fh715alUd6Jr4TL7A6AqvPbwQvudRA9NGa2QXl8pPcabzITMoCncGMNozn/blD9ClXOFm5324= Received: from AM6PR08CA0001.eurprd08.prod.outlook.com (2603:10a6:20b:b2::13) by DB6PR08MB2664.eurprd08.prod.outlook.com (2603:10a6:6:20::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.19; Thu, 3 Feb 2022 14:36:30 +0000 Received: from AM5EUR03FT040.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:b2:cafe::be) by AM6PR08CA0001.outlook.office365.com (2603:10a6:20b:b2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.11 via Frontend Transport; Thu, 3 Feb 2022 14:36:30 +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 AM5EUR03FT040.mail.protection.outlook.com (10.152.17.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4951.12 via Frontend Transport; Thu, 3 Feb 2022 14:36:30 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Thu, 3 Feb 2022 14:36:31 +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; Thu, 3 Feb 2022 14:36:31 +0000 From: Joey Gouly <joey.gouly@arm.com> To: <linux-arm-kernel@lists.infradead.org> CC: <nd@arm.com>, <broonie@kernel.org>, <catalin.marinas@arm.com>, <joey.gouly@arm.com>, <shuah@kernel.org>, <will@kernel.org> Subject: [PATCH v2 0/6] add more tests to MTE kselftests Date: Thu, 3 Feb 2022 14:36:14 +0000 Message-ID: <20220203143620.30629-1-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 35b5db9c-4900-4502-44c7-08d9e72297b2 X-MS-TrafficTypeDiagnostic: DB6PR08MB2664:EE_|DB5EUR03FT038:EE_|VI1PR08MB3838:EE_ X-Microsoft-Antispam-PRVS: <VI1PR08MB383856FC4C2EE7289D3A796894289@VI1PR08MB3838.eurprd08.prod.outlook.com> x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:8273;OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: NEKhe6irtutDmMVpOaxQTQn68mLt6LCp0QWSoiifNXULY8Ae7jQTz7wbUJO8CbAAkkZ7SFOQIna2NSlMRhMVSFF+JIKj+jAtkzrZlj2rJ5amhBYs3Xc2M6+RY45sBeDMKwffi/isZ5Z6wTWP8nJFxgdHsOHl7yW9xh6BFzCTnm13/hIPHZVvx7290D5PrjRepLibFgiuv0m0t8U9fNWTYZn8j5eF9QwWxbqZlXMgS0D96GwIq/smgo2WJYXnYKdoOu3AKwLyYtFM8BnMZ8zzk4LvyrTrAVaMf7PJMhipHWl+ufdnrgzBNkfGe+lbSS9/TbtjKpyFRseWYaKiVuudQDNLiixKYeeEFuUL8X9ywTXdmq6OcRiSZRnumqoxEy1wSjKd0v/c3qJ0Y5ra5XpRK0B3mNz+G/8L3Wf31Yo12vKyNTYia5qfqVI6Bs5sAwU7J9BHPS3fPSjKHQVC5cKq75ovtuxh3b2VO99do4F/VUZxD5DIhTTxzoVUfGzqmmxhZQaMxCxXg72rz0/vXaV27pG0i/cswMJd6sREUyZkfIoSVAEm23wCXWYLxfKaZ+e+RYxTNB5igJbAVNFOEm2+zf6CGKca6UB7XEo3895FfDHv9qVAfMEhk9nHCeh1EoKcD9dBELqUrkEqNmaXzoj0ZsxsSg7z0KOTRrNXNMrUc4xrj1qM4pkAhnRD69imLQFpOH2LJFfU54Y+f8bcG+nopvfoUXUUTralOBxpxQqvXahcno4WZ8jdFcxtbZrDcp+4CdXXjNYVNQajP6FSEc9f10PfSYvRqM0LH+7EZybFbSMz04e+9PNyPyYlgzTf624U2GisTzjyuCqY3/JGIv3fLA== 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:(13230001)(4636009)(36840700001)(46966006)(40470700004)(336012)(82310400004)(4326008)(426003)(26005)(8936002)(7696005)(40460700003)(2616005)(1076003)(36756003)(8676002)(6666004)(186003)(44832011)(86362001)(5660300002)(2906002)(70586007)(70206006)(36860700001)(54906003)(316002)(47076005)(966005)(356005)(83380400001)(81166007)(6916009)(508600001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR08MB2664 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 3a6a978e-16f1-4f00-db9d-08d9e7229166 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uOPEZGmlErvfO6CLlQevRwOhMPcoxYAlOp314B84hA0pJ6UWjYokprdFsO4o0uK6RGq9RDsA7Xs9U0xPsiUWDhj51Vx3EtsbUcTgSrZqKIjniss19R4H5FjFy7pvLKUWv4ElOjkscHTS6d8KyA1D10B9Ecflp45zmg86IeEF5WrY7Vc6nAMXTIZ3w1fdUc/qU2jNEL2B3z6A1oUxe0N10bLG/bQKEA60UwGUmLHW4bf0UvCBHD+DEbzq+GpFdPn/bt/E5akTl+D+4/abAEL6x0/yB5juSgHjWLbg13wVDhp9PTMbTiTtRkQv8loxgaKe31dKMppAxyrmphKaNGUg91ZKEWDRKFw+ov/3X63qLBGuoC977aw17sc8CpMVwQFYUB8YWPrV3iuexkOBIW117TGEYxgQXoJByS/E7dsxXlkbJwXlyQ3djrGhNv6cSAxTProcHot5Tjh4h68RbW4ySdFDo94lKiYdo6sYEB/v3fLhj0DMbrN3+tax9uYCZ3YEjEK8hRqFtmF5idDuSawha97yfW0iTxAXTtYcVB6mY+RYsxJ3An6/r43CLWi30Ko9CjowY+QlWo9EdDkNCfp3t5KDioaSlxEL1QdP4ijKtk0YcNZzemqBR4Xtyu3TOakdaMUx1ji1xqChqbWxwR6A+JKb21UsMNirLoXjScTMFJm5XZsHTTqEa81yvKtPjc+X1f9YWqT2umhh4BwYofVWCQUbcxdj2Y7uWgqTue+GaDhyAuhqISXxqgSN+wfzJx6Xu1ok86cXJUANlsyMHgIARYeOZhwPY/hKFxAJAvHHoCig19d/JBGXqZ69gSkn0CFi 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:(13230001)(4636009)(36840700001)(40470700004)(46966006)(47076005)(44832011)(83380400001)(86362001)(70206006)(8936002)(508600001)(8676002)(316002)(36756003)(6916009)(4326008)(966005)(54906003)(2616005)(1076003)(6666004)(426003)(336012)(107886003)(70586007)(82310400004)(81166007)(7696005)(5660300002)(36860700001)(2906002)(186003)(40460700003)(26005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2022 14:36:40.9582 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 35b5db9c-4900-4502-44c7-08d9e72297b2 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: DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3838 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220203_063647_718473_D990E4C5 X-CRM114-Status: UNSURE ( 6.88 ) 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
|
On Thu, Feb 03, 2022 at 02:36:14PM +0000, Joey Gouly wrote: > This is a series which refactors and then adds some extra tests for MTE > in the kselftest framework. > > The issue that these tests are for was was fixed by Robin in > 295cf156231c ("arm64: Avoid premature usercopy failure") and based on a > simplified example by Catalin [1]. Reviewed-by: Mark Brown <broonie@kernel.org> Tested-by: Mark Brown <broonie@kernel.org>
On 2/3/22 7:36 AM, Joey Gouly wrote: > This is a series which refactors and then adds some extra tests for MTE > in the kselftest framework. > > The issue that these tests are for was was fixed by Robin in > 295cf156231c ("arm64: Avoid premature usercopy failure") and based on a > simplified example by Catalin [1]. > > They test some combinations of pointer offsets, sizes and syscalls to > exercise different paths in the kernel. > > Changes since v1 [2]: > - add a page_sz to the tests, for non-4K kernels > - use loops to generate more tests and avoid long lines > > Thanks, > Joey > > [1] https://lore.kernel.org/all/20210624150911.GA25097@arm.com/ > [2] https://lore.kernel.org/linux-arm-kernel/20220125150920.23955-1-joey.gouly@arm.com/ > > Joey Gouly (6): > kselftest/arm64: mte: user_mem: introduce tag_offset and tag_len > kselftest/arm64: mte: user_mem: rework error handling > kselftest/arm64: mte: user_mem: check different offsets and sizes > kselftest/arm64: mte: user_mem: add test type enum > kselftest/arm64: mte: user_mem: add more test types > kselftest/arm64: mte: user_mem: test more combinations of values > > .../selftests/arm64/mte/check_user_mem.c | 196 +++++++++++++++--- > 1 file changed, 162 insertions(+), 34 deletions(-) > Just noticed that these patches aren't cc'ed to linux-kselftest list. Please do so when you sen v2. thanks, -- Shuah