Skip to content

net/tls: fix device surprise removal with offload

Jakub Kicinski netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net/tls: avoid NULL-deref on resync during device removalnet/tls/tls_device.c+10 -51 reply
2/3net/tls: fix state removal with feature flags offnet/tls/tls_device.c+0 -60 replies
3/3net/tls: don't ignore netdev notifications if no TLS featuresnet/tls/tls_device.c+2 -10 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDirk van der Merwe
1/3R-b
2/3R-b
3/3R-b

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

Read the v1 thread

Cover letter [PATCH net 0/3] net/tls: fix device surprise removal with offload

Hi!

This series fixes two issues with device surprise removal. First we need to take a read lock around resync, otherwise netdev notifier handler may clear the structures from under our feet.

Secondly we need to be careful about the interpretation of device features. Offload has to be properly cleaned up even if the TLS device features got cleared after connection state was installed.

Jakub Kicinski (3):
net/tls: avoid NULL-deref on resync during device removal net/tls: fix state removal with feature flags off net/tls: don't ignore netdev notifications if no TLS features

 net/tls/tls_device.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
Signature · 1 line
2.21.0