Files
linux/net/ipv6
Hannes Frederic Sowa 0e033e04c2 ipv6: fix headroom calculation in udp6_ufo_fragment
Commit 1e2bd517c1 ("udp6: Fix udp
fragmentation for tunnel traffic.") changed the calculation if
there is enough space to include a fragment header in the skb from a
skb->mac_header dervived one to skb_headroom. Because we already peeled
off the skb to transport_header this is wrong. Change this back to check
if we have enough room before the mac_header.

This fixes a panic Saran Neti reported. He used the tbf scheduler which
skb_gso_segments the skb. The offsets get negative and we panic in memcpy
because the skb was erroneously not expanded at the head.

Reported-by: Saran Neti <Saran.Neti@telus.com>
Cc: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-11-05 22:09:53 -05:00
..
2013-10-28 20:07:50 -04:00
2013-09-11 16:16:29 -04:00
2013-10-21 18:49:39 -04:00
2013-10-28 20:07:50 -04:00
2013-10-09 00:01:25 -04:00
2013-10-09 00:01:25 -04:00
2013-10-21 18:49:39 -04:00
2013-10-18 13:38:39 -04:00
2013-05-11 16:26:38 -07:00