Re: [PATCH RESEND v3 2/3] kasan: migrate copy_user_test to kunit
From: Andrew Morton
Date: Mon Oct 14 2024 - 19:10:53 EST
On Mon, 14 Oct 2024 07:57:00 +0500 Sabyrzhan Tasbolatov <snovitoll@xxxxxxxxx> wrote:
> 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.
>
x86_64 allmodconfig produces:
vmlinux.o: warning: objtool: strncpy_from_user+0x8a: call to __check_object_size() with UACCESS enabled