From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-172.mta0.migadu.com (out-172.mta0.migadu.com [91.218.175.172]) (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 DFD351D79BE for ; Wed, 16 Jul 2025 21:18:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752700697; cv=none; b=DA7c2Wkk/phG9C3PqKcHHnnpODCUH12jlLQEuemsBlRN+6r9Y368l1ey9G/82k0fSheOaesCLX74X/nNKP1XDTkwhBwYKbv243kTWtzRr9XabziMItCgj7yVPWQuqlJ4l6Ur/pX+zHiel/VNh9Kw87hj2RfvBFr9rbqS4hpNdKs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752700697; c=relaxed/simple; bh=wWqokGDMHBDhwGPIbUEwk+JQC46/td8MKpkyDnKaPFY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BCjsj45mSMpOFAkiAzCoN/urGW+eLuI4mCS05Jfdl7nbXD7s3MyLSc8F33+87/5ZxQVmJCiSoob09AvwzD4njjjBDieMp+OO5r/IHAKPwjtcVS1R9gdXmeKqksvdbwxXoS/OI6qVnEvRkwbwguii3ZFNxV4/tYjb/HU+z0u6hmU= 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=MywjAst7; arc=none smtp.client-ip=91.218.175.172 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="MywjAst7" 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=1752700692; 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=SIYYCveydZN/yS9B5/K7xi00iELlTOe8UHhKrMt4XvI=; b=MywjAst7w1SPwR+9c/oPuvPoK7/klNjKu1PzTWQLK1tM5GvbXyD7pQiyNY/GSAioLLwEVU 9PO/OJbyjboPc5g1Uc6PdsY42S2GFuE6/yXXb15xiAwYNlAQsvEudiNWSGumpLAfkJNt1A 7xSUBjWxLbZ1LQznJaqBlJgs7cKwQhE= From: Thorsten Blum To: Richard Henderson , Matt Turner , Thorsten Blum Cc: linux-hardening@vger.kernel.org, linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND] alpha: smp: Replace deprecated strcpy() with strscpy() Date: Wed, 16 Jul 2025 23:17:22 +0200 Message-ID: <20250716211724.277212-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-alpha@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT strcpy() is deprecated; use strscpy() instead. Link: https://github.com/KSPP/linux/issues/88 Signed-off-by: Thorsten Blum --- arch/alpha/kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c index ed06367ece57..56155b988b9c 100644 --- a/arch/alpha/kernel/smp.c +++ b/arch/alpha/kernel/smp.c @@ -262,7 +262,7 @@ recv_secondary_console_msg(void) cnt = cpu->ipc_buffer[0] >> 32; if (cnt <= 0 || cnt >= 80) - strcpy(buf, "<<< BOGUS MSG >>>"); + strscpy(buf, "<<< BOGUS MSG >>>"); else { cp1 = (char *) &cpu->ipc_buffer[1]; cp2 = buf; -- 2.50.1