Skip to contentSkip to conversation

Add taint flag outputting to slub debug paths.

PATCH Dave Jones 1 participant 1 message Jul 22, 2011

Subsystems (2)
lore
Share & tools
lore

Dave Jones

author
#0 lore raw

When we get corruption reports, it's useful to see if the kernel was tainted, to rule out problems we can't do anything about.

mm/slub.c +1 -1
index 819f056..8eff0f4 100644
@@ -433,7 +433,7 @@ static void slab_bug(struct kmem_cache *s, char *fmt, ...)
 	va_end(args);
 	printk(KERN_ERR "========================================"
 			"=====================================\n");
-	printk(KERN_ERR "BUG %s: %s\n", s->name, buf);
+	printk(KERN_ERR "BUG %s (%s): %s\n", s->name, print_tainted(), buf);
 	printk(KERN_ERR "----------------------------------------"
 			"-------------------------------------\n\n");
 }

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>