From nobody Mon Oct 6 20:57:13 2025 Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (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 0DC601FECCD for ; Wed, 16 Jul 2025 21:18:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752700699; cv=none; b=UAJ6j+wRb3kTqNxAeY3HYM1yZllRv8lzNOe90hnrbeZ28Wj4f5wMEpE6AGPRJEz31vqPvFLwLEH+ioNG9b7OIunQeDReYcmdBYOFrZYBBY01o2hNdwLitkFJ2PCqigq5/VhhotOQJfmDE1ETNDRu5+uH1JVRxjgegFKVNLRKJwo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752700699; c=relaxed/simple; bh=wWqokGDMHBDhwGPIbUEwk+JQC46/td8MKpkyDnKaPFY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Dtqts9z8vOks9lNYIv8rN6aXA54wQSmjYeq2kWGm6zlJN10HbO3/GMwSBaiZneA3yfDjyTEMVUVoMMjtzwzweuqlVtfgDqvvs9d1vAnBpfX2VWJGoF6zSf9U1qWTVae7qXCKaJJ+IYOKDltE17nlmoTWDuvWSoLY84f7UucSx/4= 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.186 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-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 --- 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) =20 cnt =3D cpu->ipc_buffer[0] >> 32; if (cnt <=3D 0 || cnt >=3D 80) - strcpy(buf, "<<< BOGUS MSG >>>"); + strscpy(buf, "<<< BOGUS MSG >>>"); else { cp1 =3D (char *) &cpu->ipc_buffer[1]; cp2 =3D buf; --=20 2.50.1