Re: [PATCH v3 2/3] kunit: Taint the kernel when KUnit tests are run

From: Brendan Higgins
Date: Tue May 17 2022 - 16:59:16 EST


On Fri, May 13, 2022 at 4:32 AM David Gow <davidgow@xxxxxxxxxx> wrote:
>
> Make KUnit trigger the new TAINT_TEST taint when any KUnit test is run.
> Due to KUnit tests not being intended to run on production systems, and
> potentially causing problems (or security issues like leaking kernel
> addresses), the kernel's state should not be considered safe for
> production use after KUnit tests are run.
>
> Signed-off-by: David Gow <davidgow@xxxxxxxxxx>

Reviewed-by: Brendan Higgins <brendanhiggins@xxxxxxxxxx>