[0/7] RFC Memory tagging support
Message ID | DB8PR08MB5036AA1C87DAF7E37DB778ED839C0@DB8PR08MB5036.eurprd08.prod.outlook.com |
---|---|
Headers |
Return-Path: <libc-alpha-bounces@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CBACF386F82F; Mon, 15 Jun 2020 18:35:53 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2081.outbound.protection.outlook.com [40.107.22.81]) by sourceware.org (Postfix) with ESMTPS id 6E45E386F809 for <libc-alpha@sourceware.org>; Mon, 15 Jun 2020 18:35:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6E45E386F809 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Wilco.Dijkstra@arm.com 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=quXbzJT90FGL/Rv228fVgeVFuZ38hiXkAnfgoinmS5c=; b=xyPhYLLE86KmPrZGrgVpHYOam5mi9HfXu6s9UgsrFSPGwvbNfrY9BryP00mE+AtVgheerKv1koglVSYifWmV3e4HPhUWd9f6e9uulnDNcHwG6BMO0BWYA8E9Nxy7eve29anIgo78Nz8OU8D8ePzmu7gYOaWbhOQg3o5wqeAmkbM= Received: from AM6P193CA0075.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:88::16) by VI1PR08MB3583.eurprd08.prod.outlook.com (2603:10a6:803:84::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18; Mon, 15 Jun 2020 18:35:49 +0000 Received: from AM5EUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:88:cafe::7c) by AM6P193CA0075.outlook.office365.com (2603:10a6:209:88::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18 via Frontend Transport; Mon, 15 Jun 2020 18:35:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; sourceware.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; sourceware.org; dmarc=bestguesspass 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 AM5EUR03FT018.mail.protection.outlook.com (10.152.16.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18 via Frontend Transport; Mon, 15 Jun 2020 18:35:48 +0000 Received: ("Tessian outbound f590bea98ab4:v59"); Mon, 15 Jun 2020 18:35:48 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 72a2132eab72ead0 X-CR-MTA-TID: 64aa7808 Received: from cb06da492096.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id EA37330E-686C-48F3-A11D-F85D1A715C45.1; Mon, 15 Jun 2020 18:35:43 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id cb06da492096.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 15 Jun 2020 18:35:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kk7Blx6lUVTC0PaEw1kHrlw4naS57HZipfUWZI8Wy7pXn+G/GbnMU3OZPAC9AUpsQBRrsc5cEmZxC5UA4BR4+8TGCQ1Pm7cG2Ms8OhF6oqVScKwA0UpBub5UVUEL3D00NtFSZH60FawZJGUVVplsryJ7aV8Itodv58cZ3P8zLkJhDoloEZKxQMEY2yKga8iIrbnMeEw40ZUIuoW+RomYqP3toh55GCmGoqBVAFZilC7B/P+bCgAJFuFLQx9rIrr3uj0LtlZPTTFj1uJrjj/spL22NmWFRNzsuat44RHJg/wOW9ypwLIhEy6s397kC4ca4bFLF450iuVZs/tgHMwcFA== 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-SenderADCheck; bh=quXbzJT90FGL/Rv228fVgeVFuZ38hiXkAnfgoinmS5c=; b=NUFElsxUeUgrwq1TwcnZTKbLyuMLAWApDZGEblSiKeiGzWLy1Aemwaf8XinE1JVq7C0hbNFZ4TElABB6WVJ5h0n0q5UcaWyxi6xahQiNyqlvLABBSepTE1L+CRoZytFzyqGczSEXibNzI/QhHRjsYMLbJWMW0zYLzzhuXV33w00hWy6pxu1/ah27ESWdctP1SzcmPIbmvm2PiJJ3kqdPIDakTR5bS+Uij8PP6+gCEE1QiZUfgh9y2lz6/O3ZVO9AQ/tLNVdq05jG9mj9F57lraQ006R/oMeR3pY4kqQzCFeckoZhwy9WBZmCGVhS2XCE2eg6nTNnZomEnUaJyRUjEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; 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=quXbzJT90FGL/Rv228fVgeVFuZ38hiXkAnfgoinmS5c=; b=xyPhYLLE86KmPrZGrgVpHYOam5mi9HfXu6s9UgsrFSPGwvbNfrY9BryP00mE+AtVgheerKv1koglVSYifWmV3e4HPhUWd9f6e9uulnDNcHwG6BMO0BWYA8E9Nxy7eve29anIgo78Nz8OU8D8ePzmu7gYOaWbhOQg3o5wqeAmkbM= Received: from DB8PR08MB5036.eurprd08.prod.outlook.com (2603:10a6:10:ed::20) by DB8PR08MB5481.eurprd08.prod.outlook.com (2603:10a6:10:114::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.19; Mon, 15 Jun 2020 18:35:41 +0000 Received: from DB8PR08MB5036.eurprd08.prod.outlook.com ([fe80::40e3:3b43:9af2:d4ff]) by DB8PR08MB5036.eurprd08.prod.outlook.com ([fe80::40e3:3b43:9af2:d4ff%3]) with mapi id 15.20.3088.029; Mon, 15 Jun 2020 18:35:41 +0000 From: Wilco Dijkstra <Wilco.Dijkstra@arm.com> To: "H.J. Lu" <hjl.tools@gmail.com> Subject: [PATCH 0/7] RFC Memory tagging support Thread-Topic: [PATCH 0/7] RFC Memory tagging support Thread-Index: AQHWQ0HrjaVGgZwPU02qNNZe3aRS2w== Date: Mon, 15 Jun 2020 18:35:41 +0000 Message-ID: <DB8PR08MB5036AA1C87DAF7E37DB778ED839C0@DB8PR08MB5036.eurprd08.prod.outlook.com> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [82.24.199.97] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: a871b109-3267-4b27-6eab-08d8115aeca4 x-ms-traffictypediagnostic: DB8PR08MB5481:|VI1PR08MB3583: X-Microsoft-Antispam-PRVS: <VI1PR08MB3583EF39FFDF316F7BBB9D64839C0@VI1PR08MB3583.eurprd08.prod.outlook.com> x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:7691;OLM:7691; x-forefront-prvs: 04359FAD81 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 0P6LueILpAH52YzExGXlXCWlqO1ozodt7TxWGQoU1mLgh2UOvGnZnMUMVHq2eZv4Vxhb1ISXtkBxfcOfV+zZIyY7XKPunUG606Z2ILbUENWyPfcfCtgj1RXD9ECb+vLZs8O4nF1spDgci6l/TzI2c1TwTF8f2hArrclarKQGVEhPS93ENHnUwqiiU25vUQiqOIBq/3uz8D6rQ9+NF6YTx466DVYPf3+qG6xzr4krQPa1WhZz8paE99d+dgGeaTi1w2Qs5DUoePpi9GZyaSqhxG1+MXaUdAyM+lt+YbyMvAhvCeA3lj4tzpnQZKmLYLR3Rc8nFhPD/wbz0KKJxAWhcNyASfVa/JmZWA0J1UeE0lmv9wn+1Jx/QtDySpRF7BxD X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR08MB5036.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(376002)(136003)(39860400002)(396003)(366004)(6506007)(55016002)(9686003)(33656002)(76116006)(4744005)(7696005)(71200400001)(86362001)(316002)(66476007)(66446008)(66946007)(6916009)(66556008)(64756008)(186003)(52536014)(8676002)(5660300002)(2906002)(4326008)(8936002)(478600001)(26005)(473944003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: BWtck4L9C2X30spDl/CDwBec4KwPGp9OytnmYafKeSZX97vDj0+X9xCft51gUK5se8caWvSqRYwG/w+e07rCQ1gq47+9W0rS1PAzgdYCb8wqxQOZ258MHH4sU0FC+AHyBmSQ3064ovHqiBvVQncEdSBOZZWFzyqyGfZkyJmKtfnCdyz4AMXVDc+wqwXpUteprUoey/1udjEOYzdkbfiGN/G/TJ2z6jDEl91Jy8s52fDqy1qI2tWWKE/ln3i/Qhgl4Dzbq1jbaZKYaPqP1AOn9e+0Ph0sOH9oOYLWk4DDRJAKVJQ9K/aJuxjk3vYD+vGsGbueHCjhace4jmMGK32UFyGxRN6r5bEyEBRMTWMtbPW2U0qMEFsiK3emIfryhqZxPmnX2TE/UWJuhTNIXxnBuSb89Rds1Vdj8G0lBCDjGWx7+JdPKpug+3s6rZ/YH0j6K0fGFEjCqevkaQH0KEBARJQQbsUi1WLOvM6V4b2OkyI= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5481 Original-Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT018.eop-EUR03.prod.protection.outlook.com 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; SFTY:; SFS:(4636009)(39860400002)(346002)(136003)(376002)(396003)(46966005)(86362001)(70586007)(336012)(70206006)(81166007)(8676002)(82740400003)(6506007)(52536014)(26005)(8936002)(4326008)(36906005)(82310400002)(5660300002)(7696005)(6862004)(356005)(186003)(33656002)(478600001)(55016002)(316002)(4744005)(2906002)(47076004)(9686003)(473944003); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 510bb9e9-c822-4f92-ae6e-08d8115ae830 X-Forefront-PRVS: 04359FAD81 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Dvvhqz32NT8NmQZCoLCzb5R47s9HqvV3ekZPkjqByVVHAILzmcuWXMyxmCwRQHCXTzDLSHxE7l8N3LVFOkbb1ynepiqk2CUoyg1CCrAOGdkzjZnlyBMhvdsFUx0K8dbUBrJ5bm6xFOq7QASYG2CINlfrp3ldPCIqOsPUEgsMU1bO6f71KnFfebTZPKT82URVa0el7JuaYNZBn0C5D/UZ/qKYC15CORad+Q8I1cOXS10qSXCCdbHUf3aClH9QC/urlW6xD5Ypa+N/C7zKUV84YIJg5mjcz3MO5RkTrSaveGCC/EnvauM/+JUhbrWHrw4rg41a1+oaV/7lWFNNZNM+L1Kks56yqkIKQ6dyKlz/p7JE+2ubocto+aTaG77w7JX7rvqeFDfOAYL8UE7Mv221CBDV6yaAjn3mzp6Jyn4gpFI= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2020 18:35:48.7263 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a871b109-3267-4b27-6eab-08d8115aeca4 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-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3583 X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <http://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <http://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Cc: 'GNU C Library' <libc-alpha@sourceware.org> Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces@sourceware.org> |
Message
Wilco Dijkstra
June 15, 2020, 6:35 p.m. UTC
Hi, > memmove in C has > > rettype > inhibit_loop_to_libcall > MEMMOVE (a1const void *a1, a2const void *a2, size_t len) > { > unsigned long int dstp = (long int) dest; > unsigned long int srcp = (long int) src; > > /* This test makes the forward copying code be used whenever possible. > Reduces the working set. */ > if (dstp - srcp >= len) /* *Unsigned* compare! */ > > How does it work? It's not a problem. If the move does not overlap, the tags may be different, and you do a forward or backward copy depending on the tags (which doesn't matter when there is no overlap!). If the move overlaps and the tags are the same, things work as expected. If the tags are not the same, MTE will trigger an exception. Cheers, Wilco