Files
Zhongqiu Duan 532548ed7d tcp/dccp: allow a connection when sk_max_ack_backlog is zero
[ Upstream commit 3479c7549fb1dfa7a1db4efb7347c7b8ef50de4b ]

If the backlog of listen() is set to zero, sk_acceptq_is_full() allows
one connection to be made, but inet_csk_reqsk_queue_is_full() does not.
When the net.ipv4.tcp_syncookies is zero, inet_csk_reqsk_queue_is_full()
will cause an immediate drop before the sk_acceptq_is_full() check in
tcp_conn_request(), resulting in no connection can be made.

This patch tries to keep consistent with 64a146513f ("[NET]: Revert
incorrect accept queue backlog changes.").

Link: https://lore.kernel.org/netdev/20250102080258.53858-1-kuniyu@amazon.com/
Fixes: ef547f2ac1 ("tcp: remove max_qlen_log")
Signed-off-by: Zhongqiu Duan <dzq.aishenghu0@gmail.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250102171426.915276-1-dzq.aishenghu0@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Ulrich Hecht <uli@kernel.org>
2025-04-25 03:30:17 +00:00
..
2021-06-10 12:42:36 +02:00
2019-03-23 13:19:44 +01:00
2020-08-21 11:48:51 +02:00
2019-02-23 09:05:59 +01:00
2020-05-17 20:19:19 -07:00
2018-02-08 16:32:00 +08:00
2020-03-20 11:01:08 +01:00
2019-11-10 11:23:31 +01:00
2020-07-22 09:10:48 +02:00
2022-07-29 18:58:19 +02:00
2021-07-28 12:36:41 +02:00
2018-05-16 10:08:41 +02:00
2018-05-30 13:19:56 +02:00
2025-02-24 14:04:21 +00:00
2025-04-25 03:30:13 +00:00
2017-07-21 07:42:18 +02:00