Skip to content

Commit 1857099

Browse files
novitollakpm00
authored andcommitted
kasan: change kasan_atomics kunit test as KUNIT_CASE_SLOW
During running KASAN Kunit tests with CONFIG_KASAN enabled, the following "warning" is reported by kunit framework: # kasan_atomics: Test should be marked slow (runtime: 2.604703115s) It took 2.6 seconds on my PC (Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz), apparently, due to multiple atomic checks in kasan_atomics_helper(). Let's mark it with KUNIT_CASE_SLOW which reports now as: # kasan_atomics.speed: slow Link: https://lkml.kernel.org/r/20241101184011.3369247-3-snovitoll@gmail.com Signed-off-by: Sabyrzhan Tasbolatov <snovitoll@gmail.com> Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com> Cc: Andrey Konovalov <andreyknvl@gmail.com> Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Marco Elver <elver@google.com> Cc: Vincenzo Frascino <vincenzo.frascino@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent c28432a commit 1857099

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mm/kasan/kasan_test_c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,7 @@ static struct kunit_case kasan_kunit_test_cases[] = {
20752075
KUNIT_CASE(kasan_strings),
20762076
KUNIT_CASE(kasan_bitops_generic),
20772077
KUNIT_CASE(kasan_bitops_tags),
2078-
KUNIT_CASE(kasan_atomics),
2078+
KUNIT_CASE_SLOW(kasan_atomics),
20792079
KUNIT_CASE(vmalloc_helpers_tags),
20802080
KUNIT_CASE(vmalloc_oob),
20812081
KUNIT_CASE(vmap_tags),

0 commit comments

Comments
 (0)