Skip to contentSkip to conversation

output taint information when the rss-counter check trips up.

PATCH Dave Jones 1 participant 1 message Jun 18, 2012

Subsystems (3)
lore
Share & tools
lore

Dave Jones

author
#0 lore raw

We've had a couple reports of this happening, and it's tedious having to spend a round trip asking "did you have 3rd party modules loaded".

kernel/fork.c +1 -1
index ab5211b..0aa3c51 100644
@@ -556,7 +556,7 @@ static void check_mm(struct mm_struct *mm)
 
 		if (unlikely(x))
 			printk(KERN_ALERT "BUG: Bad rss-counter state "
-					  "mm:%p idx:%d val:%ld\n", mm, i, x);
+					  "mm:%p idx:%d val:%ld (%s)\n", mm, i, x, print_tainted());
 	}
 
 #ifdef CONFIG_TRANSPARENT_HUGEPAGE