This patch series addresses the issue [1] with KASAN symbols used in the Kunit test, but exported as EXPORT_SYMBOL_GPL. Also a small tweak of marking kasan_atomics() as KUNIT_CASE_SLOW to avoid kunit report that the test should be marked as slow. Both patches have been tested on (CONFIG_KASAN_KUNIT_TEST=y): - x86_64: CONFIG_KASAN=y - arm64: CONFIG_KASAN_HW_TAGS=y [1] https://lore.kernel.org/linux-mm/ZxigQIF59s3_h5PS@xxxxxxxxxxxxx/T/ EXPORT_SYMBOL_IF_KUNIT Sabyrzhan Tasbolatov (2): kasan: use EXPORT_SYMBOL_IF_KUNIT to export symbols for kunit tests kasan: change kasan_atomics kunit test as KUNIT_CASE_SLOW mm/kasan/hw_tags.c | 7 ++++--- mm/kasan/kasan_test_c.c | 4 +++- mm/kasan/report.c | 17 +++++++++-------- 3 files changed, 16 insertions(+), 12 deletions(-) -- 2.34.1