[kernel/f16] Add debug patch for bugs 787171/766277

Dave Jones davej at fedoraproject.org
Wed Mar 7 22:10:43 UTC 2012


commit d08db1bba421c6e70979d5d3a7f908bbb49f799a
Author: Dave Jones <davej at redhat.com>
Date:   Wed Mar 7 17:10:29 2012 -0500

    Add debug patch for bugs 787171/766277

 kernel.spec                        |    7 +++++++
 weird-root-dentry-name-debug.patch |   19 +++++++++++++++++++
 2 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index 4180be0..47078c8 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -835,6 +835,8 @@ Patch21247: mm-memcg-Correct-unregistring-of-events-attached-to-.patch
 
 Patch21300: unhandled-irqs-switch-to-polling.patch
 
+Patch22000: weird-root-dentry-name-debug.patch
+
 # compat-wireless patches
 Patch50000: compat-wireless-config-fixups.patch
 Patch50001: compat-wireless-pr_fmt-warning-avoidance.patch
@@ -1594,6 +1596,8 @@ ApplyPatch mm-memcg-Correct-unregistring-of-events-attached-to-.patch
 
 ApplyPatch unhandled-irqs-switch-to-polling.patch
 
+ApplyPatch weird-root-dentry-name-debug.patch
+
 # END OF PATCH APPLICATIONS
 
 %endif
@@ -2410,6 +2414,9 @@ fi
 # and build.
 
 %changelog
+* Wed Mar 07 2012 Dave Jones <davej at redhat.com>
+- Add debug patch for bugs 787171/766277
+
 * Wed Mar 07 2012 Josh Boye <jwboyer at redhat.com>
 - CVE-2012-1146: memcg: unregister events attached to the same eventfd can
   oops (rhbz 800817)
diff --git a/weird-root-dentry-name-debug.patch b/weird-root-dentry-name-debug.patch
new file mode 100644
index 0000000..e2fb2e1
--- /dev/null
+++ b/weird-root-dentry-name-debug.patch
@@ -0,0 +1,19 @@
+debug patch for bz 787171/766277
+
+diff --git a/fs/dcache.c b/fs/dcache.c
+index bcbdb33..a6a5fdb 100644
+--- a/fs/dcache.c
++++ b/fs/dcache.c
+@@ -2530,8 +2530,10 @@ global_root:
+ 	 */
+ 	if (IS_ROOT(dentry) &&
+ 	    (dentry->d_name.len != 1 || dentry->d_name.name[0] != '/')) {
+-		WARN(1, "Root dentry has weird name <%.*s>\n",
+-		     (int) dentry->d_name.len, dentry->d_name.name);
++		WARN(1, "Root dentry has weird name <%.*s>  vfsmnt:%s fs:%s\n",
++		     (int) dentry->d_name.len, dentry->d_name.name,
++			vfsmnt->mnt_root->d_name.name,
++			vfsmnt->mnt_sb->s_type->name);
+ 	}
+ 	if (!slash)
+ 		error = prepend(buffer, buflen, "/", 1);


More information about the scm-commits mailing list