[kernel/f16] Add patch to display more debug info for bug 808990.

Dave Jones davej at fedoraproject.org
Tue Apr 3 00:28:32 UTC 2012


commit 0dc1678dba3e0e9c94a56f1fcc5b18470acd6f7b
Author: Dave Jones <davej at redhat.com>
Date:   Mon Apr 2 20:28:24 2012 -0400

    Add patch to display more debug info for bug 808990.

 debug-808990.patch |   17 +++++++++++++++++
 kernel.spec        |    9 ++++++++-
 2 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/debug-808990.patch b/debug-808990.patch
new file mode 100644
index 0000000..571bef7
--- /dev/null
+++ b/debug-808990.patch
@@ -0,0 +1,17 @@
+--- linux-3.3.noarch/net/ipv4/route.c~	2012-04-02 20:24:44.162789023 -0400
++++ linux-3.3.noarch/net/ipv4/route.c	2012-04-02 20:25:20.610784137 -0400
+@@ -2794,6 +2794,14 @@ static struct rtable *ip_route_output_sl
+ 		fl4->saddr = FIB_RES_PREFSRC(net, res);
+ 
+ 	dev_out = FIB_RES_DEV(res);
++
++	if (!dev_out) {
++		pr_crit("ipv4: FIB_RES_DEV() is NULL, nh_sel=%d\n",
++			res.nh_sel);
++		rth = ERR_PTR(-EINVAL);
++		goto out;
++	}
++
+ 	fl4->flowi4_oif = dev_out->ifindex;
+ 
+ 
diff --git a/kernel.spec b/kernel.spec
index a169ca0..17c9639 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -788,7 +788,9 @@ Patch21501: nfs-Fix-length-of-buffer-copied-in-__nfs4_get_acl_uncached.patch
 #rhbz 808207 CVE-2012-1601
 Patch21520: KVM-Ensure-all-vcpus-are-consistent-with-in-kernel-i.patch
 
-Patch22000: weird-root-dentry-name-debug.patch
+# Debug patches
+Patch30000: weird-root-dentry-name-debug.patch
+Patch30010: debug-808990.patch
 
 %endif
 
@@ -1452,7 +1454,9 @@ ApplyPatch shlib_base_randomize.patch
 
 ApplyPatch unhandled-irqs-switch-to-polling.patch
 
+# debug patches
 ApplyPatch weird-root-dentry-name-debug.patch
+ApplyPatch debug-808990.patch
 
 #rhbz 804347
 ApplyPatch x86-add-io_apic_ops-to-allow-interception.patch
@@ -2206,6 +2210,9 @@ fi
 # and build.
 
 %changelog
+* Mon Apr 02 2012 Dave Jones <davej at redhat.com>
+- Add patch to display more debug info for bug 808990.
+
 * Mon Apr 02 2012 Dave Jones <davej at redhat.com> 3.3.1-1
 - Linux 3.3.1
 


More information about the scm-commits mailing list