net/tls: fix device surprise removal with offload
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | net/tls: avoid NULL-deref on resync during device removalnet/ | +10 | 1 reply | |
| 2/3 | net/tls: fix state removal with feature flags offnet/ | +0 | 0 replies | |
| 3/3 | net/tls: don't ignore netdev notifications if no TLS featuresnet/ | +2 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Dirk van der Merwe |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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