From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (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 26F211A254E for ; Sun, 17 Aug 2025 18:38:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755455894; cv=none; b=QfRvUnRJk3dRJ/y9uXCOzTiiNv3OucDY3YPyPzzijIYvifpGW0M+xAL38nKuU7fMNlCpD6qg1CFY8RYaV6Gp0mO2QFXYJoR0XO/ltiWk5+FFEE9Hj26+A0rI7zB7QlSVIlDAT/XozApwUVqDuz8jtz0jXtZ/UqQaNxmz+R9SDw0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755455894; c=relaxed/simple; bh=sjVKdScJg1tpQ2DUxpoJnfCD3diHwlzHH3yVwhCQJTc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FA7EWQhiDKzlNPJUOOSLaUe/XAIUyCUxLuiE2kI6MwJFN5X9dhXFw/U7/N7dhDemTs6oLADZ+Myp4AfSCJmwkcvGKaPljOsfX367/TadeWwVITZfBAzhBuC1fYYDBS3fFxRMzLbTHNM2ZupQqBFQ/O51124uvbw+/1s534uyuwg= 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=OZOHNLMN; arc=none smtp.client-ip=91.218.175.184 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="OZOHNLMN" 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=1755455890; 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: in-reply-to:in-reply-to:references:references; bh=xw23XuAqvkfjRvWscmZ9n/cdkV9n+OCr1B3xpq9eAq8=; b=OZOHNLMNWmdE0QQiWgcj+p+qqlf8n0Kh4bSo8zUfrZ60Lug+KAy5jCy57xuUZ9QjDVPNE9 iqm0UzrK4t5zI77R74uau0mrYWzuhukcDJzERt778vmuFgrePGmrV8kbQuDeIQwbjRC1oM vP0fMYg58VQ7CPE/CNbQHt6pPiMuQTs= From: Thorsten Blum To: Thomas Bogendoerfer , Thorsten Blum Cc: linux-hardening@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/8] MIPS: sgi-ip32: Replace deprecated strcpy() in plat_mem_setup() Date: Sun, 17 Aug 2025 20:37:12 +0200 Message-ID: <20250817183728.612012-2-thorsten.blum@linux.dev> In-Reply-To: <20250817183728.612012-1-thorsten.blum@linux.dev> References: <20250817183728.612012-1-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-hardening@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/mips/sgi-ip32/ip32-setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/sgi-ip32/ip32-setup.c b/arch/mips/sgi-ip32/ip32-setup.c index aeb0805aae57..c2ebc4bbd866 100644 --- a/arch/mips/sgi-ip32/ip32-setup.c +++ b/arch/mips/sgi-ip32/ip32-setup.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -90,7 +91,7 @@ void __init plat_mem_setup(void) static char options[8] __initdata; char *baud = ArcGetEnvironmentVariable("dbaud"); if (baud) - strcpy(options, baud); + strscpy(options, baud); add_preferred_console("ttyS", *(con + 1) == '2' ? 1 : 0, baud ? options : NULL); } -- 2.50.1