linux/net/tls
Rishikesh Jethwani eaa39f9f8a tls: device: push pending open record on splice EOF
On kTLS device-offload sockets, sendfile() with count > EOF can reach
->splice_eof() with a fully assembled but still-open TLS record left
pending. tls_device_splice_eof() only flushes partially sent records,
so an abrupt close() can drop the final record and the peer receives
a short file.

Fix tls_device_splice_eof() to also push pending open records.
This matches the software path, where splice EOF already flushes
pending open records.

Fixes: d4c1e80b0d ("tls/device: Use splice_eof() to flush")
Link: https://lore.kernel.org/netdev/CAMPsyauZ+jzG9AysO0FWv6ZY0kvCUpjX_U7o=oOjCuOQ87BCgg@mail.gmail.com/
Reported-by: Nils Juenemann <nils.juenemann@gmail.com>
Signed-off-by: Rishikesh Jethwani <rjethwani@purestorage.com>
Tested-by: Nils Juenemann <nils.juenemann@gmail.com>
Link: https://patch.msgid.link/20260709224436.1608993-2-rjethwani@purestorage.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-07-21 14:50:50 -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 net/tls: Consume empty data records in tls_sw_read_sock() 2026-07-07 10:12:11 +02:00
tls.h tls: Suppress spurious saved_data_ready on all receive paths 2026-06-08 20:10:21 -07:00
trace.c
trace.h move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00