summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCong Wang <cong.wang@bytedance.com>2020-12-26 15:44:53 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-12 20:10:19 +0100
commit5a4fbd8b8a9d65207ac47079f0c5574673bb8773 (patch)
treee6f139cd2f403f6de4b32533ef59e143170b6dc9 /scripts
parent6928179970635accad665f34fbdaef3113b5cee0 (diff)
erspan: fix version 1 check in gre_parse_header()
[ Upstream commit 085c7c4e1c0e50d90b7d90f61a12e12b317a91e2 ] Both version 0 and version 1 use ETH_P_ERSPAN, but version 0 does not have an erspan header. So the check in gre_parse_header() is wrong, we have to distinguish version 1 from version 0. We can just check the gre header length like is_erspan_type1(). Fixes: cb73ee40b1b3 ("net: ip_gre: use erspan key field for tunnel lookup") Reported-by: syzbot+f583ce3d4ddf9836b27a@syzkaller.appspotmail.com Cc: William Tu <u9012063@gmail.com> Cc: Lorenzo Bianconi <lorenzo.bianconi@redhat.com> Signed-off-by: Cong Wang <cong.wang@bytedance.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions