Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

of: unittest: taint the kernel when of unittest runs

Make OF unittest trigger the new TAINT_TEST taint when OF unittest runs.
Due to OF unittest 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 OF unittest runs.

Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Link: https://lore.kernel.org/r/20220823200152.3465751-1-frowand.list@gmail.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Frank Rowand and committed by
Rob Herring
59f9072f f1bd8b2e

+3
+3
drivers/of/unittest.c
··· 3467 3467 3468 3468 pr_info("start of unittest - you will see error messages\n"); 3469 3469 3470 + /* Taint the kernel so we know we've run tests. */ 3471 + add_taint(TAINT_TEST, LOCKDEP_STILL_OK); 3472 + 3470 3473 /* adding data for unittest */ 3471 3474 3472 3475 if (IS_ENABLED(CONFIG_UML))