From: xiaoshoukui@gmail.com
To: edumazet@google.com
Cc: jmaloy@redhat.com, tung.quang.nguyen@est.tech,
netdev@vger.kernel.org, w@1wt.eu
Subject: Re: [PATCH net v2] tipc: fix memory leaks in bundle and fragment paths
Date: Mon, 5 Oct 2026 13:07:29 +0000 [thread overview]
Message-ID: <20261005130729.36294-1-xiaoshoukui@gmail.com> (raw)
In-Reply-To: <DU4P189MB3750FD6F099BF5A2FFF92F05C6962@DU4P189MB3750.EURP189.PROD.OUTLOOK.COM>
Hi Eric,
Since you previously provided helpful feedback on this thread, I would
appreciate your guidance on the appropriate way to address this TIPC
receive-path issue.
To summarize the current situation:
1. Demonstrated issue:
Streaming 30,000 crafted TIPC UDP packets to a 4 GB VM reliably triggers
unconsumed skb memory leaks originating from
tipc_buf_acquire() -> tipc_msg_extract() -> tipc_link_input() when
tipc_data_input() returns false. The memory growth eventually results in
an OOM kernel panic in 14 seconds.
2. Benchmark results:
I re-ran the benchmark for 10 back-to-back rounds with strict CPU
affinity. The results did not show any measurable throughput regression
between the pre-patch and post-patch versions with unlikely().
3. Current review concern:
Tung rejected the v2 implementation because of the concern that adding
caller-side cleanup checks may introduce overhead on the fast path, and
because these malformed inputs are not generated by compliant TIPC
senders.
Given that the remote memory exhaustion issue is reliably reproducible,
I would appreciate your thoughts on the preferred netdev/TIPC approach:
- Should the TIPC receive path defensively handle such malformed wire inputs
to prevent unbounded skb memory consumption and remote DoS?
- If the current caller-side cleanup is not the preferred approach, what would
be the cleanest way to ensure that the unconsumed skbs are released without
adding meaningful overhead to the normal receive path?
I am not wedded to the current v2 implementation. I would be happy to explore
a cleaner, more effective fix based on the maintainers' guidance.
Thanks,
Xiaoshoukui
prev parent reply other threads:[~2026-10-05 13:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-03 14:16 [PATCH net v2] tipc: fix memory leaks in bundle and fragment paths xiaoshoukui
2026-10-03 14:23 ` netdev-bot+sinfo
2026-10-05 1:49 ` Tung Quang Nguyen
2026-10-05 13:07 ` xiaoshoukui [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261005130729.36294-1-xiaoshoukui@gmail.com \
--to=xiaoshoukui@gmail.com \
--cc=edumazet@google.com \
--cc=jmaloy@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=tung.quang.nguyen@est.tech \
--cc=w@1wt.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox