linux-m68k.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] m68k: mm: Replace strcpy() with strscpy() in hardware_proc_show()
@ 2025-04-21 12:28 Thorsten Blum
  2025-04-21 13:02 ` Jean-Michel Hautbois
  0 siblings, 1 reply; 5+ messages in thread
From: Thorsten Blum @ 2025-04-21 12:28 UTC (permalink / raw)
  To: Geert Uytterhoeven, Thorsten Blum, Jean-Michel Hautbois,
	Kees Cook, Greg Ungerer
  Cc: linux-hardening, linux-m68k, linux-kernel

strcpy() is deprecated; use strscpy() instead.

Link: https://github.com/KSPP/linux/issues/88
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
 arch/m68k/kernel/setup_mm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/m68k/kernel/setup_mm.c b/arch/m68k/kernel/setup_mm.c
index 0fba32552836..c7e8de0d34bb 100644
--- a/arch/m68k/kernel/setup_mm.c
+++ b/arch/m68k/kernel/setup_mm.c
@@ -484,7 +484,7 @@ static int hardware_proc_show(struct seq_file *m, void *v)
 	if (mach_get_model)
 		mach_get_model(model);
 	else
-		strcpy(model, "Unknown m68k");
+		strscpy(model, "Unknown m68k");
 
 	seq_printf(m, "Model:\t\t%s\n", model);
 	for (mem = 0, i = 0; i < m68k_num_memory; i++)
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-04-22  7:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-21 12:28 [PATCH] m68k: mm: Replace strcpy() with strscpy() in hardware_proc_show() Thorsten Blum
2025-04-21 13:02 ` Jean-Michel Hautbois
2025-04-21 20:35   ` Michael Schmitz
2025-04-21 20:54     ` Jean-Michel Hautbois
2025-04-22  7:03   ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).