netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [Bugme-new] [Bug 33842] New: NULL pointer dereference in ip_fragment
@ 2011-04-26 20:31 Bandan Das
  2011-04-26 20:46 ` David Miller
  0 siblings, 1 reply; 12+ messages in thread
From: Bandan Das @ 2011-04-26 20:31 UTC (permalink / raw)
  To: NetDev; +Cc: akpm, tom, Eric Dumazet

https://bugzilla.kernel.org/show_bug.cgi?id=33842

I believe  Eric's recent change to br_parse_ip_options() 
didn't make it to 2.6.39-rc4:

bridge: reset IPCB in br_parse_ip_options
commit f8e9881c2aef1e982e5abc25c046820cd0b7cf64

diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c
index 008ff6c..b353f7c 100644
--- a/net/bridge/br_netfilter.c
+++ b/net/bridge/br_netfilter.c
@@ -249,11 +249,9 @@  static int br_parse_ip_options(struct sk_buff *skb)
           goto drop;
           }
 
-       /* Zero out the CB buffer if no options present */
-       if (iph->ihl == 5) {
-          memset(IPCB(skb), 0, sizeof(struct inet_skb_parm));
+          memset(IPCB(skb), 0, sizeof(struct inet_skb_parm));
+          if (iph->ihl == 5)
              return 0;
-             }
 
        opt->optlen = iph->ihl*4 - sizeof(struct iphdr);
        if (ip_options_compile(dev_net(dev), opt, skb))



Tomas, could you please try a kernel that has the above 
mentioned change and see if the crash re-occurs ?

Thanks,
Bandan

^ permalink raw reply related	[flat|nested] 12+ messages in thread
[parent not found: <bug-33842-10286@https.bugzilla.kernel.org/>]

end of thread, other threads:[~2011-04-27 12:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-26 20:31 [Bugme-new] [Bug 33842] New: NULL pointer dereference in ip_fragment Bandan Das
2011-04-26 20:46 ` David Miller
2011-04-26 20:53   ` Eric Dumazet
2011-04-26 20:59     ` Bandan Das
2011-04-26 21:01       ` Eric Dumazet
2011-04-26 21:19         ` Bandan Das
2011-04-26 21:24           ` Eric Dumazet
2011-04-27  7:22             ` Tomas Carnecky
2011-04-27  7:41               ` Eric Dumazet
2011-04-27 11:52                 ` Tomas Carnecky
2011-04-27 12:17                   ` Eric Dumazet
     [not found] <bug-33842-10286@https.bugzilla.kernel.org/>
2011-04-26  4:29 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).