From nobody Sat Oct 4 11:10:12 2025 Received: from out-178.mta0.migadu.com (out-178.mta0.migadu.com [91.218.175.178]) (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 8EE3D2AE97 for ; Sun, 17 Aug 2025 23:21:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755472911; cv=none; b=CriHMw3Qt3dIpf0n+3szsEzGJIhcsbUivsdk55lMlX3jmUjxBuyIU1CKJ6EeIHltcArOOyzR9Yu/1qApLV32Az4LtK0BZ1MOPQADH6r8AZRVOMgZQFPZ/4zFxaIIP+D/Byboxl8WIg+zPPU2/XFlWGHHh2dTUSMBM8WDtSabSnc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755472911; c=relaxed/simple; bh=wWqokGDMHBDhwGPIbUEwk+JQC46/td8MKpkyDnKaPFY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ky36tmFUqmTc8U7nDAe2tMRvCCujAl2mgPiE5Fu0gBXWPgH8R9cDfwmNF+ag5+6k6Ov9C1+Q6j7LAz4p1AFLW996RHIeqzZtEOST3LMa/k11W76K6ueRRQDx3fmkc+/AmmIAN/OCN5AOSqQffuiG+G70dZk9ctzmnpYwn9k9/Lk= 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=JYac9BRa; arc=none smtp.client-ip=91.218.175.178 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="JYac9BRa" 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=1755472907; 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=JYac9BRaohmbqI7o2h8cKY89Fe6NDk4lV4wIt7FZEZBagZ3R0tkepWFNv/++gVZSlitMgS /FuG9V24sfu4Vc93IrA0ZIsW5r8qLwJwP8Y4D+85pcs6oeaZIurqxlUyBcKvGo0QT/i7E/ QvcWxWkGl/xus08DpWc7lhI65QmoN7k= From: Thorsten Blum To: Richard Henderson , Matt Turner Cc: linux-hardening@vger.kernel.org, Thorsten Blum , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND] alpha: smp: Replace deprecated strcpy() with strscpy() Date: Mon, 18 Aug 2025 01:21:36 +0200 Message-ID: <20250817232138.634361-1-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