[kernel/f17] Output taint info when the RSS counter check trips up.

Dave Jones davej at fedoraproject.org
Mon Jun 18 15:46:24 UTC 2012


commit 6f3b87d430d124b25164c8dc81e4654a3bfa3138
Author: Dave Jones <davej at redhat.com>
Date:   Mon Jun 18 11:46:19 2012 -0400

    Output taint info when the RSS counter check trips up.

 kernel.spec     |    6 ++++++
 taint-rss.patch |   13 +++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index 69f2b11..9155669 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -642,6 +642,8 @@ Patch09: linux-2.6-upstream-reverts.patch
 # Standalone patches
 
 Patch100: taint-vbox.patch
+Patch101: taint-rss.patch
+
 Patch160: linux-2.6-32bit-mmap-exec-randomization.patch
 Patch161: linux-2.6-i386-nx-emulation.patch
 Patch162: nx-emu-remove-cpuinitdata-for-disable_nx-on-x86_32.patch
@@ -1323,6 +1325,7 @@ ApplyOptionalPatch linux-2.6-compile-fixes.patch
 ApplyOptionalPatch linux-2.6-upstream-reverts.patch -R
 
 ApplyPatch taint-vbox.patch
+ApplyPatch taint-rss.patch
 
 # Architecture patches
 # x86(-64)
@@ -2357,6 +2360,9 @@ fi
 #    '-'      |  |
 #              '-'
 %changelog
+* Mon Jun 18 2012 Dave Jones <davej at redhat.com>
+- Output taint info when the RSS counter check trips up.
+
 * Mon Jun 18 2012 Justin M. Forbes <jforbes at redhat.com> 3.4.3-1
 - Linux 3.4.3
 
diff --git a/taint-rss.patch b/taint-rss.patch
new file mode 100644
index 0000000..30265f3
--- /dev/null
+++ b/taint-rss.patch
@@ -0,0 +1,13 @@
+diff --git a/kernel/fork.c b/kernel/fork.c
+index ab5211b..0aa3c51 100644
+--- a/kernel/fork.c
++++ b/kernel/fork.c
+@@ -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


More information about the scm-commits mailing list