From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f180.google.com (mail-il1-f180.google.com [209.85.166.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BEA0820D51C for ; Mon, 18 Aug 2025 23:24:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755559450; cv=none; b=URhUHVcClElloJCh5+isaAXZacd+gKGqxQLq21cr4C3BGkaK2gWTGwOMxDiFAS+NBR5pJQhZBYLX/CH7DCDdTMF8+wGl35GFGxphsw5EIRtosLUc9J6XKkbPiEc2MGk9NgN1nm4P2s+w5wDFCfs+4osU0GtqAvSe0bC4L/3+KnU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755559450; c=relaxed/simple; bh=88pFRxPpReZuhh52+eqRfeXx6L+V5nMjiJpTP1SIHQ4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MGr9zktngJeJzRW62S4Hj3f07ptA4C8TDn1490WFADrAE0AuFrrWqTtrG5H/+Hp7Dal8/5wE3Lw+KcWYQ3daClcePqcAbjyXzVar1b4506BmziBWAwNGPRGLwpb7kV3E4jrfNSVHdWBLeV90286EdVdLYO8S4jZxPlfGN0KKg/g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=iDZdhzFV; arc=none smtp.client-ip=209.85.166.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="iDZdhzFV" Received: by mail-il1-f180.google.com with SMTP id e9e14a558f8ab-3e570045f4bso22322045ab.2 for ; Mon, 18 Aug 2025 16:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1755559448; x=1756164248; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=RhajVtK66yTySwyrLZ2p1bbpHPegFOXW1beKh398ayc=; b=iDZdhzFVJfxw1MAPUbHO23epDWa7vElcnbwd6TkhM7kl6xvYdBdZI+uOES7JkjRfUl vbCaRGdSxXctYsBOsWdtxSZ/wqek+DiGQX4hETIwqFL9CNS0xBduEDHyeS84LZ4CZ7eS OOFtaRvTUXfP8KHgN8w2imHlc3u3gbRRmvNcRZ5YfeTqZ4hMc8+8JW16EyRZNiIK2/yV 2fX5HjuYy/Lxqf032/Tn0wHBR7RdAjQZaS5fHW00skHqx2/DskYsuSpnReahhV9LTWmI QixStgZOX3rcQJ0lPSPgYi0t/GPURbJ8Ku31qV5JQJH29h5I/PHxQu8PtI5P3yeT7zKR QBKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755559448; x=1756164248; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RhajVtK66yTySwyrLZ2p1bbpHPegFOXW1beKh398ayc=; b=pZ65VytpPbPSPsKMSM7JHUN02rIA02EHs1yuTaEiPplRxvibNyLITKGCmHb8G0HnUW loHKOLiPtwoSNH4hkO7MhTtr/2pXm6MfgbCxr9CWcbRWhNPk/KVeFQvdYQdB5SVjt1RC 4tXBcsR3uRSfaBGx094rWva+Xp3WVsYC4gHTDtQyancePst34OFS6+FQT5oQHzAIiYI1 2tr1e9tPkDcXBHO83I0NJFbVr5CLxSlf+NWI84XfHKikmkV6dFd00ZBlm2CqEOQPCdPQ eshW5S6XJcymDtuZjuWZ+Oqq4fWfmj6wNfdIlFfPDuFaaZnO3VMm3E1ftAaTLqVh5Snb 5UAg== X-Forwarded-Encrypted: i=1; AJvYcCUXpOGpmPm9L7we58z91nfQf+UMpuuEIKO08Ag67SPr1uG54B9XXEs33x1vRu513uN/OP4FUzyADEKahEM=@vger.kernel.org X-Gm-Message-State: AOJu0YxhxVqo6w7NKx2DavEGw+up/L+jj1dzpYrMpcvsRmV2I2KEcqUF L6mAmN/wYcANacfrHeUx8G22HRq6otJ6FK6If7XB3J6D0U4irKDYwE9Slc2BtK6pQA== X-Gm-Gg: ASbGnctTBq+HiOJR/UM7iSHcuUNiVriJVk08GvH87ia5kBO55td1nDic8TMHf/m7l6x mAJCrG9KVgn7LSSF7NGJgkPZNUzwzvpp/kN1BDPJeYI1A4ORs2VIIkPCEJKlUhChPCjLn6KtRwx od6Hpq2xoYYg5SMzRD8/cwpGmHEoKsr+XhnS9ks2Mik9aWzporx2rqTsIqiTiNU0M41n0tukMaa TeJORv5yg5uWGSKYQZnO7hKf1ESe5qNBypPAxCX7b2Lw+5vHAPgPg7Kx3W+tNXFRrUKzsuKRM1o E32i39U/QrnL3qKuTyBZG7OFD/Cn0fEaAVe3vrr6cztqZ6W4JLhf+A2wKIBune0rebk09/NZGmD 3zjS3TnsL7KlJ7VAu4kplplxG8RmbbiExMiMtVEDDl2VHUr5+ITRycMfBwffTmB8= X-Google-Smtp-Source: AGHT+IFW67NxhKSu0Fp/FRczJDzd+y9jHARgkjmLy8eub8JVPX4L9X4bg29UADbaCuXul/vURpj+Kg== X-Received: by 2002:a05:6e02:156e:b0:3e5:738c:3f3a with SMTP id e9e14a558f8ab-3e67667beb6mr10658085ab.21.1755559447494; Mon, 18 Aug 2025 16:24:07 -0700 (PDT) Received: from google.com (2.82.29.34.bc.googleusercontent.com. [34.29.82.2]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-50c94998c07sm2973697173.49.2025.08.18.16.24.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Aug 2025 16:24:06 -0700 (PDT) Date: Mon, 18 Aug 2025 16:24:03 -0700 From: Justin Stitt To: Thorsten Blum Cc: Thomas Bogendoerfer , linux-hardening@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/8] MIPS: sgi-ip22: Replace deprecated strcpy() in plat_mem_setup() Message-ID: References: <20250817183728.612012-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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250817183728.612012-1-thorsten.blum@linux.dev> Hi, On Sun, Aug 17, 2025 at 08:37:11PM +0200, Thorsten Blum wrote: > strcpy() is deprecated; use strscpy() instead. > > Link: https://github.com/KSPP/linux/issues/88 > Signed-off-by: Thorsten Blum Reviewed-by: Justin Stitt > --- > arch/mips/sgi-ip22/ip22-setup.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/mips/sgi-ip22/ip22-setup.c b/arch/mips/sgi-ip22/ip22-setup.c > index e06a818fe792..f083b25be13b 100644 > --- a/arch/mips/sgi-ip22/ip22-setup.c > +++ b/arch/mips/sgi-ip22/ip22-setup.c > @@ -11,6 +11,7 @@ > #include > #include > #include > +#include > #include > > #include > @@ -65,7 +66,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", *(ctype + 1) == '2' ? 1 : 0, > baud ? options : NULL); > } else if (!ctype || *ctype != 'g') { > -- > 2.50.1 > > Thanks Justin