summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/string.h
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@arm.com>2022-03-01 10:14:35 +0000
committerWill Deacon <will@kernel.org>2022-03-07 21:57:02 +0000
commite33c89256e66ba64ce5190c7f2c2741e619c6321 (patch)
treefa838e6f85925b122b2ab419010e5f86ffc4bb4e /arch/arm64/include/asm/string.h
parent387d828adffcf1eb949f3141079c479793c59aac (diff)
Revert "arm64: Mitigate MTE issues with str{n}cmp()"
This reverts commit 59a68d4138086c015ab8241c3267eec5550fbd44. Now that the str{n}cmp functions have been updated to handle MTE properly, the workaround to use the generic functions is no longer needed. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Robin Murphy <robin.murphy@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Acked-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Link: https://lore.kernel.org/r/20220301101435.19327-4-joey.gouly@arm.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm/string.h')
-rw-r--r--arch/arm64/include/asm/string.h2
1 files changed, 0 insertions, 2 deletions
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 *);