Skip to content

tls: splice_read fixes

Jakub Kicinski linux-kselftest netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesApplied 9/9

Patches in v1 All 9 applied

#Subject and filesSizeRepliesApplied
1/9selftests: tls: add helper for creating sock pairstools/testing/selftests/net/tls.c+29 -990 repliesApplied
2/9selftests: tls: factor out cmsg send/receivetools/testing/selftests/net/tls.c+70 -410 repliesApplied
3/9selftests: tls: add tests for handling of bad recordstools/testing/selftests/net/tls.c+154 -00 repliesApplied
4/9tls: splice_read: fix record type checknet/tls/tls_sw.c+10 -130 repliesApplied
5/9selftests: tls: test splicing cmsgstools/testing/selftests/net/tls.c+40 -00 repliesApplied
6/9tls: splice_read: fix accessing pre-processed recordsnet/tls/tls_sw.c+25 -80 repliesApplied
7/9selftests: tls: test splicing decrypted recordstools/testing/selftests/net/tls.c+49 -00 repliesApplied
8/9tls: fix replacing proto_opsnet/tls/tls_main.c+40 -70 repliesApplied
9/9selftests: tls: test for correct proto_opstools/testing/selftests/net/tls.c+55 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/9] tls: splice_read fixes

As I work my way to unlocked and zero-copy TLS Rx the obvious bugs in the splice_read implementation get harder and harder to ignore. This is to say the fixes here are discovered by code inspection, I'm not aware of anyone actually using splice_read.

Jakub Kicinski (9):
selftests: tls: add helper for creating sock pairs
selftests: tls: factor out cmsg send/receive
selftests: tls: add tests for handling of bad records
tls: splice_read: fix record type check
selftests: tls: test splicing cmsgs
tls: splice_read: fix accessing pre-processed records
selftests: tls: test splicing decrypted records
tls: fix replacing proto_ops
selftests: tls: test for correct proto_ops

 net/tls/tls_main.c                |  47 ++-
 net/tls/tls_sw.c                  |  40 ++-
 tools/testing/selftests/net/tls.c | 521 ++++++++++++++++++++++--------
 3 files changed, 456 insertions(+), 152 deletions(-)
Signature · 1 line
2.31.1