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: <20231124114011.GO50352@kernel.org> Date: Fri, 24 Nov 2023 11:40:11 +0000 From: Simon Horman <horms@...nel.org> To: Rahul Rameshbabu <rrameshbabu@...dia.com> Cc: netdev@...r.kernel.org, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Eric Dumazet <edumazet@...gle.com>, "David S. Miller" <davem@...emloft.net>, Saeed Mahameed <saeed@...nel.org>, Gal Pressman <gal@...dia.com>, Dragos Tatulea <dtatulea@...dia.com>, David Laight <David.Laight@...lab.com> Subject: Re: [PATCH net v1 2/2] net/mlx5e: Correct snprintf truncation handling for fw_version buffer used by representors On Tue, Nov 21, 2023 at 03:00:22PM -0800, Rahul Rameshbabu wrote: > snprintf returns the length of the formatted string, excluding the trailing > null, without accounting for truncation. This means that is the return > value is greater than or equal to the size parameter, the fw_version string > was truncated. > > Link: https://docs.kernel.org/core-api/kernel-api.html#c.snprintf > Fixes: 1b2bd0c0264f ("net/mlx5e: Check return value of snprintf writing to fw_version buffer for representors") > Signed-off-by: Rahul Rameshbabu <rrameshbabu@...dia.com> Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists