]> git.baikalelectronics.ru Git - kernel.git/commit
of: unittest: taint the kernel when of unittest runs
authorFrank Rowand <frank.rowand@sony.com>
Tue, 23 Aug 2022 20:01:52 +0000 (15:01 -0500)
committerRob Herring <robh@kernel.org>
Thu, 25 Aug 2022 18:59:08 +0000 (13:59 -0500)
commit130612f5f427e36087f01a2f4e364b89d2be87e6
treec062fab40f2a58f3b6d227cfe63dd4d4f6dcf9a1
parentdc8752d9fb80e336dfb0bcad5e7db2ed4f775cf1
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>
drivers/of/unittest.c