[kernel] r19754 - in dists/sid/linux/debian: . patches patches/bugfix/all

Ben Hutchings benh at alioth.debian.org
Sat Jan 19 20:07:53 UTC 2013


Author: benh
Date: Sat Jan 19 20:07:53 2013
New Revision: 19754

Log:
bridge: Pull ip header into skb->data before looking into ip header. (Closes: #697903)

Added:
   dists/sid/linux/debian/patches/bugfix/all/bridge-Pull-ip-header-into-skb-data-before-looking-i.patch
Modified:
   dists/sid/linux/debian/changelog
   dists/sid/linux/debian/patches/series

Modified: dists/sid/linux/debian/changelog
==============================================================================
--- dists/sid/linux/debian/changelog	Sat Jan 19 20:00:24 2013	(r19753)
+++ dists/sid/linux/debian/changelog	Sat Jan 19 20:07:53 2013	(r19754)
@@ -91,6 +91,8 @@
     - sched: Queue RT tasks to head when prio drops
     - sched: Consider pi boosting in setscheduler
   * [s390] s390/time: fix sched_clock() overflow (Closes: #698382) 
+  * bridge: Pull ip header into skb->data before looking into ip header.
+    (Closes: #697903)
 
   [ Aurelien Jarno ]
   * [armhf/vexpress] Add kernel udebs.

Added: dists/sid/linux/debian/patches/bugfix/all/bridge-Pull-ip-header-into-skb-data-before-looking-i.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/sid/linux/debian/patches/bugfix/all/bridge-Pull-ip-header-into-skb-data-before-looking-i.patch	Sat Jan 19 20:07:53 2013	(r19754)
@@ -0,0 +1,30 @@
+From: Sarveshwar Bandi <sarveshwar.bandi at emulex.com>
+Date: Wed, 10 Oct 2012 01:15:01 +0000
+Subject: bridge: Pull ip header into skb->data before looking into ip header.
+
+commit 6caab7b0544e83e6c160b5e80f5a4a7dd69545c7 upstream.
+
+If lower layer driver leaves the ip header in the skb fragment, it needs to
+be first pulled into skb->data before inspecting ip header length or ip version
+number.
+
+Signed-off-by: Sarveshwar Bandi <sarveshwar.bandi at emulex.com>
+Signed-off-by: David S. Miller <davem at davemloft.net>
+---
+ net/bridge/br_netfilter.c |    3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c
+index 68e8f36..fe43bc7 100644
+--- a/net/bridge/br_netfilter.c
++++ b/net/bridge/br_netfilter.c
+@@ -265,6 +265,9 @@ static int br_parse_ip_options(struct sk_buff *skb)
+ 	struct net_device *dev = skb->dev;
+ 	u32 len;
+ 
++	if (!pskb_may_pull(skb, sizeof(struct iphdr)))
++		goto inhdr_error;
++
+ 	iph = ip_hdr(skb);
+ 	opt = &(IPCB(skb)->opt);
+ 

Modified: dists/sid/linux/debian/patches/series
==============================================================================
--- dists/sid/linux/debian/patches/series	Sat Jan 19 20:00:24 2013	(r19753)
+++ dists/sid/linux/debian/patches/series	Sat Jan 19 20:07:53 2013	(r19754)
@@ -467,3 +467,4 @@
 bugfix/all/fs-cachefiles-add-support-for-large-files-in-filesys.patch
 bugfix/x86/xen-Fix-stack-corruption-in-xen_failsafe_callback-fo.patch
 bugfix/s390/s390-time-fix-sched_clock-overflow.patch
+bugfix/all/bridge-Pull-ip-header-into-skb-data-before-looking-i.patch



More information about the Kernel-svn-changes mailing list