| To: | Patrick McHardy <kaber@xxxxxxxxx> |
|---|---|
| Subject: | Re: Fw: [Bug 4279] New: When I try to start vpnc the net/core/skbuff.c:91 crash |
| From: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
| Date: | Thu, 10 Mar 2005 19:20:23 -0800 |
| Cc: | maxk@xxxxxxxxxxxx, shemminger@xxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <4228AD8F.4020000@xxxxxxxxx> |
| References: | <20050303095832.6a084856@xxxxxxxxxxxxxxxxx> <4228A354.8020904@xxxxxxxxxxxx> <4228AD8F.4020000@xxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Fri, 04 Mar 2005 19:48:47 +0100 Patrick McHardy <kaber@xxxxxxxxx> wrote: > Max Krasnyansky wrote: > > Hi Stephen, > > > >> Looks like a something wrong with tun driver on 2.6.11 > > > > Thanks for forwarding this. I'll take a look at it. > > As far as I remember nothing really changed in the TUN write logic. > > Must be some other changes broke it. > > This check is wrong, gcc optimizes it away: > > if ((len -= sizeof(pi)) > len) > return -EINVAL; > > This could be responsible for the BUG. If len is 2 or 3 and TUN_NO_PI > isn't set it underflows. alloc_skb() allocates len + 2, which is 0 or > 1 byte. skb_reserve tries to reserve 2 bytes and things explode in > skb_put. Good catch Patrick. Patch applied, thanks. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: pktgen: causing lots of errors in console log, David S. Miller |
|---|---|
| Next by Date: | Re: [PATCH] [ATM]: [fore200e] rewrite to eliminate pci_find_device() but preserve sbus support, David S. Miller |
| Previous by Thread: | Re: Fw: [Bug 4279] New: When I try to start vpnc the net/core/skbuff.c:91 crash, Patrick McHardy |
| Next by Thread: | Re: Fw: [Bug 4279] New: When I try to start vpnc the net/core/skbuff.c:91 crash, Patrick McHardy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |