Add patch to display more debug info for bug 808990.

This commit is contained in:
Dave Jones 2012-04-02 20:28:24 -04:00
parent b6cb947f14
commit 0dc1678dba
2 changed files with 25 additions and 1 deletions

17
debug-808990.patch Normal file
View File

@ -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;

View File

@ -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@redhat.com>
- Add patch to display more debug info for bug 808990.
* Mon Apr 02 2012 Dave Jones <davej@redhat.com> 3.3.1-1
- Linux 3.3.1