[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<174494224374.79616.15601499519996041916.git-patchwork-notify@kernel.org>
Date: Fri, 18 Apr 2025 02:10:43 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Kees Cook <kees@...nel.org>
Cc: kuba@...nel.org, andrew+netdev@...n.ch, davem@...emloft.net,
edumazet@...gle.com, pabeni@...hat.com, claudiu.manoil@....com,
vladimir.oltean@....com, wei.fang@....com, xiaoning.wang@....com,
jeroendb@...gle.com, hramamurthy@...gle.com, idosch@...dia.com,
petrm@...dia.com, mcoquelin.stm32@...il.com, alexandre.torgue@...s.st.com,
horms@...nel.org, geoff@...radead.org, wsa+renesas@...g-engineering.com,
aleksander.lobakin@...el.com, pkaligineedi@...gle.com, willemb@...gle.com,
joshwash@...gle.com, 0x1207@...il.com, rmk+kernel@...linux.org.uk,
jszhang@...nel.org, petr@...arici.cz, netdev@...r.kernel.org,
imx@...ts.linux.dev, linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, richardcochran@...il.com,
jacob.e.keller@...el.com, shannon.nelson@....com, ziweixiao@...gle.com,
shailend@...gle.com, yong.liang.choong@...ux.intel.com, ahalaney@...hat.com,
kory.maincent@...tlin.com, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH] net: ethtool: Adjust exactly ETH_GSTRING_LEN-long stats to
use memcpy
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Tue, 15 Apr 2025 18:02:15 -0700 you wrote:
> Many drivers populate the stats buffer using C-String based APIs (e.g.
> ethtool_sprintf() and ethtool_puts()), usually when building up the
> list of stats individually (i.e. with a for() loop). This, however,
> requires that the source strings be populated in such a way as to have
> a terminating NUL byte in the source.
>
> Other drivers populate the stats buffer directly using one big memcpy()
> of an entire array of strings. No NUL termination is needed here, as the
> bytes are being directly passed through. Yet others will build up the
> stats buffer individually, but also use memcpy(). This, too, does not
> need NUL termination of the source strings.
>
> [...]
Here is the summary with links:
- net: ethtool: Adjust exactly ETH_GSTRING_LEN-long stats to use memcpy
https://git.kernel.org/netdev/net-next/c/151e13ece86d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists