lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 27 Jul 2021 16:31:03 -0700 From: Bart Van Assche <bvanassche@....org> To: 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 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? Thanks, Bart.
Powered by blists - more mailing lists