-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME
57 lines (51 loc) · 2.79 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
tainted - Tool to get the current taint value and print each set bit in
human readable format
(C) 2014 - Nikolay Aleksandrov <[email protected]>
Completely free, no license whatsoever.
The current taint value is extracted from /proc/sys/kernel/tainted
Example:
$ make
cc -c -Wall tainted.c -o tainted.o
cc tainted.o -o tainted
$ ls
Makefile README tainted tainted.c tainted.o
$ ./tainted -h
./tainted [-hi]
Without command-line options this tool will print
the current taint value with information about
each set bit.
h - this help
i - print information about the different taint bits
$ ./tainted
Taint value: 12289
[bit] [bit value] [description]
0 1 A module with a non-GPL license has been loaded, this
includes modules with no license.
Set by modutils >= 2.4.9 and module-init-tools
12 4096 An out-of-tree module has been loaded
13 8192 An unsigned module has been loaded in a kernel supporting
module signature
$ ./tainted -i
[bit] [bit value] [description]
0 1 A module with a non-GPL license has been loaded, this
includes modules with no license.
Set by modutils >= 2.4.9 and module-init-tools
1 2 A module was force loaded by insmod -f
2 4 Unsafe SMP processors: SMP with CPUs not designed for SMP
3 8 A module was forcibly unloaded from the system by rmmod -f
4 16 A hardware machine check error occurred on the system
5 32 A bad page was discovered on the system
6 64 The user has asked that the system be marked "tainted". This
could be because they are running software that directly
modifies the hardware, or for other reasons
7 128 The system has died
8 256 The ACPI DSDT has been overridden with one supplied by the
user instead of using the one provided by the hardware
9 512 A kernel warning has occurred
10 1024 A module from drivers/staging was loaded
11 2048 The system is working around a severe firmware bug
12 4096 An out-of-tree module has been loaded
13 8192 An unsigned module has been loaded in a kernel supporting
module signature
14 16384 A soft lockup has previously occurred on the system
15 32768 The kernel has been live patched