Re: [PATCH net-next] net: l2tp_eth: Replace deprecated strcpy with strscpy in l2tp_eth_create
From: patchwork-bot+netdevbpf
Date: Tue Feb 24 2026 - 07:50:46 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Mon, 23 Feb 2026 08:41:34 +0100 you wrote:
> strcpy() has been deprecated [1] because it performs no bounds checking
> on the destination buffer, which can lead to buffer overflows. Replace
> it with the safer strscpy(). Use the two-argument version of strscpy()
> to copy 'cfg->ifname'.
>
> Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy [1]
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
>
> [...]
Here is the summary with links:
- [net-next] net: l2tp_eth: Replace deprecated strcpy with strscpy in l2tp_eth_create
https://git.kernel.org/netdev/net-next/c/e5a80f5e67ce
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html