Re: [PATCH] devlink/param: replace deprecated strcpy() with strscpy()

From: Jakub Kicinski

Date: Wed May 06 2026 - 18:43:05 EST


On Wed, 6 May 2026 18:14:11 -0300 Álvaro Costa wrote:
> Replace strcpy() call used to extract a string parameter from param_data
> with strscpy(). Since strscpy() already performs bounds checking and
> ensures the destination string is NUL-terminated, remove the string
> length check as well.

The current code validates the netlink attr is nul-terminated.
I'm not sure if your patch retains current behavior.
I am sure, however, that checking whether the change is correct
is a poor use of everyone's time.
Please don't send these sort of patches for networking.
--
pw-bot: reject