Bug 4778

Summary: lsmod: show all Linux taint kinds
Product: Busybox Reporter: Basil Nutmeg <basil+busybox>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: enhancement CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description Basil Nutmeg 2012-02-20 03:53:13 UTC
check_tainted in modutils/lsmod.c knows only three of the
thirteen taint kinds that current Linux versions define (in
include/linux/kernel.h in Linux).

It would be useful for busybox's lsmod to be able to
display all of the taint kinds. See the comments for
print_tainted in Linux's kernel/panic.c for the mapping
to letters.

I observed this problem in lsmod printing "Tainted: G" on
one of my systems. This was confusing, because the message
suggests that there is some kind of taint, but 'G' just
means there is no proprietary module taint. It took
manual investigation to turn up that the actual taint kind
happened to be TAINT_OOT_MODULE in this case.