From nobody Tue Feb 10 21:39:05 2026 Received: from out-174.mta0.migadu.com (out-174.mta0.migadu.com [91.218.175.174]) (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 2BAD72046A9 for ; Thu, 17 Apr 2025 19:21:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744917702; cv=none; b=JILV131/A3mK7bxCb/sfjexNABm8ReSAHQhM9T5sa54QSqCGo/cqRIoCeNRApwdc2vHG27lL1GAAXKnJIDgidBhmp2TXxFRwjq6ZTm7TDy7mKx2M2pecHrmc2sVYsvw4CgiJMT4KPx94xch9ez8aq/9pyRxCSb7Qww+YE1OJtfk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744917702; c=relaxed/simple; bh=QEDo5h9HZXac5uo5Oxegl4cZxwuq6drwyTIoNXKUOW0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TW9Z/p89P9ZulDDhJxjReqCxcnt9SxJVRFw+JlilLsC4TsoA4BsPfva8Laufbe4j5ZlHz0yiADE7PWn6eXl7nr6kefa8XM1Hq1z5T5JjSE/bko43fawdmKBVdlhJxcnPVlkUENldyang72S41jiaMkfiw1D0pC5k60WI75w+Fbk= 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=BWHZHfaI; arc=none smtp.client-ip=91.218.175.174 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="BWHZHfaI" 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=1744917688; 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=m4nhPsAXq16l8mLZ2dp76RiRIb0Pdz76My5DfrqpHO0=; b=BWHZHfaIMXwcSms3RZgM9SPl7nhvp3t7K6eG02JK+9YkLr2+/ItWbAzB3ynV+FZHTybERv 3N4fflNbIglkt5lFr/q1x3rg9cZvH3uxTNiiRnwKGKOeph3OJ1yA6VgdKs4U6WCWQVMtYd /iWO2wvuK2ZqMKPknR8fIhmY6NMf5sk= From: Thorsten Blum To: Richard Henderson , Matt Turner , "Paul E. McKenney" , Al Viro , Arnd Bergmann Cc: Thorsten Blum , linux-hardening@vger.kernel.org, linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] smp: Replace deprecated strcpy() with strscpy() Date: Thu, 17 Apr 2025 21:20:52 +0200 Message-ID: <20250417192054.69663-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 Cc: linux-hardening@vger.kernel.org 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.49.0