https://github.com/torvalds/linux
Revision 5b01014759991887b1e450c9def01e58c02ab81b authored by Sabrina Dubroca on 02 December 2016, 15:49:29 UTC, committed by David S. Miller on 02 December 2016, 19:07:11 UTC
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>
1 parent 3de81b7
Raw File
Tip revision: 5b01014759991887b1e450c9def01e58c02ab81b authored by Sabrina Dubroca on 02 December 2016, 15:49:29 UTC
geneve: avoid use-after-free of skb->data
Tip revision: 5b01014
.gitattributes
*.c   diff=cpp
*.h   diff=cpp
back to top