Skip to content

Fix use-after-free after the TLS device goes down and up

Maxim Mikityanskiy netdev 2 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied 2/2
  2. v12 patches 11 repliesSuperseded

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net/tls: Replace TLS_RX_SYNC_RUNNING with RCUinclude/net/tls.h net/tls/tls_device.c+3 -80 repliesApplied
2/2net/tls: Fix use-after-free after the TLS device goes down and upinclude/net/tls.h net/tls/tls_device.c net/tls/tls_device_fallback.c +1 more+64 -50 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTariq ToukanJakub Kicinski
SeriesA-b
1/2R-b
2/2R-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/2] Fix use-after-free after the TLS device goes down and up

This small series fixes a use-after-free bug in the TLS offload code. The first patch is a preparation for the second one, and the second is the fix itself.

v2 changes:

Remove unneeded EXPORT_SYMBOL_GPL.

Maxim Mikityanskiy (2):
net/tls: Replace TLS_RX_SYNC_RUNNING with RCU
net/tls: Fix use-after-free after the TLS device goes down and up

 include/net/tls.h             | 10 +++++-
 net/tls/tls_device.c          | 60 ++++++++++++++++++++++++++++-------
 net/tls/tls_device_fallback.c |  7 ++++
 net/tls/tls_main.c            |  1 +
 4 files changed, 66 insertions(+), 12 deletions(-)
Signature · 1 line
2.25.1