Re: [PATCH net v3] ptp: ocp: Fix board ID over-read
From: patchwork-bot+netdevbpf
Date: Thu Aug 06 2026 - 12:34:23 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 4 Aug 2026 14:07:51 -0700 you wrote:
> The EEPROM board ID is a fixed 13-byte field and is not guaranteed to
> contain a NUL terminator. Passing it directly to
> devlink_info_version_fixed_put() treats it as a C string and may read
> beyond the field.
>
> Format at most OCP_BOARD_ID_LEN bytes into the existing local buffer
> before reporting the ID. Use a precision limit because the snprintf()
> output size alone does not bound the source string scan.
>
> [...]
Here is the summary with links:
- [net,v3] ptp: ocp: Fix board ID over-read
https://git.kernel.org/netdev/net/c/6b69f2ef10cd
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html