Skip to content

net: tls: break the connection after a burst of empty data records

Jakub Kicinski linux-kselftest netdev 2 versions – 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 · linked by author and title

  1. v2 Latest5 patches 0 repliesApplied 5/5
  2. v15 patches 1 replySuperseded

Changes in v2 from the cover letter

- add missing poll() back to the selftests
v1: https://lore.kernel.org/[email protected]

Patches in v2 All 5 applied

#Subject and filesSizeRepliesApplied
1/5tls: Break the connection after a burst of empty data recordsinclude/net/tls.h net/tls/tls_sw.c+26 -40 repliesApplied
2/5tls: Consume empty data records in tls_sw_splice_read()net/tls/tls_sw.c+28 -200 repliesApplied
3/5selftests: tls: Skip the zero_len tests when TLS is unavailabletools/testing/selftests/net/tls.c+3 -00 repliesApplied
4/5selftests: tls: Extend coverage for zero-length recordstools/testing/selftests/net/tls.c+209 -170 repliesApplied
5/5selftests: tls: Cover the cap on consecutive empty recordstools/testing/selftests/net/tls.c+124 -00 repliesApplied

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchChuck Lever
1/5R-b
2/5
3/5
4/5
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net v2 0/5] net: tls: break the connection after a burst of empty data records

Deal with overload of zero-length TLS records. This is the next iteration of Chuck's series. I tried to make it as simple as possible - break the connection if sender floods us with zero-length records. Consume / discard those records even on PEEK to avoid infinite rx_list growth.

https://lore.kernel.org/[email protected]

v2:
- add missing poll() back to the selftests
v1: https://lore.kernel.org/[email protected]

Chuck Lever (3):
tls: Consume empty data records in tls_sw_splice_read()
selftests: tls: Skip the zero_len tests when TLS is unavailable
selftests: tls: Extend coverage for zero-length records

Jakub Kicinski (2):
tls: Break the connection after a burst of empty data records
selftests: tls: Cover the cap on consecutive empty records

 include/net/tls.h                 |   1 +
 net/tls/tls_sw.c                  |  77 +++++--
 tools/testing/selftests/net/tls.c | 353 ++++++++++++++++++++++++++++--
 3 files changed, 390 insertions(+), 41 deletions(-)
Signature · 1 line
2.56.0