* re: udp_tunnel: Pass UDP socket down through udp_tunnel{, 6}_xmit_skb().
@ 2015-04-08 18:48 Dan Carpenter
2015-04-08 19:06 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2015-04-08 18:48 UTC (permalink / raw)
To: davem; +Cc: netdev, Hannes Frederic Sowa
Hello David Miller,
The patch 79b16aadea32: "udp_tunnel: Pass UDP socket down through
udp_tunnel{, 6}_xmit_skb()." from Apr 5, 2015, leads to the following
static checker warning:
net/ipv4/ip_tunnel.c:785 ip_tunnel_xmit()
error: NULL dereference inside function.
net/ipv4/ip_tunnel.c
781 kfree_skb(skb);
782 return;
783 }
784
785 err = iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol,
^^^^
This doesn't work. It will Oops in iptunnel_xmit() when it does
sock_net(sk).
786 tos, ttl, df, !net_eq(tunnel->net, dev_net(dev)));
787 iptunnel_xmit_stats(err, &dev->stats, dev->tstats);
788
789 return;
regards,
dan carpenter
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: udp_tunnel: Pass UDP socket down through udp_tunnel{, 6}_xmit_skb().
2015-04-08 18:48 udp_tunnel: Pass UDP socket down through udp_tunnel{, 6}_xmit_skb() Dan Carpenter
@ 2015-04-08 19:06 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-04-08 19:06 UTC (permalink / raw)
To: dan.carpenter; +Cc: netdev, hannes
Already fixed.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-08 19:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-08 18:48 udp_tunnel: Pass UDP socket down through udp_tunnel{, 6}_xmit_skb() Dan Carpenter
2015-04-08 19:06 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox