* Tainted lsmod output @ 2005-09-12 18:21 Márcio Oliveira 2005-09-12 18:30 ` Randy.Dunlap 0 siblings, 1 reply; 10+ messages in thread From: Márcio Oliveira @ 2005-09-12 18:21 UTC (permalink / raw) To: linux-kernel; +Cc: Marcio Oliveira Hi there, Anybody knows why lsmod command shows the fields "Tainted" and "Not Tainted" and what means the "P", "PF" and other letter showed in front of this field? Thanks a lot. Márcio ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Tainted lsmod output 2005-09-12 18:21 Tainted lsmod output Márcio Oliveira @ 2005-09-12 18:30 ` Randy.Dunlap 2005-09-12 19:43 ` Hugh Dickins 0 siblings, 1 reply; 10+ messages in thread From: Randy.Dunlap @ 2005-09-12 18:30 UTC (permalink / raw) To: Márcio Oliveira; +Cc: linux-kernel On Mon, 12 Sep 2005, Márcio Oliveira wrote: > Hi there, > > Anybody knows why lsmod command shows the fields "Tainted" and "Not > Tainted" and what means the "P", "PF" and other letter showed in front > of this field? > > Thanks a lot. There's a patch for these in current -mm. For now, you can read kernel/panic.c comments: * 'P' - Proprietary module has been loaded. * 'F' - Module has been forcibly loaded. * 'S' - SMP with CPUs not designed for SMP. * 'R' - User forced a module unload. * 'M' - Machine had a machine check experience. * 'B' - System has hit bad_page. -- ~Randy ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Tainted lsmod output 2005-09-12 18:30 ` Randy.Dunlap @ 2005-09-12 19:43 ` Hugh Dickins 2005-09-12 19:54 ` Randy.Dunlap 0 siblings, 1 reply; 10+ messages in thread From: Hugh Dickins @ 2005-09-12 19:43 UTC (permalink / raw) To: Randy.Dunlap; +Cc: Márcio Oliveira, linux-kernel On Mon, 12 Sep 2005, Randy.Dunlap wrote: > > * 'P' - Proprietary module has been loaded. > * 'F' - Module has been forcibly loaded. > * 'S' - SMP with CPUs not designed for SMP. > * 'R' - User forced a module unload. > * 'M' - Machine had a machine check experience. > * 'B' - System has hit bad_page. The one that puzzles me greatly isn't listed there: 'G' Hugh ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Tainted lsmod output 2005-09-12 19:43 ` Hugh Dickins @ 2005-09-12 19:54 ` Randy.Dunlap 2005-09-12 19:58 ` Hugh Dickins 0 siblings, 1 reply; 10+ messages in thread From: Randy.Dunlap @ 2005-09-12 19:54 UTC (permalink / raw) To: Hugh Dickins; +Cc: Randy.Dunlap, Márcio Oliveira, linux-kernel On Mon, 12 Sep 2005, Hugh Dickins wrote: > On Mon, 12 Sep 2005, Randy.Dunlap wrote: > > > > * 'P' - Proprietary module has been loaded. > > * 'F' - Module has been forcibly loaded. > > * 'S' - SMP with CPUs not designed for SMP. > > * 'R' - User forced a module unload. > > * 'M' - Machine had a machine check experience. > > * 'B' - System has hit bad_page. > > The one that puzzles me greatly isn't listed there: 'G' I guess it means GPL. It's just the opposite of 'P', whereas all of the others have opposites of ' '. snprintf(buf, sizeof(buf), "Tainted: %c%c%c%c%c%c", tainted & TAINT_PROPRIETARY_MODULE ? 'P' : 'G', tainted & TAINT_FORCED_MODULE ? 'F' : ' ', tainted & TAINT_UNSAFE_SMP ? 'S' : ' ', tainted & TAINT_FORCED_RMMOD ? 'R' : ' ', tainted & TAINT_MACHINE_CHECK ? 'M' : ' ', tainted & TAINT_BAD_PAGE ? 'B' : ' '); -- ~Randy ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Tainted lsmod output 2005-09-12 19:54 ` Randy.Dunlap @ 2005-09-12 19:58 ` Hugh Dickins 2005-09-12 20:03 ` Randy.Dunlap 2005-09-12 20:16 ` Valdis.Kletnieks 0 siblings, 2 replies; 10+ messages in thread From: Hugh Dickins @ 2005-09-12 19:58 UTC (permalink / raw) To: Randy.Dunlap; +Cc: Márcio Oliveira, linux-kernel On Mon, 12 Sep 2005, Randy.Dunlap wrote: > On Mon, 12 Sep 2005, Hugh Dickins wrote: > > > > The one that puzzles me greatly isn't listed there: 'G' > > I guess it means GPL. > > It's just the opposite of 'P', whereas all of the others > have opposites of ' '. I guess the same, but doesn't it seem a strange kind of taint? Hugh ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Tainted lsmod output 2005-09-12 19:58 ` Hugh Dickins @ 2005-09-12 20:03 ` Randy.Dunlap 2005-09-12 20:16 ` Valdis.Kletnieks 1 sibling, 0 replies; 10+ messages in thread From: Randy.Dunlap @ 2005-09-12 20:03 UTC (permalink / raw) To: Hugh Dickins; +Cc: Randy.Dunlap, Márcio Oliveira, linux-kernel On Mon, 12 Sep 2005, Hugh Dickins wrote: > On Mon, 12 Sep 2005, Randy.Dunlap wrote: > > On Mon, 12 Sep 2005, Hugh Dickins wrote: > > > > > > The one that puzzles me greatly isn't listed there: 'G' > > > > I guess it means GPL. > > > > It's just the opposite of 'P', whereas all of the others > > have opposites of ' '. > > I guess the same, but doesn't it seem a strange kind of taint? <tainted> has already been found to be non-0. Looks like someone decided to reinforce the GPL-ness of all modules at that point and that some other tainted flag(s) should be set. -- ~Randy ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Tainted lsmod output 2005-09-12 19:58 ` Hugh Dickins 2005-09-12 20:03 ` Randy.Dunlap @ 2005-09-12 20:16 ` Valdis.Kletnieks 2005-09-12 21:27 ` Horst von Brand 2005-09-13 1:21 ` Dave Jones 1 sibling, 2 replies; 10+ messages in thread From: Valdis.Kletnieks @ 2005-09-12 20:16 UTC (permalink / raw) To: Hugh Dickins; +Cc: Randy.Dunlap, Márcio Oliveira, linux-kernel [-- Attachment #1: Type: text/plain, Size: 602 bytes --] On Mon, 12 Sep 2005 20:58:01 BST, Hugh Dickins said: > On Mon, 12 Sep 2005, Randy.Dunlap wrote: > > On Mon, 12 Sep 2005, Hugh Dickins wrote: > > > > > > The one that puzzles me greatly isn't listed there: 'G' > > > > I guess it means GPL. > > > > It's just the opposite of 'P', whereas all of the others > > have opposites of ' '. > > I guess the same, but doesn't it seem a strange kind of taint? Somebody had an automated log-parsing tool, and wanted to make sure there were guaranteed at least 2 non-whitespace tokens on the line so they wouldn't have to deal with parsing 'Tainted: \n'? [-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Tainted lsmod output 2005-09-12 20:16 ` Valdis.Kletnieks @ 2005-09-12 21:27 ` Horst von Brand 2005-09-12 21:36 ` J. Bruce Fields 2005-09-13 1:21 ` Dave Jones 1 sibling, 1 reply; 10+ messages in thread From: Horst von Brand @ 2005-09-12 21:27 UTC (permalink / raw) To: Valdis.Kletnieks Cc: Hugh Dickins, Randy.Dunlap, Márcio Oliveira, linux-kernel Valdis.Kletnieks@vt.edu wrote: > On Mon, 12 Sep 2005 20:58:01 BST, Hugh Dickins said: > > On Mon, 12 Sep 2005, Randy.Dunlap wrote: > > > On Mon, 12 Sep 2005, Hugh Dickins wrote: > > > > The one that puzzles me greatly isn't listed there: 'G' > > > I guess it means GPL. > > > > > > It's just the opposite of 'P', whereas all of the others > > > have opposites of ' '. > > I guess the same, but doesn't it seem a strange kind of taint? > Somebody had an automated log-parsing tool, and wanted to make sure there > were guaranteed at least 2 non-whitespace tokens on the line so they wouldn't > have to deal with parsing 'Tainted: \n'? That's a lame excuse for messing up the kernel and mistifying the heck out of users. Either "Tainted: <some gunk>" or "Not tainted" (or just nothing)? -- Dr. Horst H. von Brand User #22616 counter.li.org Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Tainted lsmod output 2005-09-12 21:27 ` Horst von Brand @ 2005-09-12 21:36 ` J. Bruce Fields 0 siblings, 0 replies; 10+ messages in thread From: J. Bruce Fields @ 2005-09-12 21:36 UTC (permalink / raw) To: Horst von Brand Cc: Valdis.Kletnieks, Hugh Dickins, Randy.Dunlap, Márcio Oliveira, linux-kernel On Mon, Sep 12, 2005 at 05:27:03PM -0400, Horst von Brand wrote: > Valdis.Kletnieks@vt.edu wrote: > > Somebody had an automated log-parsing tool, and wanted to make sure there > > were guaranteed at least 2 non-whitespace tokens on the line so they wouldn't > > have to deal with parsing 'Tainted: \n'? > > That's a lame excuse for messing up the kernel and mistifying the heck out > of users. Either "Tainted: <some gunk>" or "Not tainted" (or just nothing)? That's precisely what is does. It's just that when there's taint other than proprietary-module taint, it puts a "G" in that column instead of a blank. Which is oddly inconsistent, but whatever. --b. const char *print_tainted(void) { static char buf[20]; if (tainted) { snprintf(buf, sizeof(buf), "Tainted: %c%c%c%c%c%c", tainted & TAINT_PROPRIETARY_MODULE ? 'P' : 'G', tainted & TAINT_FORCED_MODULE ? 'F' : ' ', tainted & TAINT_UNSAFE_SMP ? 'S' : ' ', tainted & TAINT_FORCED_RMMOD ? 'R' : ' ', tainted & TAINT_MACHINE_CHECK ? 'M' : ' ', tainted & TAINT_BAD_PAGE ? 'B' : ' '); } else snprintf(buf, sizeof(buf), "Not tainted"); return(buf); } ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Tainted lsmod output 2005-09-12 20:16 ` Valdis.Kletnieks 2005-09-12 21:27 ` Horst von Brand @ 2005-09-13 1:21 ` Dave Jones 1 sibling, 0 replies; 10+ messages in thread From: Dave Jones @ 2005-09-13 1:21 UTC (permalink / raw) To: Valdis.Kletnieks Cc: Hugh Dickins, Randy.Dunlap, Márcio Oliveira, linux-kernel On Mon, Sep 12, 2005 at 04:16:45PM -0400, Valdis.Kletnieks@vt.edu wrote: > Somebody had an automated log-parsing tool, and wanted to make sure there > were guaranteed at least 2 non-whitespace tokens on the line so they wouldn't > have to deal with parsing 'Tainted: \n'? That situation is impossible to hit. It'd be not tainted in that case. The 'G' only gets shown if at least 1 other taint flag (typically 'M' in my experience) is also set. Dave ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-09-13 17:19 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-09-12 18:21 Tainted lsmod output Márcio Oliveira 2005-09-12 18:30 ` Randy.Dunlap 2005-09-12 19:43 ` Hugh Dickins 2005-09-12 19:54 ` Randy.Dunlap 2005-09-12 19:58 ` Hugh Dickins 2005-09-12 20:03 ` Randy.Dunlap 2005-09-12 20:16 ` Valdis.Kletnieks 2005-09-12 21:27 ` Horst von Brand 2005-09-12 21:36 ` J. Bruce Fields 2005-09-13 1:21 ` Dave Jones
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox