On Sat, Nov 26, 2022 at 7:15 PM <andrey.konovalov@xxxxxxxxx> wrote: > > From: Andrey Konovalov <andreyknvl@xxxxxxxxxx> > > After the recent changes done to KUnit-enabled KASAN tests, non-KASAN KUnit > tests stopped being failed when KASAN report is detected. > > Recover that property by failing the currently running non-KASAN KUnit test > when KASAN detects and prints a report for a bad memory access. > > Note that if the bad accesses happened in a kernel thread that doesn't > have a reference to the currently running KUnit-test available via > current->kunit_test, the test won't be failed. This is a limitation of > KUnit, which doesn't yet provide a thread-agnostic way to find the > reference to the currenly running test. > > Fixes: 49d9977ac909 ("kasan: check CONFIG_KASAN_KUNIT_TEST instead of CONFIG_KUNIT") > Fixes: 7f29493ba529 ("kasan: switch kunit tests to console tracepoints") > Signed-off-by: Andrey Konovalov <andreyknvl@xxxxxxxxxx> Hi David, Could you please check whether this patch resolves the issue with non-KASAN KUnit tests for you? Thank you!