[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <afa92312-a667-3597-d937-7e09bac2bb29@infradead.org>
Date: Tue, 27 Jul 2021 16:33:30 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: Bart Van Assche <bvanassche@....org>,
Kees Cook <keescook@...omium.org>,
linux-hardening@...r.kernel.org
Cc: "Gustavo A. R. Silva" <gustavoars@...nel.org>,
Keith Packard <keithpac@...zon.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, linux-wireless@...r.kernel.org,
netdev@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linux-staging@...ts.linux.dev, linux-block@...r.kernel.org,
linux-kbuild@...r.kernel.org, clang-built-linux@...glegroups.com
Subject: Re: [PATCH 33/64] lib: Introduce CONFIG_TEST_MEMCPY
On 7/27/21 4:31 PM, Bart Van Assche wrote:
> On 7/27/21 1:58 PM, Kees Cook wrote:
>> +static int __init test_memcpy_init(void)
>> +{
>> + int err = 0;
>> +
>> + err |= test_memcpy();
>> + err |= test_memmove();
>> + err |= test_memset();
>> +
>> + if (err) {
>> + pr_warn("FAIL!\n");
>> + err = -EINVAL;
>> + } else {
>> + pr_info("all tests passed\n");
>> + }
>> +
>> + return err;
>> +}
>> +
>> +static void __exit test_memcpy_exit(void)
>> +{ }
>> +
>> +module_init(test_memcpy_init);
>> +module_exit(test_memcpy_exit);
>> +MODULE_LICENSE("GPL");
>
> Has it been considered to implement this test using the Kunit framework?
and do we want everything converted to use the Kunit test framework?
My answer is No, we don't, but I could easily be in the minority.
--
~Randy
Powered by blists - more mailing lists