Searched hist:"2 eb8d6d2910cfe3dc67dc056f26f3dd9c63d47cd" (Results 1 – 2 of 2) sorted by relevance
/linux/net/ipv6/ |
H A D | ip6_gre.c | diff 2eb8d6d2910cfe3dc67dc056f26f3dd9c63d47cd Mon Oct 28 16:19:35 CET 2019 Xin Long <lucien.xin@gmail.com> erspan: fix the tun_info options_len check for erspan
The check for !md doens't really work for ip_tunnel_info_opts(info) which only does info + 1. Also to avoid out-of-bounds access on info, it should ensure options_len is not less than erspan_metadata in both erspan_xmit() and ip6erspan_tunnel_xmit().
Fixes: 1a66a836da ("gre: add collect_md mode to ERSPAN tunnel") Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/linux/net/ipv4/ |
H A D | ip_gre.c | diff 2eb8d6d2910cfe3dc67dc056f26f3dd9c63d47cd Mon Oct 28 16:19:35 CET 2019 Xin Long <lucien.xin@gmail.com> erspan: fix the tun_info options_len check for erspan
The check for !md doens't really work for ip_tunnel_info_opts(info) which only does info + 1. Also to avoid out-of-bounds access on info, it should ensure options_len is not less than erspan_metadata in both erspan_xmit() and ip6erspan_tunnel_xmit().
Fixes: 1a66a836da ("gre: add collect_md mode to ERSPAN tunnel") Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|