Skip to content

macsec: reference counting fixes

Sabrina Dubroca netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3macsec: fix reference counting on RXSC in macsec_handle_framedrivers/net/macsec.c+8 -10 replies
2/3macsec: RXSAs don't need to hold a reference on RXSCsdrivers/net/macsec.c+1 -20 replies
3/3macsec: fix negative refcnt on parent linkdrivers/net/macsec.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/3] macsec: reference counting fixes

Patch 1 adds explicit reference counting on RXSCs, instead of the current implicit reference counting using the RXSA's refcount.

Patch 2 fixes possible kernel panics during module unload caused by an RCU callback that schedules another RCU callback, which the rcu_barrier() added in b196c22af5c3 ("macsec: add rcu_barrier() on module exit") didn't protect against.

Patch 3 fixes a refcounting issue with the underlying device for a macsec device when link creation fails.

Sabrina Dubroca (3):
macsec: fix reference counting on RXSC in macsec_handle_frame
macsec: RXSAs don't need to hold a reference on RXSCs
macsec: fix negative refcnt on parent link

 drivers/net/macsec.c | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)
Signature · 1 line
2.9.0