kasan: switch kunit tests to console tracepoints
authorAndrey Konovalov <andreyknvl@google.com>
Tue, 27 Sep 2022 17:09:09 +0000 (19:09 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 9 Nov 2022 01:37:14 +0000 (17:37 -0800)
commit7ce0ea19d50e4e97a8da69f616ffa8afbb532a93
tree5b75baeb3bd12ee9a282004a779f372c6325485d
parenta5454f95246aa1d3527ef5e128cd3a10bc8371de
kasan: switch kunit tests to console tracepoints

Switch KUnit-compatible KASAN tests from using per-task KUnit resources to
console tracepoints.

This allows for two things:

1. Migrating tests that trigger a KASAN report in the context of a task
   other than current to KUnit framework.
   This is implemented in the patches that follow.

2. Parsing and matching the contents of KASAN reports.
   This is not yet implemented.

Link: https://lkml.kernel.org/r/9345acdd11e953b207b0ed4724ff780e63afeb36.1664298455.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Marco Elver <elver@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/Kconfig.kasan
mm/kasan/kasan.h
mm/kasan/kasan_test.c
mm/kasan/report.c