can: isotp: backport of 2 patches that failed to apply to 6.6-stable
cover can: isotp: backport of 2 patches that failed to apply to 6.6-stable
This resubmits "can: isotp: fix use-after-free race with concurrent NETDEV_UNREGISTER" (commit 20bab8b88baac140ca3701116e1d486c7f51e311 upstream), which failed to apply to the 6.6-stable tree, together with "can: isotp: serialize TX state transitions under so->rx_lock" (commit cf070fe33bfbd1a4c21236078fadb35dd223a157 upstream) from the same upstream series, which builds on it and would otherwise fail for the same reason. This is the full set of 3 upstream isotp.c patches from 7.2-rc3 minus the 1 already queued by the normal stable process for 6.6 ("can: isotp: use unconditional synchronize_rcu() in isotp_release()").
This assumes the 1 already-queued isotp.c patch for 6.6-stable has landed by the time this is applied. If not, please let me know and I will rebase.
Oliver Hartkopp (2):
can: isotp: fix use-after-free race with concurrent NETDEV_UNREGISTER
can: isotp: serialize TX state transitions under so->rx_lock
net/can/isotp.c | 280 ++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 213 insertions(+), 67 deletions(-)
Signature · 1 line
2.43.0