当我们使用insmod插入自己编译的内核的时候,通过dmesg查看日志信息经常会看到类似的语句
1、Tainted
这个是污染的意思,就是自己编译的内核,不是系统内部认可的,但是一般不影响正常使用。
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.
2、insmod Tainted: P OE -
这里有17个占位,填写空格或对应的字母,1-17占位字符是GPFSRMBUDAWCIOELK ,上面的例子是 第一个空格,第2个P,第3-13是空格,第14-15是OE,第16-17是空格。
具体每一个字母的含义可以参考官方文档:
字符含义