Re: [bpf PATCH v3 1/4] bpf: sockmap, fix crash when ipv6 sock is added

2018-06-23 Thread Martin KaFai Lau
On Fri, Jun 22, 2018 at 08:21:34AM -0700, John Fastabend wrote: > 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 >

[bpf PATCH v3 1/4] bpf: sockmap, fix crash when ipv6 sock is added

2018-06-22 Thread John Fastabend
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