]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel: clear IPCB in ip_tunnel_xmit() in case dst_link_failure() is called
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Thu, 23 Jan 2014 06:00:25 +0000 (14:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jan 2014 21:23:16 +0000 (13:23 -0800)
commit6cb9fdd771d034dbf1656d6d1fed302be8d4ff33
tree24774ad28953a025f11d9f1d617d46f2eb9ac937
parent364af83f13fe2920111e9643fcb592698fd1da34
ip_tunnel: clear IPCB in ip_tunnel_xmit() in case dst_link_failure() is called

commit b5a6cc92d3d232("ip_tunnel: fix kernel panic with icmp_dest_unreach")
clear IPCB in ip_tunnel_xmit()  , or else skb->cb[] may contain garbage from
GSO segmentation layer.

But commit 9806173387ee3("ip_tunnels: extend iptunnel_xmit()") refactor codes,
and it clear IPCB behind the dst_link_failure().

So clear IPCB in ip_tunnel_xmit() just like commti b5a6cc92d3d232("ip_tunnel:
fix kernel panic with icmp_dest_unreach").

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel.c