From nobody Sat Feb 7 20:41:09 2026 Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [95.215.58.182]) (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 3C3DB21638A for ; Fri, 25 Apr 2025 07:47:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745567264; cv=none; b=W+o29xVLJWLY3CkZiGaYbSWSw6rFwO8Q++r5808PtxDmThgVKUF/iD170etiNURQtuZ+4UYJ1y4ts61LFjnIOOldkIK5er3rrvTd4Q/w+8idnfKZJkAMh4vq0y9O39sJmzMCqDHKhc5Z6qsOfqCNhnsPTD+1qEQ3n5ILwCCFI0o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745567264; c=relaxed/simple; bh=A0ORCzzboTptqzQxnn+YddyIWGCseBYrq7mDp61voSE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hVWKR3o8s4AojdZieYiUYU2zzkOT3zWP6WeKdyTazeG7fv7OzrxIV/NQnQwbT/Ihc0vDBvM8yhq610aTWE6GsnP6mGlLQNRx7VaYImLKEblhB/UA2UUZbSKSwq9TU8iG1Rc2wnPnSQi3kVYDFe7f6f7L3i+TElC5hKUEf2VnjGY= 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=pVsKmI6P; arc=none smtp.client-ip=95.215.58.182 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="pVsKmI6P" 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=1745567249; 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=gsutiEcM3sDMw4dwuLPrFVKpaX5l9po0YhcNfxpCrc0=; b=pVsKmI6PQvc2CIMuM3FvuBZa5/1wsLLzt0h3EHwLBi74bvtR2UHalBmvuPZmDDi7/4wQNo c7CHF4a4AKze/MYUcahi7GVXzlBjUlf2KB1XqzNtSRT8b8JXigjYILkBa338gekpRo70Io qgFLh8Xb8AlmBriT8Ikz7s5CCjkoKdw= From: Thorsten Blum To: Thomas Bogendoerfer Cc: linux-hardening@vger.kernel.org, Thorsten Blum , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: Replace strcpy() with strscpy() in vpe_elfload() Date: Fri, 25 Apr 2025 09:46:48 +0200 Message-ID: <20250425074651.1362-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/mips/kernel/vpe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c index 737d0d4fdcd3..2b67c44adab9 100644 --- a/arch/mips/kernel/vpe.c +++ b/arch/mips/kernel/vpe.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -582,7 +583,7 @@ static int vpe_elfload(struct vpe *v) struct module mod; /* so we can re-use the relocations code */ =20 memset(&mod, 0, sizeof(struct module)); - strcpy(mod.name, "VPE loader"); + strscpy(mod.name, "VPE loader"); =20 hdr =3D (Elf_Ehdr *) v->pbuffer; len =3D v->plen; --=20 2.49.0