|
Message-ID: <CAG_fn=VVZ1FBygbAeTbdo2U2d2Zga6Z7wVitkqZB0YffCKYzag@mail.gmail.com> Date: Fri, 17 May 2019 17:51:17 +0200 From: Alexander Potapenko <glider@...gle.com> To: Kees Cook <keescook@...omium.org> Cc: Andrew Morton <akpm@...ux-foundation.org>, Christoph Lameter <cl@...ux.com>, Kernel Hardening <kernel-hardening@...ts.openwall.com>, Nick Desaulniers <ndesaulniers@...gle.com>, Kostya Serebryany <kcc@...gle.com>, Dmitry Vyukov <dvyukov@...gle.com>, Sandeep Patil <sspatil@...roid.com>, Laura Abbott <labbott@...hat.com>, Jann Horn <jannh@...gle.com>, Linux Memory Management List <linux-mm@...ck.org>, linux-security-module <linux-security-module@...r.kernel.org> Subject: Re: [PATCH v2 2/4] lib: introduce test_meminit module On Thu, May 16, 2019 at 3:02 AM Kees Cook <keescook@...omium.org> wrote: > > On Tue, May 14, 2019 at 04:35:35PM +0200, Alexander Potapenko wrote: > > Add tests for heap and pagealloc initialization. > > These can be used to check init_on_alloc and init_on_free implementations > > as well as other approaches to initialization. > > This is nice! Easy way to test the results. It might be helpful to show > here what to expect when loading this module: Do you want me to add the expected output to the patch description? > with either init_on_alloc=1 or init_on_free=1, I happily see: > > test_meminit: all 10 tests in test_pages passed > test_meminit: all 40 tests in test_kvmalloc passed > test_meminit: all 20 tests in test_kmemcache passed > test_meminit: all 70 tests passed! > > and without: > > test_meminit: test_pages failed 10 out of 10 times > test_meminit: test_kvmalloc failed 40 out of 40 times > test_meminit: test_kmemcache failed 10 out of 20 times > test_meminit: failures: 60 out of 70 > > > > > > Signed-off-by: Alexander Potapenko <glider@...gle.com> > > Reviewed-by: Kees Cook <keescook@...omium.org> > Tested-by: Kees Cook <keescook@...omium.org> > > note below... > > > [...] > > diff --git a/lib/test_meminit.c b/lib/test_meminit.c > > new file mode 100644 > > index 000000000000..67d759498030 > > --- /dev/null > > +++ b/lib/test_meminit.c > > @@ -0,0 +1,205 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > [...] > > +module_init(test_meminit_init); > > I get a warning at build about missing the license: > > WARNING: modpost: missing MODULE_LICENSE() in lib/test_meminit.o > > So, following the SPDX line, just add: > > MODULE_LICENSE("GPL"); Will do, thanks! > -- > Kees Cook -- Alexander Potapenko Software Engineer Google Germany GmbH Erika-Mann-Straße, 33 80636 München Geschäftsführer: Paul Manicle, Halimah DeLaine Prado Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.