Fixes for TLS and ULP
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | tls: add clone callback to prevent NULL crash casenet/ | +10 | 0 replies | |
| 2/5 | tls: init mixed SW/TOE proto to prevent NULL callnet/ | +6 | 0 replies | |
| 3/5 | tls: fix concurrency in TOE device list iterationsnet/ | +53 | 0 replies | |
| 4/5 | tcp: add socket lock to TCP_ULP getsockopt safelynet/ | +29 | 0 replies | |
| 5/5 | tcp: fix ULP diag race by RCU read locks properlynet/ net/ | +16 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH mptcp-next 0/5] Fixes for TLS and ULP
From: Geliang Tang <[email protected]>
This series fixes several pre-existing issues in the TLS/TOE and TCP ULP layers, found during MPTCP KTLS development.
Patches summary:
tls: add clone callback - prevent NULL pointer crash when listening socket carries TLS ULP.
tls: init mixed SW/TOE proto - avoid NULL function pointers on TOE fallback.
tls: fix concurrency in TOE device list iteration - safe two-pass snapshot to eliminate list poisoning crash.
tcp: add socket lock to TCP_ULP getsockopt - fix use-after-free in getsockopt(TCP_ULP).
tcp: fix ULP diag race by RCU - protect diag reads with RCU, paired with release barrier.
All fixes are independent of MPTCP and can be merged separately.
Geliang Tang (5):
tls: add clone callback to prevent NULL crash case
tls: init mixed SW/TOE proto to prevent NULL call
tls: fix concurrency in TOE device list iterations
tcp: add socket lock to TCP_ULP getsockopt safely
tcp: fix ULP diag race by RCU read locks properly
net/ipv4/tcp.c | 44 ++++++++++++++++++++----------- net/ipv4/tcp_diag.c | 15 ++++++----- net/ipv4/tcp_ulp.c | 14 +++++----- net/tls/tls_main.c | 16 ++++++++++++ net/tls/tls_toe.c | 63 ++++++++++++++++++++++++++++++++++++++------- 5 files changed, 114 insertions(+), 38 deletions(-)
Signature · 1 line
2.53.0