On Mon, Jun 10, 2019 at 3:04 PM David Miller <da...@davemloft.net> wrote: > > From: Eric Dumazet <eduma...@google.com> > Date: Mon, 10 Jun 2019 14:45:43 -0700 > > > Using sk_to_full_sk() should get back to the listener socket. > > net/ipv6/tcp_ipv6.c: In function ‘tcp_v6_send_response’: > net/ipv6/tcp_ipv6.c:887:22: warning: passing argument 1 of ‘sk_to_full_sk’ > discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
I was about to ask you to drop this patch. Apparently the only case we can have SYN_RECV sockets here are for fastopen, and in this case sk->sk_mark defined. This only leaves the chance to get better sock_net_uid() reach, and my upcoming patch adding per-tcp-socket arbitrary tx delay.