Commit e1045c86 authored by Andrey Konovalov's avatar Andrey Konovalov Committed by Vincenzo Frascino
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: default avatarAndrey Konovalov <>
parent 9fb44487
...@@ -51,6 +51,10 @@ static int kasan_test_init(struct kunit *test) ...@@ -51,6 +51,10 @@ static int kasan_test_init(struct kunit *test)
kunit_err(test, "can't run KASAN tests with KASAN disabled"); kunit_err(test, "can't run KASAN tests with KASAN disabled");
return -1; 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(); multishot = kasan_save_enable_multi_shot();
hw_set_tagging_report_once(false); hw_set_tagging_report_once(false);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment