linux/net/tls
Maximilian Immanuel Brandtner af0e5cdd03 tls: don't abort the connection on signal-interrupted sends
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.

An interrupted send is not a connection error: the partially sent record
stays queued and is resent later. Interrupt error codes are therefore
excluded from the abort in the same way as -EAGAIN.

Fixes: b341ca51d2 ("tls: Fix tls_sw_sendmsg error handling")
Signed-off-by: Maximilian Immanuel Brandtner <maxbr@linux.ibm.com>
Link: https://patch.msgid.link/20260805063109.1772314-1-maxbr@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-08-06 09:38:20 -07:00
..
Kconfig tls: remove tls_toe and the related driver 2026-06-12 16:43:10 -07:00
Makefile tls: remove tls_toe and the related driver 2026-06-12 16:43:10 -07:00
tls_device_fallback.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-02-26 10:23:00 -08:00
tls_device.c tls: device: push pending open record on splice EOF 2026-07-21 14:50:50 -07:00
tls_main.c tls: remove dead sockmap (psock) handling from the SW path 2026-06-16 08:55:41 -07:00
tls_proc.c tls: snmp: do not use SNMP_MIB_SENTINEL anymore 2025-09-08 18:06:21 -07:00
tls_strp.c tls: Suppress spurious saved_data_ready on all receive paths 2026-06-08 20:10:21 -07:00
tls_sw.c tls: don't abort the connection on signal-interrupted sends 2026-08-06 09:38:20 -07:00
tls.h tls: Suppress spurious saved_data_ready on all receive paths 2026-06-08 20:10:21 -07:00
trace.c net/tls: add tracing for device/offload events 2019-10-05 16:29:00 -07:00
trace.h move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00