Re: [PATCH v6] tcp: fix race condition when creating child sockets from syncookies

2020-11-17 Thread Eric Dumazet
On 11/17/20 8:29 AM, Ricardo Dias wrote: > When the TCP stack is in SYN flood mode, the server child socket is > created from the SYN cookie received in a TCP packet with the ACK flag > set. > ... > > @@ -1374,6 +1381,13 @@ static struct sock *tcp_v6_syn_recv_sock(const struct > sock *sk,

[PATCH v6] tcp: fix race condition when creating child sockets from syncookies

2020-11-16 Thread Ricardo Dias
When the TCP stack is in SYN flood mode, the server child socket is created from the SYN cookie received in a TCP packet with the ACK flag set. The child socket is created when the server receives the first TCP packet with a valid SYN cookie from the client. Usually, this packet corresponds to the