summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorChuck Lever <cel@kernel.org>2026-11-11 10:55:19 -0800
committerJakub Kicinski <kuba@kernel.org>2026-11-12 11:14:40 -0800
commitdb6a6c6863bd22b2543e313cb8e4807fdd33778b (patch)
tree760ddd8928ef57b41c2f0d759ff34b65fbbcc465 /tools/perf/scripts/python/bin
parent201f0531e413d6cdd9673a77bea340839e1713ae (diff)
tls: Consume empty data records in tls_sw_splice_read()
A zero-length application_data record decrypts to full_len == 0, so tls_sw_splice_read() splices zero bytes and returns zero. A zero return from a splice read means EOF, and the caller tears down a connection that is still live. Consume the record and fetch the next one, as tls_sw_read_sock() does. The cap on consecutive empty records bounds the loop. When an empty record precedes a close_notify, splice(2) now returns -EINVAL from the control-record test instead of a false EOF. A splice that reaches an alert record already reports -EINVAL. Fixes: c46234ebb4d1 ("tls: RX path for ktls") Reported-by: Sabrina Dubroca <sd@queasysnail.net> Closes: https://lore.kernel.org/netdev/akaoXcfamBp8_mYe@krikkit/ Signed-off-by: Chuck Lever <cel@kernel.org> Link: https://patch.msgid.link/20261111185522.2859004-3-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions