mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] bonding: 3ad: fix 2 RCU issues in ad_mux_machine()
@ 2026-08-17  8:32 Hangbin Liu
  2026-08-17  8:32 ` [PATCH 1/2] bonding: 3ad: fix NULL pointer dereference " Hangbin Liu
  2026-08-17  8:32 ` [PATCH 2/2] bonding: 3ad: use RCU_INIT_POINTER for rcu pointer initialization Hangbin Liu
  0 siblings, 2 replies; 5+ messages in thread
From: Hangbin Liu @ 2026-08-17  8:32 UTC (permalink / raw)
  To: Jay Vosburgh, Andrew Lunn, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni
  Cc: Hangbin Liu, netdev, linux-kernel, Hangbin Liu, stable

This series addresses a NULL pointer dereference in ad_mux_machine()
when ad_port_selection_logic() detaches a port from its aggregator
but does not assign a replacement.

Patch 1 adds an early null aggregator check in ad_mux_machine() to
prevent the oops. Patch 2 is a minor RCU fix that uses RCU_INIT_POINTER()
when initializing port->aggregator to NULL.

Signed-off-by: Hangbin Liu <liuhangbin@kylinos.cn>
---
Hangbin Liu (2):
      bonding: 3ad: fix NULL pointer dereference in ad_mux_machine()
      bonding: 3ad: use RCU_INIT_POINTER for rcu pointer initialization

 drivers/net/bonding/bond_3ad.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
base-commit: 44871eadd07a7f004aa00cb87399461eea08c630
change-id: 20260806-bond_rcu-5d99f64547b7

Best regards,
-- 
Hangbin Liu <liuhangbin@kylinos.cn>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-17  9:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-17  8:32 [PATCH 0/2] bonding: 3ad: fix 2 RCU issues in ad_mux_machine() Hangbin Liu
2026-08-17  8:32 ` [PATCH 1/2] bonding: 3ad: fix NULL pointer dereference " Hangbin Liu
2026-08-17  8:32 ` [PATCH 2/2] bonding: 3ad: use RCU_INIT_POINTER for rcu pointer initialization Hangbin Liu
2026-08-17  8:37   ` Eric Dumazet
2026-08-17  9:23     ` Hangbin Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®