linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] kasan: few improvements on kunit tests
@ 2024-11-01 18:40 Sabyrzhan Tasbolatov
  2024-11-01 18:40 ` [PATCH 1/2] kasan: use EXPORT_SYMBOL_IF_KUNIT to export symbols Sabyrzhan Tasbolatov
  2024-11-01 18:40 ` [PATCH 2/2] kasan: change kasan_atomics kunit test as KUNIT_CASE_SLOW Sabyrzhan Tasbolatov
  0 siblings, 2 replies; 5+ messages in thread
From: Sabyrzhan Tasbolatov @ 2024-11-01 18:40 UTC (permalink / raw)
  To: ryabinin.a.a, andreyknvl, elver
  Cc: arnd, glider, dvyukov, vincenzo.frascino, akpm, kasan-dev,
	linux-mm, linux-kernel, snovitoll

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@infradead.org/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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-11-01 23:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-01 18:40 [PATCH 0/2] kasan: few improvements on kunit tests Sabyrzhan Tasbolatov
2024-11-01 18:40 ` [PATCH 1/2] kasan: use EXPORT_SYMBOL_IF_KUNIT to export symbols Sabyrzhan Tasbolatov
2024-11-01 23:38   ` Andrey Konovalov
2024-11-01 18:40 ` [PATCH 2/2] kasan: change kasan_atomics kunit test as KUNIT_CASE_SLOW Sabyrzhan Tasbolatov
2024-11-01 23:38   ` Andrey Konovalov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox