kasan: Extend KASAN mode kernel parameter
authorVincenzo Frascino <vincenzo.frascino@arm.com>
Wed, 6 Oct 2021 15:47:51 +0000 (16:47 +0100)
committerWill Deacon <will@kernel.org>
Thu, 7 Oct 2021 08:30:24 +0000 (09:30 +0100)
commit2d27e585147395316289c63efc932984675c65c2
tree5d82a14908745fa469138792dc6b212859bacdfd
parentec0288369f0cc6d85837a18f1c4c65451c94477b
kasan: Extend KASAN mode kernel parameter

Architectures supported by KASAN_HW_TAGS can provide an asymmetric mode
of execution. On an MTE enabled arm64 hw for example this can be
identified with the asymmetric tagging mode of execution. In particular,
when such a mode is present, the CPU triggers a fault on a tag mismatch
during a load operation and asynchronously updates a register when a tag
mismatch is detected during a store operation.

Extend the KASAN HW execution mode kernel command line parameter to
support asymmetric mode.

Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Konovalov <andreyknvl@gmail.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
Link: https://lore.kernel.org/r/20211006154751.4463-6-vincenzo.frascino@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
Documentation/dev-tools/kasan.rst
lib/test_kasan.c
mm/kasan/hw_tags.c
mm/kasan/kasan.h
mm/kasan/report.c