diff options
author | Xin Long <lucien.xin@gmail.com> | 2019-10-28 23:19:35 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-29 17:36:42 -0700 |
commit | 2eb8d6d2910cfe3dc67dc056f26f3dd9c63d47cd (patch) | |
tree | 5490ad73490d3235a4da373fe744a0a9f8087951 /net/ipv4/tcp_diag.c | |
parent | e56bd641ca61beb92b135298d5046905f920b734 (diff) | |
download | blackbird-op-linux-2eb8d6d2910cfe3dc67dc056f26f3dd9c63d47cd.tar.gz blackbird-op-linux-2eb8d6d2910cfe3dc67dc056f26f3dd9c63d47cd.zip |
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>
Diffstat (limited to 'net/ipv4/tcp_diag.c')
0 files changed, 0 insertions, 0 deletions