arm64: mte: Enable TCO in functions that can read beyond buffer limits
[linux-2.6-microblaze.git] / arch / arm64 / include / asm / word-at-a-time.h
index 3333950..c62d9fa 100644 (file)
@@ -55,6 +55,8 @@ static inline unsigned long load_unaligned_zeropad(const void *addr)
 {
        unsigned long ret, offset;
 
+       __uaccess_enable_tco_async();
+
        /* Load word from unaligned pointer addr */
        asm(
        "1:     ldr     %0, %3\n"
@@ -76,6 +78,8 @@ static inline unsigned long load_unaligned_zeropad(const void *addr)
        : "=&r" (ret), "=&r" (offset)
        : "r" (addr), "Q" (*(unsigned long *)addr));
 
+       __uaccess_disable_tco_async();
+
        return ret;
 }