What is a tainted kernel
What is a tainted kernel?
The Linux kernel is marked tainted when a specific event happened that could impact reliable troubleshooting of kernel issues.
Linux uses the concept of a tainted kernel when specific events occurred. The word tainted means it is contaminated or polluted. Not in an environmental way, but in the sense that proper troubleshooting is no longer possible. Or not as reliable as one would like it to be.
Running a tainted kernel is not a problem usually. It is just a marker that something happened on the system itself. As long as a system is running stable, then one could accept continuing running in this state.
Causes
There are multiple causes why the kernel was marked as tainted. For example when live patching is used, parts of the kernel are swapped out or redirected. As this would seriously complicate debugging, the kernel marks itself tainted to indicate that reliable troubleshooting is not possible.
Resolving the issue
The easiest and only way to clear the tainted state is a simple reboot of the system.
Before you do the reboot, you may want to know the specific reason why the kernel was tainted in the first place.