From: patchwork-bot+netdevbpf@kernel.org
To: Kyuwon Cho <kyuwoncho18@gmail.com>
Cc: jmaloy@redhat.com, tung.quang.nguyen@est.tech,
davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
pabeni@redhat.com, willemb@google.com, horms@kernel.org,
ying.xue@windriver.com, netdev@vger.kernel.org,
tipc-discussion@lists.sourceforge.net, richard.alpe@ericsson.com
Subject: Re: [PATCH net] tipc: require a NUL-terminated media name
Date: Wed, 02 Dec 2026 02:40:23 +0000 [thread overview]
Message-ID: <179617922374.1132066.2080343224161537146.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <179553307369.1670514.10258867019821056369@gmail.com>
Hello:
This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:
On Wed, 25 Nov 2026 11:05:11 +0900 you wrote:
> TIPC_NLA_MEDIA_NAME is an NLA_STRING, which may lack a NUL terminator,
> but tipc_nl_media_get() and __tipc_nl_media_set() pass it to
> tipc_media_find(), which compares it with strcmp(). A name without a
> terminator at the end of the message makes strcmp() read past the
> attribute:
>
> BUG: KMSAN: uninit-value in strcmp (lib/string.c:267)
> strcmp (lib/string.c:267)
> __tipc_nl_media_set (net/tipc/bearer.c:82 net/tipc/bearer.c:1381)
> tipc_nl_media_set (net/tipc/bearer.c:1426)
> genl_family_rcv_msg_doit (net/netlink/genetlink.c:1114)
> genl_rcv_msg (net/netlink/genetlink.c:1209)
> netlink_rcv_skb (net/netlink/af_netlink.c:2585)
> Uninit was created at:
> __alloc_skb (net/core/skbuff.c:716)
> netlink_alloc_large_skb (net/netlink/af_netlink.c:1202)
> netlink_sendmsg (net/netlink/af_netlink.c:1896)
>
> [...]
Here is the summary with links:
- [net] tipc: require a NUL-terminated media name
https://git.kernel.org/netdev/net/c/a459df8f58b7
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2026-12-02 2:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 2:05 [PATCH net] tipc: require a NUL-terminated media name Kyuwon Cho
2026-11-30 3:54 ` Tung Quang Nguyen
2026-12-02 2:40 ` patchwork-bot+netdevbpf [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=179617922374.1132066.2080343224161537146.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=jmaloy@redhat.com \
--cc=kuba@kernel.org \
--cc=kyuwoncho18@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richard.alpe@ericsson.com \
--cc=tipc-discussion@lists.sourceforge.net \
--cc=tung.quang.nguyen@est.tech \
--cc=willemb@google.com \
--cc=ying.xue@windriver.com \
/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