]> git.baikalelectronics.ru Git - kernel.git/commit
kasan, arm64: tests supports for HW_TAGS async mode
authorAndrey Konovalov <andreyknvl@google.com>
Mon, 15 Mar 2021 13:20:19 +0000 (13:20 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Sun, 11 Apr 2021 09:57:45 +0000 (10:57 +0100)
commita6a4f4641fd9444493c9e01082c9299bf053a756
tree1062ce71ffb0e6a77729fbc3dd1daecadaa01054
parent5cd0365b6ff4c26668db23ef5278f0bf055558a0
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>
arch/arm64/include/asm/memory.h
lib/test_kasan.c
mm/kasan/hw_tags.c
mm/kasan/kasan.h
mm/kasan/report.c