Sabrina Dubroca 5b01014759 geneve: avoid use-after-free of skb->data
geneve{,6}_build_skb can end up doing a pskb_expand_head(), which
makes the ip_hdr(skb) reference we stashed earlier stale. Since it's
only needed as an argument to ip_tunnel_ecn_encap(), move this
directly in the function call.

Fixes: 08399efc6319 ("geneve: ensure ECN info is handled properly in all tx/rx paths")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-02 14:07:11 -05:00
..
2016-08-06 09:20:13 -04:00
2016-08-15 11:57:55 -07:00
2016-11-27 19:59:50 -05:00
2016-08-31 14:33:09 -07:00
2016-11-30 14:33:44 -05:00
2016-09-20 22:55:23 -04:00
2016-08-30 22:27:18 -07:00