linux/arch
Andrey Konovalov f05842cfb9 kasan, arm64: allow using KUnit tests with HW_TAGS mode
On a high level, this patch allows running KUnit KASAN tests with the
hardware tag-based KASAN mode.

Internally, this change reenables tag checking at the end of each KASAN
test that triggers a tag fault and leads to tag checking being disabled.

Also simplify is_write calculation in report_tag_fault.

With this patch KASAN tests are still failing for the hardware tag-based
mode; fixes come in the next few patches.

[andreyknvl@google.com: export HW_TAGS symbols for KUnit tests]
  Link: https://lkml.kernel.org/r/e7eeb252da408b08f0c81b950a55fb852f92000b.1613155970.git.andreyknvl@google.com

Link: https://linux-review.googlesource.com/id/Id94dc9eccd33b23cda4950be408c27f879e474c8
Link: https://lkml.kernel.org/r/51b23112cf3fd62b8f8e9df81026fa2b15870501.1610733117.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Branislav Rankov <Branislav.Rankov@arm.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Kevin Brodsky <kevin.brodsky@arm.com>
Cc: Marco Elver <elver@google.com>
Cc: Peter Collingbourne <pcc@google.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-02-24 13:38:31 -08:00
..
alpha idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
arc arch: arc: Remove CONFIG_OPROFILE support 2021-01-22 12:12:03 +05:30
arm Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2021-02-23 14:56:23 -08:00
arm64 kasan, arm64: allow using KUnit tests with HW_TAGS mode 2021-02-24 13:38:31 -08:00
csky local64.h: make <asm/local64.h> mandatory 2020-12-29 15:36:49 -08:00
h8300 h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 2021-02-13 11:42:40 -08:00
hexagon hexagon: remove CONFIG_EXPERIMENTAL from defconfigs 2021-02-24 13:38:26 -08:00
ia64 idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
m68k idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
microblaze idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
mips idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
nds32 local64.h: make <asm/local64.h> mandatory 2020-12-29 15:36:49 -08:00
nios2 tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
openrisc openrisc: io: Add missing __iomem annotation to iounmap() 2021-01-20 06:14:26 +09:00
parisc idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
powerpc idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
riscv Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2021-02-20 17:45:32 -08:00
s390 idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
sh idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
sparc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc 2021-02-23 15:09:53 -08:00
um um: irq.h: include <asm-generic/irq.h> 2021-02-12 21:40:14 +01:00
x86 clang-lto for v5.12-rc1 (part2) 2021-02-23 15:13:45 -08:00
xtensa idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
.gitignore
Kconfig clang-lto series for v5.12-rc1 2021-02-23 09:28:51 -08:00