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 linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <170138159609.3648803.17052375712894034660.b4-ty@chromium.org> Date: Thu, 30 Nov 2023 13:59:58 -0800 From: Kees Cook <keescook@...omium.org> To: Andrew Lunn <andrew@...n.ch>, Florian Fainelli <f.fainelli@...il.com>, Vladimir Oltean <olteanv@...il.com>, "David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Justin Stitt <justinstitt@...gle.com> Cc: Kees Cook <keescook@...omium.org>, netdev@...r.kernel.org, linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org, Alexander Lobakin <aleksander.lobakin@...el.com> Subject: Re: [PATCH v2] net: dsa: lan9303: use ethtool_sprintf() for lan9303_get_strings() On Thu, 05 Oct 2023 18:56:50 +0000, Justin Stitt wrote: > This pattern of strncpy with some pointer arithmetic setting fixed-sized > intervals with string literal data is a bit weird so let's use > ethtool_sprintf() as this has more obvious behavior and is less-error > prone. > > Nicely, we also get to drop a usage of the now deprecated strncpy() [1]. > > [...] Applied to for-next/hardening, thanks! [1/1] net: dsa: lan9303: use ethtool_sprintf() for lan9303_get_strings() https://git.kernel.org/kees/c/f1c7720549bf Take care, -- Kees Cook
Powered by blists - more mailing lists