Skip to content

tls: misc bugfixes

Sabrina Dubroca netdev 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesApplied 7/7

Patches in v1 All 7 applied

#Subject and filesSizeRepliesApplied
1/7tls: trim encrypted message to match the plaintext on short splicenet/tls/tls_sw.c+4 -10 repliesApplied
2/7tls: wait for async encrypt in case of error during latter iterations of sendmsgnet/tls/tls_sw.c+4 -30 repliesApplied
3/7tls: always set record_type in tls_process_cmsgnet/tls/tls_main.c+2 -50 repliesApplied
4/7tls: wait for pending async decryptions if tls_strp_msg_hold failsnet/tls/tls_sw.c+4 -20 repliesApplied
5/7tls: don't rely on tx_work during send()net/tls/tls_sw.c+13 -00 repliesApplied
6/7selftests: net: tls: add tests for cmsg vs MSG_MOREtools/testing/selftests/net/tls.c+34 -00 repliesApplied
7/7selftests: tls: add test for short splice due to full skmsgtools/testing/selftests/net/tls.c+31 -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/7] tls: misc bugfixes

Jann Horn reported multiple bugs in kTLS. This series addresses them, and adds some corresponding selftests for those that are reproducible (and without failure injection).

Sabrina Dubroca (7):
tls: trim encrypted message to match the plaintext on short splice
tls: wait for async encrypt in case of error during latter iterations
of sendmsg
tls: always set record_type in tls_process_cmsg
tls: wait for pending async decryptions if tls_strp_msg_hold fails
tls: don't rely on tx_work during send()
selftests: net: tls: add tests for cmsg vs MSG_MORE
selftests: tls: add test for short splice due to full skmsg

 net/tls/tls_main.c                |  7 +---
 net/tls/tls_sw.c                  | 31 ++++++++++++---
 tools/testing/selftests/net/tls.c | 65 +++++++++++++++++++++++++++++++
 3 files changed, 92 insertions(+), 11 deletions(-)
Signature · 1 line
2.51.0