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

From: Kees Cook
Date: Tue Aug 06 2024 - 15:34:53 EST


On Tue, Aug 06, 2024 at 08:48:43AM -0700, Guenter Roeck wrote:
> Hi,
>
> 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 <vitor@xxxxxxxxxxx>
>
> These tests are failing (at least) for arm-v7, loongarch, and mips
> qemu emulations; see below for failure logs.

Oh my. Good thing this got added to KUnit, then -- the core of the tests
haven't actually changed. I will see what I can uncover.

> Any idea if those might be architecture problems, problems with qemu,
> or problems with the test ?

The last two look like NULL derefs (??) and the first seems like maybe a
test problem (the failure looks kind of like the CONFIG_MMU=n cases that
were fixed earlier).

--
Kees Cook