Re: [PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-22 Thread Vitor Massaru Iha
On Wed, Jul 22, 2020 at 4:45 PM Kees Cook wrote: > > On Wed, Jul 22, 2020 at 03:29:27PM -0300, Vitor Massaru Iha wrote: > > On Tue, Jul 21, 2020 at 11:12 PM Kees Cook wrote: > > > > > > On Tue, Jul 21, 2020 at 07:19:12PM -0300, Vitor Massaru Iha wrote: > > > > When you talk about end-of-test summ

Re: [PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-22 Thread Vitor Massaru Iha
On Wed, Jul 22, 2020 at 4:45 PM Kees Cook wrote: > > On Wed, Jul 22, 2020 at 03:29:27PM -0300, Vitor Massaru Iha wrote: > > On Tue, Jul 21, 2020 at 11:12 PM Kees Cook wrote: > > > > > > On Tue, Jul 21, 2020 at 07:19:12PM -0300, Vitor Massaru Iha wrote: > > > > When you talk about end-of-test summ

Re: [PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-22 Thread Kees Cook
On Wed, Jul 22, 2020 at 03:29:27PM -0300, Vitor Massaru Iha wrote: > On Tue, Jul 21, 2020 at 11:12 PM Kees Cook wrote: > > > > On Tue, Jul 21, 2020 at 07:19:12PM -0300, Vitor Massaru Iha wrote: > > > When you talk about end-of-test summary, is it what is written in > > > dmesg and not the kunit-to

Re: [PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-22 Thread Vitor Massaru Iha
On Tue, Jul 21, 2020 at 11:12 PM Kees Cook wrote: > > On Tue, Jul 21, 2020 at 07:19:12PM -0300, Vitor Massaru Iha wrote: > > When you talk about end-of-test summary, is it what is written in > > dmesg and not the kunit-tool? > > Right, if I build this as a module and do "modprobe user_copy_kunit",

Re: [PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-21 Thread Kees Cook
On Tue, Jul 21, 2020 at 07:19:12PM -0300, Vitor Massaru Iha wrote: > When you talk about end-of-test summary, is it what is written in > dmesg and not the kunit-tool? Right, if I build this as a module and do "modprobe user_copy_kunit", what will show up in dmesg? -- Kees Cook

Re: [PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-21 Thread Vitor Massaru Iha
On Tue, Jul 21, 2020 at 7:19 PM Vitor Massaru Iha wrote: > > On Tue, Jul 21, 2020 at 4:09 PM Kees Cook wrote: > > > > On Tue, Jul 21, 2020 at 02:46:54PM -0300, Vitor Massaru Iha wrote: > > > This adds the conversion of the runtime tests of test_user_copy fuctions, > > > from `lib/test_user_copy.c

Re: [PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-21 Thread Vitor Massaru Iha
On Tue, Jul 21, 2020 at 4:09 PM Kees Cook wrote: > > On Tue, Jul 21, 2020 at 02:46:54PM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the runtime tests of test_user_copy fuctions, > > from `lib/test_user_copy.c`to KUnit tests. > > > > Signed-off-by: Vitor Massaru Iha > > --- > >

Re: [PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-21 Thread Kees Cook
On Tue, Jul 21, 2020 at 02:46:54PM -0300, Vitor Massaru Iha wrote: > This adds the conversion of the runtime tests of test_user_copy fuctions, > from `lib/test_user_copy.c`to KUnit tests. > > Signed-off-by: Vitor Massaru Iha > --- > v2: > * splitted patch in 3: > - Allows to install a

[PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-21 Thread Vitor Massaru Iha
This adds the conversion of the runtime tests of test_user_copy fuctions, from `lib/test_user_copy.c`to KUnit tests. Signed-off-by: Vitor Massaru Iha --- v2: * splitted patch in 3: - Allows to install and load modules in root filesystem; - Provides an userspace memory context