lkml.org 
[lkml]   [2026]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH net] netpoll: pass buffer size to egress_dev() to avoid MAC truncation
From
Date
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Fri, 01 May 2026 02:58:41 -0700 you wrote:
> egress_dev() formats np->dev_mac via snprintf() but receives buf as
> a bare char *, so it cannot derive the buffer size from the pointer. The
> size argument was hardcoded to MAC_ADDR_STR_LEN (3 * ETH_ALEN - 1 = 17),
> which is silly wrong in two ways:
>
> 1) misleading kernel log output on the MAC-selected target path
> (np->dev_name[0] == '\0'); for example "aa:bb:cc:dd:ee:ff doesn't
> exist, aborting" was logged as "aa:bb:cc:dd:ee:f doesn't exist,
> aborting".
>
> [...]

Here is the summary with links:
- [net] netpoll: pass buffer size to egress_dev() to avoid MAC truncation
https://git.kernel.org/netdev/net/c/76b93a810757

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



\
 
 \ /
  Last update: 2026-05-05 04:02    [W:0.036 / U:9.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog