Thread (8 messages) 8 messages, 3 authors, 21h ago

Re: [PATCH] tls: don't abort the connection on signal-interrupted sends

From: Paolo Abeni <pabeni@redhat.com>
Date: 2026-07-24 07:40:39
Also in: lkml

On 7/23/26 6:26 PM, Jakub Kicinski wrote:
On Mon, 20 Jul 2026 11:08:47 +0200 Maximilian Immanuel Brandtner wrote:
quoted
When a signal interrupts a blocking send, tls_tx_records() treats the
resulting -ERESTARTSYS as a transmission failure and marks the socket
errored via tls_err_abort() with the raw error code. Later syscalls
return the kernel-internal errno 512 (ERESTARTSYS) to userspace, as the
signal it stems from is no longer pending during syscall exit and thus
never translated.
Can we just add ERESTARTSYS handling? I never heard of the other codes
you're checking TBH, can they actually surface?
FTR, I think only EAGAIN and ERESTARTSYS can be observed in the network
stack, and the latter only after sock_intr_errno() translation, i.e. on
sendmsg()/recvmsg() return path.

I would not add additional error code handling, until we have some proof
that it's needed.

/P
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help