• David Gow's avatar
    panic: Taint kernel if tests are run · 2852ca7f
    David Gow authored
    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: default avatarLuis Chamberlain <mcgrof@kernel.org>
    Reviewed-by: default avatarBrendan Higgins <brendanhiggins@google.com>
    Signed-off-by: default avatarDavid Gow <davidgow@google.com>
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    2852ca7f
tainted-kernels.rst 8.38 KB