Thread (4 messages) flat view 4 messages, 3 authors, 2023-06-07

Re: [PATCH v1] tcp: fix connection reset due to tw hashdance race.

From: Simon Horman <hidden>
Date: 2023-06-06 08:58:05
Also in: lkml

On Mon, Jun 05, 2023 at 11:51:40AM +0800, Duan Muquan wrote:

...
Brief of the scenario:

1. Server runs on CPU 0 and Client runs on CPU 1. Server closes
connection actively and sends a FIN to client. The lookback's driver
enqueues the FIN segment to backlog queue of CPU 0 via
loopback_xmit()->netif_rx(), one of the conditions for non-delay ack
meets in __tcp_ack_snd_check(), and the ACK is sent immediately.

2. On loopback interface, the ACK is received and processed on CPU 0,
the 'dance' from original sock to tw sock will perfrom, tw sock will
Hi Duan Muquan,

a minor nit from my side: perfrom -> perform
be inserted to ehash table, then the original sock will be removed.
...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help