From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (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 0090F26F29F for ; Thu, 27 Nov 2025 10:14:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764238480; cv=none; b=gy0SjYMbkKTB0Afl+UqQkdeD8vMN22n08LAXgeqecruYuXCiveM7qXv4sx7N7rhfe9snEJzWejINQJ3mW3UAaWOO9Bwf3BNRSJeYblXxCEevXLa8QGQc8G/uicBqXvhePq7FVOauIaWUJXtnKaCRAIRRIJu5JdJEfepZ/vfPn68= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764238480; c=relaxed/simple; bh=QS1qjqMrqJuWp3bcmlW6BSVzi8/TnZMTSryddcCmn+g=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=Gn8u9QFyeZLoTTu66QG42tRfVxFkqgIrdVcPWhwUX9QQco5fwXChulyMHzcXd66jW/fZwgz8pXmHY0Bf9xGM/YIPZdxESGegTxf/JAoeatq8dV3x4zmyEjKY1WrRE+fEDoSrpl5MCeNbKg73VZPCHKuK/4LhnPe2diHQH1/rlgM= 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=iduePU07; arc=none smtp.client-ip=91.218.175.188 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="iduePU07" Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1764238464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JzPFVO6dZJRnbkG0C2t+slzavet33W5YtnKF48O433c=; b=iduePU074rVpWooEgvDapuOFWD++xJB+cZ9gaAzfxV/r2FANz+nao9W0ZgO32KyN4uh+IF auwJB7cVaOIkPrSOTyYrHWB2km1RZPQA84ksBz9fxiSsd5Mfvtfg23ZkYu8hvIwZebkmTu bdXjSrRhADtaXjF3EsoGbHoJ9r4hCwY= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: [PATCH] ocfs2: Replace deprecated strcpy with strscpy X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Thorsten Blum In-Reply-To: <2fd2f96c-6fe7-4100-ad74-04e587165102@linux.alibaba.com> Date: Thu, 27 Nov 2025 11:13:51 +0100 Cc: Mark Fasheh , Joel Becker , ocfs2-devel@lists.linux.dev, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <69786F67-0B00-4FDE-8789-E22EDDB96CB1@linux.dev> References: <20251126114419.92539-1-thorsten.blum@linux.dev> <2fd2f96c-6fe7-4100-ad74-04e587165102@linux.alibaba.com> To: Joseph Qi X-Migadu-Flow: FLOW_OUT On 27. Nov 2025, at 02:13, Joseph Qi wrote: > On 2025/11/26 19:44, Thorsten Blum wrote: >> strcpy() has been deprecated [1] because it performs no bounds = checking >> on the destination buffer, which can lead to buffer overflows. = Replace >> it with the safer strscpy(). No functional changes. >>=20 >> Link: = https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy = [1] >> Signed-off-by: Thorsten Blum >> --- >> [...] >=20 > It seems that all 'include' above are not needed. They might not be necessary for the code to compile, but I think it's recommended to add the headers to make the relationship explicit. Thanks, Thorsten