lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 03 Jun 2021 21:30:07 +0000 From: patchwork-bot+netdevbpf@...nel.org To: Kees Cook <keescook@...omium.org> Cc: jay.vosburgh@...onical.com, lkp@...el.com, j.vosburgh@...il.com, vfalico@...il.com, andy@...yhouse.net, davem@...emloft.net, kuba@...nel.org, linux-kernel@...r.kernel.org, netdev@...r.kernel.org, linux-hardening@...r.kernel.org Subject: Re: [PATCH v3] net: bonding: Use strscpy_pad() instead of manually-truncated strncpy() Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Wed, 2 Jun 2021 13:58:20 -0700 you wrote: > Silence this warning by using strscpy_pad() directly: > > drivers/net/bonding/bond_main.c:4877:3: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] > 4877 | strncpy(params->primary, primary, IFNAMSIZ); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Additionally replace other strncpy() uses, as it is considered deprecated: > https://www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings > > [...] Here is the summary with links: - [v3] net: bonding: Use strscpy_pad() instead of manually-truncated strncpy() https://git.kernel.org/netdev/net-next/c/43902070fb7b You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists