What does kernel tainted mean?
Michael Henderson
Published Feb 08, 2026
What does kernel tainted mean?
The primary reason for the ‘Tainted: ‘ string is to tell kernel debuggers if this is a clean kernel or if anything unusual has occurred. Tainting is permanent: even if an offending module is unloaded, the tainted value remains to indicate that the kernel is not trustworthy.
What causes tainted kernel?
The use of a proprietary (or non-GPL-compatible) kernel module—this is the most common cause of tainted kernels and usually results from loading proprietary NVIDIA or AMD video drivers. The use of staging drivers, which are part of the kernel source code but are not fully tested.
How do I know if my kernel is tainted?
To know if a running kernel is tainted or not, check the numerical value in the file /proc/sys/kernel/tainted. Non-zero if the kernel has been tainted. Numeric values, which can be checked: 1 – A module with a non-GPL license has been loaded, this includes modules with no license.
How does a kernel store taint States?
As an example, the taint state is set when a machine check exception (MCE) has been raised, indicating a hardware related problem has occurred. Once the tainted state of a running kernel has been set, it cannot be unset other than by reloading the kernel, that is by shutting down and then restarting the system.
What is Hung_task_timeout_secs?
hung_task_timeout_secs: When a task in D state did not get scheduled for more than this value report a warning. This file shows up if CONFIG_DETECT_HUNG_TASK is enabled. 0: means infinite timeout – no checking done. Possible values to set are in range {0..
What does Lsmod do in Linux?
lsmod command is used to display the status of modules in the Linux kernel. It results in a list of loaded modules. lsmod is a trivial program which nicely formats the contents of the /proc/modules , showing what kernel modules are currently loaded.
What is out of tree kernel module?
The modules that can be generated while building the kernel package are called in-tree (because the source code lives in the kernel source tree). These out-of-tree modules must be built against the specific kernel source code, that your target device is using, and this is a challenge on its own.
What is VM Dirty_ratio?
dirty_background_ratio is the percentage of system memory which when dirty, causes the system to start writing data to the disk. vm. dirty_ratio is the percentage of system memory which when dirty, causes the process doing writes to block and write out dirty pages to the disk.
What is hung task?
By Saket Jain Published July 8, 2021 Linux/Unix. The hung task is detected by linux kernel by parsing processes with uninterruptible sleep state(which are waiting for some event or resource and is usually not going to move forward) for long time and which are stalled into this D state.
What does rmmod command do in Linux?
rmmod command in Linux system is used to remove a module from the kernel. Most of the users still use modprobe with the -r option instead of using rmmod.
What does Uname mean in Linux?
unix name
uname (short for unix name) is a computer program in Unix and Unix-like computer operating systems that prints the name, version and other details about the current machine and the operating system running on it.
What is make Modules_install?
sudo make modules_install is a step in building your own Linux kernel. Many parts of the kernel can be built into the k. This is a command you’d run once you’ve build the Linux kernel to install the parts of the kernel that you had built as modules instead of being built into the kernel.
How to decode other letters in a tainted kernel?
To decode other letters use the table below. At runtime, you can query the tainted state by reading cat /proc/sys/kernel/tainted. If that returns 0, the kernel is not tainted; any other number indicates the reasons why it is.
What does the string tainted mean in Linux?
The primary reason for the ‘Tainted: ‘ string is to tell kernel debuggers if this is a clean kernel or if anything unusual has occurred. Tainting is permanent: even if an offending module is unloaded, the tainted value remains to indicate that the kernel is not trustworthy.
What is kernel taint and is it dangerous?
In most cases involving proprietary drivers, you can safely ignore the taint condition, but some scenarios which cause the kernel to become tainted may be indicative of serious system problems. The feature is intended to identify conditions which may make it difficult to properly troubleshoot a kernel problem.