Message ID | 20220301101435.19327-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 CF7A2C433F5 for <linux-arm-kernel@archiver.kernel.org>; Tue, 1 Mar 2022 10:17:29 +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=YyGFOSPd/mpAl71awTAbIbtK5sVUzbpM8204hidpMiw=; b=jOG+2MMfSXoFAh 6ZXgXahcvfFKm0KDdYYwTJLtb0RXIcd308vdt7/NlyCyS4xOstrO97TPcgK/2RTlNsVycDqztMbpm da5KXNPMUznqTceE410SucpVaLF+9kvBwpcekd9NTpTPWtiLJLuprZVvLtZMLw7bboV1K6hFyB5ZL bufLxzqjDfG7a65En8F5zSKZAEw4o7SG7S9TD+sa7TeWXynpIh3nwbbK1b1pN6xrWu1aLO9eLMvf+ l35aQQI0mFsSsQ9P4APL/qatXTfRxGY9aCNFogUMzmHylslr45atFWN54DqVZ8mbYIlB+1qBIglPD cJnJeWtlSAmpWlmScKew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOzXa-00G46O-RR; Tue, 01 Mar 2022 10:15:37 +0000 Received: from mail-am5eur02on0619.outbound.protection.outlook.com ([2a01:111:f400:fe07::619] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOzWx-00G3nu-MU for linux-arm-kernel@lists.infradead.org; Tue, 01 Mar 2022 10:14:58 +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=tR3/0sDMYxOTOD/O0Eeg/m5P1tjYzgmyzCyk31TYl88=; b=2qDTv5KXQFkPbkyk/24+U4sxLq93xDkv5+gmJ5UuY/3SvJCVUZOPh9cXtUmAVJ3v5kUHn9h78ovjjIqzVkebXI/Y3YvTOAUlvQezdLMJLWNiDvpEJj6gW7jWhx5J0IFYiU+kXYqgzcTSqMIqNUYPCgRlodR70GnuY9mPqTHr4WY= Received: from DU2PR04CA0219.eurprd04.prod.outlook.com (2603:10a6:10:2b1::14) by AM9PR08MB6865.eurprd08.prod.outlook.com (2603:10a6:20b:2fe::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.24; Tue, 1 Mar 2022 10:14:49 +0000 Received: from DB5EUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2b1:cafe::56) by DU2PR04CA0219.outlook.office365.com (2603:10a6:10:2b1::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.26 via Frontend Transport; Tue, 1 Mar 2022 10:14:49 +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 DB5EUR03FT018.mail.protection.outlook.com (10.152.20.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22 via Frontend Transport; Tue, 1 Mar 2022 10:14:49 +0000 Received: ("Tessian outbound 741ca6c82739:v113"); Tue, 01 Mar 2022 10:14:49 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 750892313ec4a45b X-CR-MTA-TID: 64aa7808 Received: from c9c8be112a58.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id A862F264-631D-4CF1-98F0-A0FF6A1E31D6.1; Tue, 01 Mar 2022 10:14:43 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c9c8be112a58.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 01 Mar 2022 10:14:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DbBBgbSyIB3P0rvBSDE5gFEPeLEWvFtwLuM0WRg8DjHtbUMW7V1/S+Rbasgz8Dddxulq3LoDYhjUbgmXOKUBLK1otE0m54sH8XE8b72Zo5Ka075qY6UHBVWmhyNSU74ex229wYyO5WTJF3WqNo1WFh+Y9YGv6hqDSfP109+o5zDxD86bKPmw41oNrTPcIlV63WTRkKp+f4ZLbPlEubCxcBWZmlXjGPoqK8+ZCk7oHMQvDAr3VpG6nPKtGueauDgKpRykfI/TOeibs1bVMAFHndybNU00oBeONAYd05Vdria18UWmA70lLjw8OI6GR7EIxojw1JsIf3AHm0CtG3nypA== 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=tR3/0sDMYxOTOD/O0Eeg/m5P1tjYzgmyzCyk31TYl88=; b=C3xzMKUCg221Sh4rfW9pkNAk7awdMc8PSejFj9dojy8RACBhCh6E9VKV3DA+TE57uOMpAFCcVsrsv+5qMe5rc7SOsht0hHRG1cIcmVpVJdH7MFAweZ1Bz+zmAn3TPaop8omNSWDz7wAbs6oPZakKiF39N+NIYJrkvcl+xBGZPjSNdglgAqKqwu1y5KizE/FsO4wNff/a33Ka8BTCio7n7wL1DE8Ne8CCxtKloywaeaZu+iPRmeOqZrbG8KmrencNEP5aTQP4+Ew3SzgZYzJcpEc3OEBm4QYO6aRzA7EASyCN8Qaug32FHx5NDMS1fpVsSZ7qtIn+f47NjSeZu+H9ag== 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=tR3/0sDMYxOTOD/O0Eeg/m5P1tjYzgmyzCyk31TYl88=; b=2qDTv5KXQFkPbkyk/24+U4sxLq93xDkv5+gmJ5UuY/3SvJCVUZOPh9cXtUmAVJ3v5kUHn9h78ovjjIqzVkebXI/Y3YvTOAUlvQezdLMJLWNiDvpEJj6gW7jWhx5J0IFYiU+kXYqgzcTSqMIqNUYPCgRlodR70GnuY9mPqTHr4WY= Received: from DB8P191CA0008.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:130::18) by PAXPR08MB6848.eurprd08.prod.outlook.com (2603:10a6:102:132::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.21; Tue, 1 Mar 2022 10:14:42 +0000 Received: from DB5EUR03FT042.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:130:cafe::fd) by DB8P191CA0008.outlook.office365.com (2603:10a6:10:130::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22 via Frontend Transport; Tue, 1 Mar 2022 10:14:42 +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 DB5EUR03FT042.mail.protection.outlook.com (10.152.21.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5017.22 via Frontend Transport; Tue, 1 Mar 2022 10:14:42 +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; Tue, 1 Mar 2022 10:14:44 +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, 1 Mar 2022 10:14:44 +0000 From: Joey Gouly <joey.gouly@arm.com> To: <linux-arm-kernel@lists.infradead.org> CC: <nd@arm.com>, <catalin.marinas@arm.com>, <joey.gouly@arm.com>, <mark.rutland@arm.com>, <robin.murphy@arm.com>, <will@kernel.org> Subject: [PATCH v2 3/3] Revert "arm64: Mitigate MTE issues with str{n}cmp()" Date: Tue, 1 Mar 2022 10:14:35 +0000 Message-ID: <20220301101435.19327-4-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220301101435.19327-1-joey.gouly@arm.com> References: <20220301101435.19327-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: c2793a87-a85c-4992-a9a0-08d9fb6c51e0 X-MS-TrafficTypeDiagnostic: PAXPR08MB6848:EE_|DB5EUR03FT018:EE_|AM9PR08MB6865:EE_ X-Microsoft-Antispam-PRVS: <AM9PR08MB686573E291A9636F6474345D94029@AM9PR08MB6865.eurprd08.prod.outlook.com> x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: VDECL+Y9YS4Jjui3cf9fBrXtCqKNV/w1X88qzRI9P5sA4LzOd7IE7vWDe1x/4S3FiPXvVpfpj+2AhvuvVD0UOFJ3lbhkFYyVwSqiVeFz+bH1A7usuJ4ahGyOr5qOxDFLXWWtsVgsLcXY319UoRAOkrUtpbzFwTGmFI4nTzxLuS6/lcMQtRGVzofb/bF19qGhTaYrRxMxaZ56umTvVW+U7rbRfepTbhaHynGLAeEO22DHGZIFFm/zRoHQcoIB6+IBkrvsai0q3FCWjmE2Tof53P3qYHkglnIde4yl6Y7fzYoubONEum3n7TC+6dAYPjHYdFagTZ8miOYhcvN6JnptqMdLyFEp0Bkf6J7fVZBU8lepiAKg5cLNzWmUvq6HnC0HxktgynAGbF37jfagS+q5kvbn19mIaIhibeyAFqzzScxwVzWCIZE7A1RIGUC8K/mFoCyl+PnHvJ8Jxij9hlvD+P7g7r/8qLlFr/5aZe1d1lrwB6+NNHSSwGdi+LHyY3S+f204wiDyWGXkVy3cHCBlR2a9syTVynHBDXeojboTwX/x5ks+yEfr2Nm4xU0l59b+FSXhoiO3jZwMOdX5X7nV6fBcZzV6Ndo2R8Vsjl/6IYIKRO7mAyQYPhUSaiWU+yLB1q9KPowwkhHWP509hkRVRdrHBd+KOgvaJTlMf+xjsycJuKtUaYZWRxJU4X7Yu2SHkTIryi8Afg5dkcCaLxBWMw== 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)(46966006)(40470700004)(36840700001)(2906002)(8676002)(70206006)(70586007)(4326008)(508600001)(8936002)(5660300002)(2616005)(1076003)(36756003)(6666004)(54906003)(316002)(6916009)(44832011)(7696005)(81166007)(336012)(47076005)(426003)(186003)(83380400001)(36860700001)(26005)(82310400004)(86362001)(40460700003)(356005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6848 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 1eb90f2e-5e8e-4fd9-9ccc-08d9fb6c4d53 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ALafPFjVdlvopa2szGPvnqcH4Jv+cAytKFDp2Sazuc09oaHtF3dC1hZu0Hqep2fvENTfSv0RNScotNh8HXeaVJGCQhQDYVmkz9rin/+y8eib+ZIoUv0vwuPlKL8ci3KMsaX+i6OwHG+9CLMlDFo37D7mcvwv5zwJLhdq0lc0/1funnxQ1hQKl0fbLDf18kHx6K9hMvtqAh0xUAA1uNOuucS8wNwkUkjBu/3b9lqNnb4XMHQgNec1AaIsq4aneSpPsv/7JOMrVc544S4J54Is9+ktEJVS8iOt0VCkZEQimfWPz2537G7emZfBdnv9f39Hzdrm5b9YusWRGTQOUOhutqebRiBjxDyLjAZpYl6eFKZc7JvhzAN9nNy17WuDcMoml7xmXb80TN8Iay3bboGa9LfpYTs8Q0FE7nkGPAv2xEmzBYnhNt/RcVjSEqUfHbBGfm6bmu31Vmt9ge5XDjA8TQ257MCHL3jctjd95Fb12wAFwxok0IndyHSsTQKZkn1SAE/FVs2+n8MHr1oLVJseUO6vwiom2DzKkY5QeBOcvVrVpc4Q2ErDdA2WMsJOdfEcQRB4vGvm5URB+kzGJff/gsHcRX6NEI2q2r9ewaT1Yv8W1W0F9oHrvLoJhi1Qu1QA93WvHisqwl8ssH59FcprR6j/LB7uALAoURXpQ6oIac9d+BrcS1CHPZVamwabksHx 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)(40470700004)(36840700001)(46966006)(82310400004)(8676002)(8936002)(508600001)(5660300002)(86362001)(4326008)(70586007)(70206006)(54906003)(6916009)(316002)(83380400001)(81166007)(6666004)(7696005)(336012)(36860700001)(47076005)(426003)(40460700003)(2616005)(186003)(107886003)(26005)(1076003)(44832011)(36756003)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2022 10:14:49.8283 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c2793a87-a85c-4992-a9a0-08d9fb6c51e0 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: DB5EUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6865 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220301_021455_804394_F2D4F0B6 X-CRM114-Status: GOOD ( 11.63 ) 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 |
Import Arm Optimized Routines str{n}cmp functions
|
expand
|
diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h index e8bd0af0141c..8df412178efb 100644 --- a/arch/arm64/include/asm/assembler.h +++ b/arch/arm64/include/asm/assembler.h @@ -535,11 +535,6 @@ alternative_endif #define EXPORT_SYMBOL_NOKASAN(name) EXPORT_SYMBOL(name) #endif -#ifdef CONFIG_KASAN_HW_TAGS -#define EXPORT_SYMBOL_NOHWKASAN(name) -#else -#define EXPORT_SYMBOL_NOHWKASAN(name) EXPORT_SYMBOL_NOKASAN(name) -#endif /* * Emit a 64-bit absolute little endian symbol reference in a way that * ensures that it will be resolved at build time, even when building a diff --git a/arch/arm64/include/asm/string.h b/arch/arm64/include/asm/string.h index 95f7686b728d..3a3264ff47b9 100644 --- a/arch/arm64/include/asm/string.h +++ b/arch/arm64/include/asm/string.h @@ -12,13 +12,11 @@ extern char *strrchr(const char *, int c); #define __HAVE_ARCH_STRCHR extern char *strchr(const char *, int c); -#ifndef CONFIG_KASAN_HW_TAGS #define __HAVE_ARCH_STRCMP extern int strcmp(const char *, const char *); #define __HAVE_ARCH_STRNCMP extern int strncmp(const char *, const char *, __kernel_size_t); -#endif #define __HAVE_ARCH_STRLEN extern __kernel_size_t strlen(const char *); diff --git a/arch/arm64/lib/strcmp.S b/arch/arm64/lib/strcmp.S index 758de77afd2f..e6815a3dd265 100644 --- a/arch/arm64/lib/strcmp.S +++ b/arch/arm64/lib/strcmp.S @@ -187,4 +187,4 @@ L(done): ret SYM_FUNC_END_PI(strcmp) -EXPORT_SYMBOL_NOHWKASAN(strcmp) +EXPORT_SYMBOL_NOKASAN(strcmp) diff --git a/arch/arm64/lib/strncmp.S b/arch/arm64/lib/strncmp.S index a4884b97e9a8..bc195cb86693 100644 --- a/arch/arm64/lib/strncmp.S +++ b/arch/arm64/lib/strncmp.S @@ -306,4 +306,4 @@ L(ret0): mov result, #0 ret SYM_FUNC_END_PI(strncmp) -EXPORT_SYMBOL_NOHWKASAN(strncmp) +EXPORT_SYMBOL_NOKASAN(strncmp)