[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250816143208.386842-4-thorsten.blum@linux.dev>
Date: Sat, 16 Aug 2025 16:32:08 +0200
From: Thorsten Blum <thorsten.blum@...ux.dev>
To: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
x86@...nel.org,
"H. Peter Anvin" <hpa@...or.com>,
"Ahmed S. Darwish" <darwi@...utronix.de>,
Sohil Mehta <sohil.mehta@...el.com>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>,
Eric Biggers <ebiggers@...gle.com>,
Dapeng Mi <dapeng1.mi@...ux.intel.com>,
Pawan Gupta <pawan.kumar.gupta@...ux.intel.com>
Cc: Thorsten Blum <thorsten.blum@...ux.dev>,
Ingo Molnar <mingo@...nel.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH] x86/cpu/intel: Replace deprecated strcpy() in init_intel()
strcpy() is deprecated; use strscpy() instead.
Link: https://github.com/KSPP/linux/issues/88
Signed-off-by: Thorsten Blum <thorsten.blum@...ux.dev>
---
Note: I already submitted this in April as part of another patch [1]
which doesn't apply anymore. Submitting this again as a separate patch.
[1]: https://lore.kernel.org/lkml/20250425074917.1531-3-thorsten.blum@linux.dev/
---
arch/x86/kernel/cpu/intel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
index 076eaa41b8c8..c4ea3325d3e7 100644
--- a/arch/x86/kernel/cpu/intel.c
+++ b/arch/x86/kernel/cpu/intel.c
@@ -607,7 +607,7 @@ static void init_intel(struct cpuinfo_x86 *c)
}
if (p)
- strcpy(c->x86_model_id, p);
+ strscpy(c->x86_model_id, p);
}
#endif
--
2.50.1
Powered by blists - more mailing lists