]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel: Do not use stale inner_iph pointer.
authorPravin B Shelar <pshelar@nicira.com>
Wed, 25 Sep 2013 16:57:47 +0000 (09:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Sep 2013 19:05:07 +0000 (15:05 -0400)
commit699a20115413d234b172fb28b73dfcde18431cbb
treeef6a48cbbda948c321542dc13e66686a21998b00
parenta732586016b0bf35e8e4182b71b835ca7d6453dc
ip_tunnel: Do not use stale inner_iph pointer.

While sending packet skb_cow_head() can change skb header which
invalidates inner_iph pointer to skb header. Following patch
avoid using it. Found by code inspection.

This bug was introduced by commit 1cf7e8e65db9c6 (ip_tunnels: extend
iptunnel_xmit()).

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel.c