Netdev List
 help / color / mirror / Atom feed
* [PATCH net] tipc: Fix skb leak on multicast synchronization failure
@ 2026-12-03 16:54 Haoxiang Li
  2026-12-03 17:02 ` netdev-bot+sinfo
  0 siblings, 1 reply; 2+ messages in thread
From: Haoxiang Li @ 2026-12-03 16:54 UTC (permalink / raw)
  To: jmaloy, tung.quang.nguyen, davem, edumazet, kuba, pabeni, horms,
	tuong.t.lien
  Cc: netdev, tipc-discussion, Haoxiang Li

tipc_mcast_xmit() calls tipc_msg_reassemble() to prepare an skb
for local delivery and queues it in localq. If the subsequent
tipc_mcast_send_sync() fails, the function skips local delivery
and purges only the original packet queue, leaking the skb in
localq. Purge localq before exiting on synchronization failure.

Fixes: dca4a17d24ee ("tipc: fix potential hanging after b/rcast changing")
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
---
 net/tipc/bcast.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c
index 10d1ec593084..086e2a953a13 100644
--- a/net/tipc/bcast.c
+++ b/net/tipc/bcast.c
@@ -409,6 +409,7 @@ int tipc_mcast_xmit(struct net *net, struct sk_buff_head *pkts,
 			if (unlikely(rc)) {
 				pr_err("Unable to send SYN: method %d, rc %d\n",
 				       rcast, rc);
+				__skb_queue_purge(&localq);
 				goto exit;
 			}
 		}
-- 
2.25.1


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

end of thread, other threads:[~2026-12-03 17:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 16:54 [PATCH net] tipc: Fix skb leak on multicast synchronization failure Haoxiang Li
2026-12-03 17:02 ` netdev-bot+sinfo

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