Skip to content
Permalink
Browse files
kasan: don't run tests in async mode
Asynchronous KASAN mode doesn't guarantee that a tag fault will be
detected immediately and causes tests to fail. Forbid running them
in asynchronous mode.

Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
  • Loading branch information
xairy authored and intel-lab-lkp committed Feb 11, 2021
1 parent ae25782 commit 0ea84467dcc53cac5c8d4e636c4d6f24e6c58728
Showing 1 changed file with 4 additions and 0 deletions.
@@ -51,6 +51,10 @@ static int kasan_test_init(struct kunit *test)
kunit_err(test, "can't run KASAN tests with KASAN disabled");
return -1;
}
if (kasan_flag_async) {
kunit_err(test, "can't run KASAN tests in async mode");
return -1;
}

multishot = kasan_save_enable_multi_shot();
hw_set_tagging_report_once(false);

0 comments on commit 0ea8446

Please sign in to comment.