]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kasan: migrate copy_user_test to kunit
authorSabyrzhan Tasbolatov <snovitoll@gmail.com>
Wed, 16 Oct 2024 13:18:01 +0000 (18:18 +0500)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:11 +0000 (21:29 -0700)
commitd164fbe83622edeeb953291fe55c0555ac105ec9
tree60859b8ce04be7167030b297d7329b59d7ca376b
parente0ca0f2b675edfeafde5f4b285faf328a61b4f20
kasan: migrate copy_user_test to kunit

Migrate the copy_user_test to the KUnit framework to verify out-of-bound
detection via KASAN reports in copy_from_user(), copy_to_user() and their
static functions.

This is the last migrated test in kasan_test_module.c, therefore delete
the file.

Link: https://lkml.kernel.org/r/20241016131802.3115788-3-snovitoll@gmail.com
Signed-off-by: Sabyrzhan Tasbolatov <snovitoll@gmail.com>
Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Alex Shi <alexs@kernel.org>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Hu Haowen <2023002089@link.tyut.edu.cn>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Marco Elver <elver@google.com>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Yanteng Si <siyanteng@loongson.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kasan/Makefile
mm/kasan/kasan_test_c.c
mm/kasan/kasan_test_module.c [deleted file]