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>
  • Loading branch information
xairy authored and intel-lab-lkp committed Feb 9, 2021
1 parent 7b4b56c commit 53907a0b15724b414ddd9201356f92e09571ef90
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 53907a0

Please sign in to comment.