From: patchwork-bot+netdevbpf@kernel.org
To: henry martin <bsdhenrymartin@gmail.com>
Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
pabeni@redhat.com, sdf.kernel@gmail.com,
nicolas.dichtel@6wind.com, sigefriedhyy@gmail.com,
horms@kernel.org, netdev@vger.kernel.org, stable@vger.kernel.org,
daniel.machon@microchip.com
Subject: Re: [PATCH net v3] net: zero the tail of ha->addr when allocating address list entries
Date: Mon, 30 Nov 2026 03:50:10 +0000 [thread overview]
Message-ID: <179601061074.3033121.15523033785789678776.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261123121325.3137049-1-bsdhenrymartin@gmail.com>
Hello:
This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:
On Mon, 23 Nov 2026 20:13:25 +0800 you wrote:
> __hw_addr_create() allocates entries with kmalloc() and initializes only
> addr_len bytes of ha->addr, but the dump paths emit each entry using the
> current dev->addr_len, so an entry created with a smaller addr_len is
> dumped with an uninitialized tail.
>
> dev->addr_len can grow at runtime and nothing flushes the lists. While
> addr_len is 0 every addition collapses into one node, because
> __hw_addr_add_ex() compares zero bytes, so the test adds one zero-length
> multicast entry to each of 64 tun devices and switches them to
> ARPHRD_IP6GRE (addr_len 16). RTM_GETMULTICAST then returned 64 entries
> of 16 bytes, 37 with non-zero bytes and 21 starting with a kernel heap
> pointer (e.g. 0xffff8188_04857ee0). tun has to flush dev->uc and
> dev->mc in TUNSETLINK as well, which is a separate patch; qmi_wwan raw
> IP mode and the HDLC attach/detach paths change addr_len in the same
> way, so tun is not the only case.
>
> [...]
Here is the summary with links:
- [net,v3] net: zero the tail of ha->addr when allocating address list entries
https://git.kernel.org/netdev/net/c/0c79efef1680
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-11-30 3:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 12:13 [PATCH net v3] net: zero the tail of ha->addr when allocating address list entries Henry Martin
2026-11-23 12:21 ` Yuyang Huang
2026-11-23 12:26 ` Eric Dumazet
2026-11-30 3:50 ` 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=179601061074.3033121.15523033785789678776.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=bsdhenrymartin@gmail.com \
--cc=daniel.machon@microchip.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nicolas.dichtel@6wind.com \
--cc=pabeni@redhat.com \
--cc=sdf.kernel@gmail.com \
--cc=sigefriedhyy@gmail.com \
--cc=stable@vger.kernel.org \
/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