Re: [PATCH] kernel: debug: Replace deprecated strcpy() with strscpy()
From: Doug Anderson
Date: Fri Jul 18 2025 - 18:49:07 EST
Hi,
On Fri, Jul 18, 2025 at 12:32 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/gdbstub.c | 29 +++++++++++++++--------------
> 1 file changed, 15 insertions(+), 14 deletions(-)
nit: Since this only covers things in the file `gdbstub.c` and not
everything in kernel/debug, perhaps that should be in the subject
line? Maybe "kernel: debug: gdbstub: Replace deprecated strcpy() with
strscpy()"?
Other than that, this looks fine to me.
Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>