Re: [PATCH net] net: hns3: fix strscpy causing content truncation issue

From: patchwork-bot+netdevbpf
Date: Thu Aug 10 2023 - 14:50:30 EST


Hello:

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

On Wed, 9 Aug 2023 10:09:02 +0800 you wrote:
> From: Hao Chen <chenhao418@xxxxxxxxxx>
>
> hns3_dbg_fill_content()/hclge_dbg_fill_content() is aim to integrate some
> items to a string for content, and we add '\n' and '\0' in the last
> two bytes of content.
>
> strscpy() will add '\0' in the last byte of destination buffer(one of
> items), it result in finishing content print ahead of schedule and some
> dump content truncation.
>
> [...]

Here is the summary with links:
- [net] net: hns3: fix strscpy causing content truncation issue
https://git.kernel.org/netdev/net/c/5e3d20617b05

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