kasan, arm64: add arch_suppress_tag_checks_start/stop
authorAndrey Konovalov <andreyknvl@google.com>
Wed, 29 Mar 2023 18:37:47 +0000 (20:37 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:18 +0000 (16:02 -0700)
drop __ from mte_disable/enable_tco names, as those functions are to be
exported to KASAN code

Link: https://lkml.kernel.org/r/7ad5e5a9db79e3aba08d8f43aca24350b04080f6.1680114854.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Marco Elver <elver@google.com>
Cc: Peter Collingbourne <pcc@google.com>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Weizhao Ouyang <ouyangweizhao@zeku.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/arm64/include/asm/memory.h

index 26bd4d9aa401695cf17c18a66d2c3e5ce2c682de..05e42bd3555f3e893e47f71e8c410e4c8cd49ed9 100644 (file)
@@ -264,8 +264,8 @@ static inline const void *__tag_set(const void *addr, u8 tag)
 #define arch_enable_tag_checks_sync()          mte_enable_kernel_sync()
 #define arch_enable_tag_checks_async()         mte_enable_kernel_async()
 #define arch_enable_tag_checks_asymm()         mte_enable_kernel_asymm()
-#define arch_suppress_tag_checks_start()       __mte_enable_tco()
-#define arch_suppress_tag_checks_stop()                __mte_disable_tco()
+#define arch_suppress_tag_checks_start()       mte_enable_tco()
+#define arch_suppress_tag_checks_stop()                mte_disable_tco()
 #define arch_force_async_tag_fault()           mte_check_tfsr_exit()
 #define arch_get_random_tag()                  mte_get_random_tag()
 #define arch_get_mem_tag(addr)                 mte_get_mem_tag(addr)