Re: [PATCH net] tools: ynl: fix string attribute length to include null terminator
From: patchwork-bot+netdevbpf
Date: Mon Oct 27 2025 - 20:00:29 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Fri, 24 Oct 2025 15:24:38 +0200 you wrote:
> The ynl_attr_put_str() function was not including the null terminator
> in the attribute length calculation. This caused kernel to reject
> CTRL_CMD_GETFAMILY requests with EINVAL:
> "Attribute failed policy validation".
>
> For a 4-character family name like "dpll":
> - Sent: nla_len=8 (4 byte header + 4 byte string without null)
> - Expected: nla_len=9 (4 byte header + 5 byte string with null)
>
> [...]
Here is the summary with links:
- [net] tools: ynl: fix string attribute length to include null terminator
https://git.kernel.org/netdev/net/c/65f9c4c58889
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html