diff options
author | David Gow <[email protected]> | 2022-07-01 16:47:41 +0800 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2022-07-01 16:38:35 -0600 |
commit | 2852ca7fba9f77b204f0fe953b31fadd0057c936 (patch) | |
tree | f1115190292206c03e129a4b5c579e976ff9d03c /scripts/gdb/linux/device.py | |
parent | f2906aa863381afb0015a9eb7fefad885d4e5a56 (diff) |
panic: Taint kernel if tests are run
Most in-kernel tests (such as KUnit tests) are not supposed to run on
production systems: they may do deliberately illegal things to trigger
errors, and have security implications (for example, KUnit assertions
will often deliberately leak kernel addresses).
Add a new taint type, TAINT_TEST to signal that a test has been run.
This will be printed as 'N' (originally for kuNit, as every other
sensible letter was taken.)
This should discourage people from running these tests on production
systems, and to make it easier to tell if tests have been run
accidentally (by loading the wrong configuration, etc.)
Acked-by: Luis Chamberlain <[email protected]>
Reviewed-by: Brendan Higgins <[email protected]>
Signed-off-by: David Gow <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions