| Submitter | Eric Dumazet |
|---|---|
| Date | March 6, 2013, 9:02 p.m. |
| Message ID | <1362603757.15793.186.camel@edumazet-glaptop> |
| Download | mbox | patch |
| Permalink | /patch/225653/ |
| State | Accepted |
| Delegated to: | David Miller |
| Headers | show |
Comments
From: Eric Dumazet <eric.dumazet@gmail.com> Date: Wed, 06 Mar 2013 13:02:37 -0800 > From: Eric Dumazet <edumazet@google.com> > > Dave reported following crash : ... > This is because tun_net_xmit() needs to call nf_reset() > before queuing skb into receive_queue > > Reported-by: Dave Jones <davej@redhat.com> > Signed-off-by: Eric Dumazet <edumazet@google.com> Applied and queued up for -stable, thanks everyone. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Patch
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 2c6a22e..b7c457a 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -747,6 +747,8 @@ static netdev_tx_t tun_net_xmit(struct sk_buff *skb, struct net_device *dev) goto drop; skb_orphan(skb); + nf_reset(skb); + /* Enqueue packet */ skb_queue_tail(&tfile->socket.sk->sk_receive_queue, skb);