Re: [PATCH] kdb: Replace deprecated strcpy() with strscpy()
From: Doug Anderson
Date: Fri Jul 18 2025 - 18:49:23 EST
Hi,
On Fri, Jul 18, 2025 at 2:40 PM Thorsten Blum <thorsten.blum@xxxxxxxxx> wrote:
>
> strcpy() is deprecated; use strscpy() instead.
>
> Link: https://github.com/KSPP/linux/issues/88
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> kernel/debug/kdb/kdb_support.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
nit: Since this only covers things in the file `kdb_support.c` and not
everything in kernel/debug/kdb, perhaps that should be in the subject
line? Maybe "kdb: Replace deprecated strcpy() with strscpy() in
kdb_strdup()"?
Other than that, this looks fine to me.
Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>