summaryrefslogtreecommitdiff
path: root/arch/x86/net
diff options
context:
space:
mode:
authorWilliam Tu <u9012063@gmail.com>2018-04-25 09:46:59 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2018-04-25 10:51:54 +0300
commit5540fbf43845868defcb599ec91c678275a20671 (patch)
tree7fe49e4fba413a173b442c2fb866520011c689fe /arch/x86/net
parentb3f8adee85e81a4e8b8ea842cdd9c8e5ec63573d (diff)
downloadlinux-5540fbf43845868defcb599ec91c678275a20671.tar.xz
bpf: clear the ip_tunnel_info.
The percpu metadata_dst might carry the stale ip_tunnel_info and cause incorrect behavior. When mixing tests using ipv4/ipv6 bpf vxlan and geneve tunnel, the ipv6 tunnel info incorrectly uses ipv4's src ip addr as its ipv6 src address, because the previous tunnel info does not clean up. The patch zeros the fields in ip_tunnel_info. Signed-off-by: William Tu <u9012063@gmail.com> Reported-by: Yifeng Sun <pkusunyifeng@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'arch/x86/net')
0 files changed, 0 insertions, 0 deletions