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

* Re: [PATCH net] tipc: Fix skb leak on multicast synchronization failure
  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
  0 siblings, 0 replies; 2+ messages in thread
From: netdev-bot+sinfo @ 2026-12-03 17:02 UTC (permalink / raw)
  To: Haoxiang Li
  Cc: jmaloy, tung.quang.nguyen, davem, edumazet, kuba, pabeni, horms,
	tuong.t.lien, netdev, tipc-discussion

Hi!

This is an automated message. This series looks like a fix, but its
commit messages seem to be missing some information:

 - How the issue was discovered, e.g. hit in production, hit during
   development, syzbot report, manual code inspection, LLM or static
   analysis tool scan.

 - Whether the issue was actually triggered, or is only theoretical
   (e.g. found by LLM and not proven at runtime). If it was triggered
   please include the symptoms, like the stack trace or kernel messages.

Please do not repost the series just to address the above. Instead,
reply to this email with the missing information, so that reviewers
can take it into account.

*IMPORTANT*: If you do repost (for other reasons) - please include
the relevant info in the cover letter or commit messages.
-- 
The evaluation is done by an LLM so it may be wrong, if you think
that is the case please reply and explain.

^ permalink raw reply	[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