From nobody Sat Oct 4 12:41:18 2025 Received: from out-180.mta0.migadu.com (out-180.mta0.migadu.com [91.218.175.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F6338462 for ; Sat, 16 Aug 2025 14:34:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755354881; cv=none; b=T9FXK/5dyjPl6aX3Pydzu8Mse6ii/ouH9QcxqLaR/4vVsIg4DSbp4Cc95JoUGJJs6d+TdDePR0xvCD3DDtrzy7LAfppwkltF33eGnqYgIHFC0BHDvt7KTe+12HS+0qWdXTpm1mOMk39IYMUJ/OzJxpw7f5tEoRb4fQjenAh/K7M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755354881; c=relaxed/simple; bh=/m4r4n3DCZDR+D/6soZNQEByd1DUSGxRVldlxW9knvs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NY8+d2+9uYpWKOW3G6a9X/5gr507Q1fho1zkdSL450RniwrzhUO94d3AjWnn2bwF5avjoKG0+BeITVXY7MCk99ijB/FRv25gN7K1mXc891fYbLWeAQzeMyFqPt4dRe1sv2AE8rwzLDi7XHu+5lj+r3uC/wp2BrY2KwDqglG1rco= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=t9Whfvkk; arc=none smtp.client-ip=91.218.175.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="t9Whfvkk" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1755354875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=YH+CcFBJex3jqbOvIAk2XxbUjPkJEFpmgZTAWcKZ2z4=; b=t9Whfvkk2edENZLRYuepgC78Ip8+s6VoU0LVVa6K8IBr81forbQ2iMYiD9Sz+rtYucqOa2 cJBOV35HEyw9/Bw1lVM2UXuq/tTn5aNKTLeCOrk34/pZGTYWtKtpZCnn6RlQ3LYgsZaC5y u7ypb0o29qN/CZK8pkmqIaLwFT2AYr8= From: Thorsten Blum To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , "Ahmed S. Darwish" , Sohil Mehta , "Peter Zijlstra (Intel)" , Eric Biggers , Dapeng Mi , Pawan Gupta Cc: Thorsten Blum , Ingo Molnar , linux-kernel@vger.kernel.org Subject: [PATCH] x86/cpu/intel: Replace deprecated strcpy() in init_intel() Date: Sat, 16 Aug 2025 16:32:08 +0200 Message-ID: <20250816143208.386842-4-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" strcpy() is deprecated; use strscpy() instead. Link: https://github.com/KSPP/linux/issues/88 Signed-off-by: Thorsten Blum --- 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) } =20 if (p) - strcpy(c->x86_model_id, p); + strscpy(c->x86_model_id, p); } #endif =20 --=20 2.50.1