aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/kunit/kunit_kernel.py
diff options
context:
space:
mode:
authorDavid Gow <[email protected]>2022-07-01 16:47:43 +0800
committerShuah Khan <[email protected]>2022-07-01 16:38:43 -0600
commitc272612cb4a2f7cde550d35f46cde159a2af0bab (patch)
treebe2fdab3f4a62d84254d8928ee3d06ce44a42576 /tools/testing/kunit/kunit_kernel.py
parent2852ca7fba9f77b204f0fe953b31fadd0057c936 (diff)
kunit: Taint the kernel when KUnit tests are run
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. This both marks KUnit modules as test modules using MODULE_INFO() and manually taints the kernel when tests are run (which catches builtin tests). Acked-by: Luis Chamberlain <[email protected]> Tested-by: Daniel Latypov <[email protected]> Reviewed-by: Brendan Higgins <[email protected]> Signed-off-by: David Gow <[email protected]> Tested-by: MaĆ­ra Canal <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/testing/kunit/kunit_kernel.py')
0 files changed, 0 insertions, 0 deletions