aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorJohn Fastabend <[email protected]>2018-06-30 13:17:36 +0000
committerDaniel Borkmann <[email protected]>2018-06-30 23:21:31 +0000
commit9901c5d77e969d8215a8e8d087ef02e6feddc84c (patch)
tree73ee61f04a80beb5ac6002d0c33ab30127ade630 /drivers/net/xen-netback/interface.c
parentMerge branch 'bpf-fixes' (diff)
downloadkernel-9901c5d77e969d8215a8e8d087ef02e6feddc84c.tar.gz
kernel-9901c5d77e969d8215a8e8d087ef02e6feddc84c.zip
bpf: sockmap, fix crash when ipv6 sock is added
This fixes a crash where we assign tcp_prot to IPv6 sockets instead of tcpv6_prot. Previously we overwrote the sk->prot field with tcp_prot even in the AF_INET6 case. This patch ensures the correct tcp_prot and tcpv6_prot are used. Tested with 'netserver -6' and 'netperf -H [IPv6]' as well as 'netperf -H [IPv4]'. The ESTABLISHED check resolves the previously crashing case here. Fixes: 174a79ff9515 ("bpf: sockmap with sk redirect support") Reported-by: [email protected] Acked-by: Martin KaFai Lau <[email protected]> Signed-off-by: John Fastabend <[email protected]> Signed-off-by: Wei Wang <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions