Skip to content

Commit

Permalink
kasan: don't run tests in async mode
Browse files Browse the repository at this point in the history
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 53907a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/test_kasan.c
Expand Up @@ -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);
Expand Down

0 comments on commit 53907a0

Please sign in to comment.