Thread (3 messages) flat view 3 messages, 3 authors, 13d ago

Re: [PATCH net v3] ptp: ocp: Fix board ID over-read

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-08-06 16:20:47
Also in: lkml, stable

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help