]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: tls: fix silent data drop under pipe back-pressure
authorJakub Kicinski <kuba@kernel.org>
Wed, 29 Apr 2026 22:29:38 +0000 (15:29 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sun, 3 May 2026 01:27:14 +0000 (18:27 -0700)
commit7e7be31bfdb066c1c780dcd6b1224078fc54063f
tree9f90b07b4c2afb94f0a84fa016fb347fc86fe45f
parentb42f68cf04260ae5b3e24cda7835d792ff35ac79
net: tls: fix silent data drop under pipe back-pressure

tls_sw_splice_read() uses len when advancing rxm->offset / rxm->full_len
after skb_splice_bits(), rather than copied (the actual number of bytes
successfully spliced into the pipe). When the destination pipe cannot
accept all the requested bytes, splice_to_pipe() returns fewer bytes
than len, and 'len - copied' of data is effectively skipped over.

Fixes: e062fe99cccd ("tls: splice_read: fix accessing pre-processed records")
Link: https://patch.msgid.link/20260429222944.2139041-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls_sw.c