Skip to content

Commit a8a19a1

Browse files
tobluxgeertu
authored andcommitted
m68k: Replace strcpy() with strscpy() in hardware_proc_show()
strcpy() is deprecated; use strscpy() instead. Link: KSPP#88 Cc: linux-hardening@vger.kernel.org Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/20250421122839.363619-1-thorsten.blum@linux.dev Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
1 parent 0af2f6b commit a8a19a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/m68k/kernel/setup_mm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ static int hardware_proc_show(struct seq_file *m, void *v)
484484
if (mach_get_model)
485485
mach_get_model(model);
486486
else
487-
strcpy(model, "Unknown m68k");
487+
strscpy(model, "Unknown m68k");
488488

489489
seq_printf(m, "Model:\t\t%s\n", model);
490490
for (mem = 0, i = 0; i < m68k_num_memory; i++)

0 commit comments

Comments
 (0)