You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 59f2a32
Browse filesBrowse the repository at this point in the historyBrowse files
[net] Fix network hang, leak and race issues in kernel and ktcp
tcpdev_read()/tcpdev_connect():
Return -EPIPE or -ECONNREFUSED instead of no reply at all, which would hang
the network due to the read/connect being blocked on a single reply buffer
in the tcpdev ktcp<->kernel transfer driver. Fixes network stack hangs during
read or connect when CB is deallocated through a received RST or any other
reason that deallocates an active CB.
tcp_established(): decrement tcpcb_need_push when a RST frees a CB that still
has unread data to stop continual AVAIL_DATA notifications.
tcp_synrecv(): free the cloned CB on RST rather than only resetting state,
each half-open RST leaked ~4.5K.
inet_process_tcpdev() / TDT_ACCEPT:
Copy accept() result out immediately and and release bufin_sem, which
breaks a bufin_sem/bufout_sem deadlock between ktcp and ftpd under load.
0 commit comments