Thread (5 messages) 5 messages, 3 authors, 2023-02-28

Re: [syzbot] [net?] INFO: task hung in tls_sw_sendpage (3)

From: Jakub Kicinski <kuba@kernel.org>
Date: 2023-02-28 22:51:41
Also in: bpf, lkml

On Tue, 28 Feb 2023 12:23:46 +0100 Eric Dumazet wrote:
This report mentions sendpage, but sendmsg() would have the same issue.

A thread might be blocked in sk_stream_wait_memory() with the mutex
held, for an arbitrary amount of time,
say if the remote peer stays in RWIN 0 for hours.

This prevents tx_work from making progress, and
tls_sw_cancel_work_tx() would be stuck forever.

The consensus is that the kernel shouts a warning if a thread has been
waiting on a mutex
more than 120 seconds (check_hung_uninterruptible_tasks())
Thanks for explaining, let's see if I can hack a fix together..
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help