summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2026-11-11 10:55:22 -0800
committerJakub Kicinski <kuba@kernel.org>2026-11-12 11:14:40 -0800
commite6dfa7bfdf1596eb45e83ee8f81920ab22625662 (patch)
treea666c0333f51f1c785d2c15fa323684991e3f607 /rust/kernel
parent512f2cb736641da091c87342acfcb3fd1148bcdd (diff)
selftests: tls: Cover the cap on consecutive empty records
Check through both recv() and splice() that a run of 128 empty data records is consumed and the data record behind it is delivered, and that a run of 129 breaks the connection with EBADMSG before the data record can be read. Two runs of 128 with a read returning EAGAIN in between must not break the connection, the cap applies to a burst the reader cannot keep up with, not to the connection as a whole. kTLS cannot send an empty record. A TLS 1.3 record of type 0 whose only byte is the data content type decrypts to one, since the receiver strips the 0 as padding. Reviewed-by: Chuck Lever <cel@kernel.org> Link: https://patch.msgid.link/20261111185522.2859004-6-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions