Merge tag 'mips_5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
[linux-2.6-microblaze.git] / arch / arm64 / mm / fault.c
index 349c488..9ae24e3 100644 (file)
@@ -309,24 +309,11 @@ static void die_kernel_fault(const char *msg, unsigned long addr,
 static void report_tag_fault(unsigned long addr, unsigned int esr,
                             struct pt_regs *regs)
 {
-       static bool reported;
-       bool is_write;
-
-       if (READ_ONCE(reported))
-               return;
-
-       /*
-        * This is used for KASAN tests and assumes that no MTE faults
-        * happened before running the tests.
-        */
-       if (mte_report_once())
-               WRITE_ONCE(reported, true);
-
        /*
         * SAS bits aren't set for all faults reported in EL1, so we can't
         * find out access size.
         */
-       is_write = !!(esr & ESR_ELx_WNR);
+       bool is_write = !!(esr & ESR_ELx_WNR);
        kasan_report(addr, 0, is_write, regs->pc);
 }
 #else