linux/arch
Andrey Konovalov ccc8708bde FROMGIT: kasan, arm64: tests supports for HW_TAGS async mode
This change adds KASAN-KUnit tests support for the async HW_TAGS mode.

In async mode, tag fault aren't being generated synchronously when a
bad access happens, but are instead explicitly checked for by the kernel.

As each KASAN-KUnit test expect a fault to happen before the test is over,
check for faults as a part of the test handler.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Link: https://lore.kernel.org/r/20210315132019.33202-10-vincenzo.frascino@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

Bug: 170327579
Bug: 172318110
(cherry picked from commit e80a76aa1a
 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/
 for-next/mte-async-kernel-mode)
Signed-off-by: Alexander Potapenko <glider@google.com>
Change-Id: I45a6bc351bce937797b1b08e9220a137225f9d55
2021-04-27 10:40:13 +02:00
..
alpha UPSTREAM: arch: move SA_* definitions to generic headers 2021-01-22 10:05:52 -08:00
arc arc: kernel: Return -EFAULT if copy_to_user() fails 2021-04-21 13:00:51 +02:00
arm This is the 5.10.32 stable release 2021-04-22 11:12:08 +02:00
arm64 FROMGIT: kasan, arm64: tests supports for HW_TAGS async mode 2021-04-27 10:40:13 +02:00
c6x Revert "Revert "uaccess: add infrastructure for kernel builds with set_fs()"" 2020-10-28 15:08:39 +01:00
csky Merge 5.10.20 into android12-5.10 2021-03-07 12:33:33 +01:00
h8300 Merge 5.10.17 into android12-5.10 2021-02-18 11:21:01 +01:00
hexagon local64.h: make <asm/local64.h> mandatory 2021-01-12 20:18:16 +01:00
ia64 This is the 5.10.32 stable release 2021-04-22 11:12:08 +02:00
m68k UPSTREAM: arch: move SA_* definitions to generic headers 2021-01-22 10:05:52 -08:00
microblaze local64.h: make <asm/local64.h> mandatory 2021-01-12 20:18:16 +01:00
mips BACKPORT: FROMGIT: hugetlb: pass vma into huge_pte_alloc() and huge_pmd_share() 2021-04-09 15:35:58 -07:00
nds32 nds32: flush_dcache_page: use page_mapping_file to avoid races with swapoff 2021-04-14 08:41:58 +02:00
nios2 nios2: fixed broken sys_clone syscall 2021-03-04 11:38:16 +01:00
openrisc sched/idle: Fix arch_cpu_idle() vs tracing 2020-11-24 16:47:35 +01:00
parisc Merge 5.10.30 into android12-5.10 2021-04-15 14:23:41 +02:00
powerpc BACKPORT: FROMGIT: hugetlb: pass vma into huge_pte_alloc() and huge_pmd_share() 2021-04-09 15:35:58 -07:00
riscv This is the 5.10.32 stable release 2021-04-22 11:12:08 +02:00
s390 Merge 5.10.30 into android12-5.10 2021-04-15 14:23:41 +02:00
sh BACKPORT: FROMGIT: hugetlb: pass vma into huge_pte_alloc() and huge_pmd_share() 2021-04-09 15:35:58 -07:00
sparc BACKPORT: FROMGIT: hugetlb: pass vma into huge_pte_alloc() and huge_pmd_share() 2021-04-09 15:35:58 -07:00
um Merge 5.10.20 into android12-5.10 2021-03-07 12:33:33 +01:00
x86 ANDROID: GKI: Change UCLAMP_BUCKETS_COUNT to 20 2021-04-23 18:42:37 -07:00
xtensa Merge 5.10.28 into android12-5.10 2021-04-09 09:29:17 +02:00
.gitignore
Kconfig ANDROID: Allow HAS_LTO_CLANG with KASAN_HW_TAGS 2021-03-06 01:39:52 +00:00