]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel: Fix a memory corruption in ip_tunnel_xmit
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 1 Oct 2013 09:33:59 +0000 (11:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Oct 2013 16:42:16 +0000 (12:42 -0400)
commitd3e34bb7b514117d13e3ac34271b1f8ad5877c10
tree726a51f17de026da0e7c0135f827d529a406fcfd
parenta88112d244ba8bba281d3d4af8dc49093a0cbf19
ip_tunnel: Fix a memory corruption in ip_tunnel_xmit

We might extend the used aera of a skb beyond the total
headroom when we install the ipip header. Fix this by
calling skb_cow_head() unconditionally.

Bug was introduced with commit 65fe948e54
("GRE: Refactor GRE tunneling code.")

Cc: Pravin Shelar <pshelar@nicira.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel.c