From patchwork Sun Nov 3 12:17:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thorsten Blum X-Patchwork-Id: 13860360 Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) (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 8CC581632EA for ; Sun, 3 Nov 2024 12:18:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730636327; cv=none; b=ZgkmisZOoMG+d0/ONrYpc0tG8F5EzzaFIkbxrayVdReDnUWI+YnSyKHAEOr3278mM96qrUri6S6MdLgy6CdKaBFHYP20yvB2aqCHkMy2Q8yToDEqaXxCPI+qrEYnLUlDqJSDuN9vS5RGb28xIZXChWXmIeydPznOXox+aI6uvEE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730636327; c=relaxed/simple; bh=JBR5OYH6HGg/nV5dE4xfZ8tnOwX8Q8ZrEz65y0CMjeg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RB2c1eqJM2A1ve4A5KjukxlFejL2QxCbSKmHDd+IJ/rF+Ad0T4nIlXe3mkd3JrUdUcorQbrgDtTTpYmYfHPIdvgH6tKDDjtVsnldwuMJcwrHtmy9n8zGYhQEc+NoMWA8NAKIH6CZMHMI5RX74yTFakRMeeQOceoWD6KP+unmT5k= 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=PSlF0CDo; arc=none smtp.client-ip=95.215.58.180 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="PSlF0CDo" 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=1730636318; 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=NyBn8heEe2xkvBGW5DCMbPyQa9qZDQbub0DgJexbKCs=; b=PSlF0CDofKfBxlvP+aoNL49ohrb6cDn6esGcuRPUqBJ4bwIpp+2ij0OUGAB3ZHIxv7L8u6 rsl28sasHfc4m9jt+AAAFxrlg9OtT5g4h2hwWbryuyzGTd4CIRMVGCLnQuHvli+H6/8aO3 J3zBX42O94CAiEZrSWf/+JSU6A7U2LM= From: Thorsten Blum To: Christoph Hellwig Cc: linux-hardening@vger.kernel.org, Thorsten Blum , linux-kernel@vger.kernel.org Subject: [PATCH] freevxfs: Replace one-element array with flexible array member Date: Sun, 3 Nov 2024 13:17:09 +0100 Message-ID: <20241103121707.102838-3-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-hardening@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Replace the deprecated one-element array with a modern flexible array member in the struct vxfs_dirblk. Link: https://github.com/KSPP/linux/issues/79 Signed-off-by: Thorsten Blum Reviewed-by: Christoph Hellwig --- fs/freevxfs/vxfs_dir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/freevxfs/vxfs_dir.h b/fs/freevxfs/vxfs_dir.h index fbcd603365ad..8c67627f2a3d 100644 --- a/fs/freevxfs/vxfs_dir.h +++ b/fs/freevxfs/vxfs_dir.h @@ -25,7 +25,7 @@ struct vxfs_dirblk { __fs16 d_free; /* free space in dirblock */ __fs16 d_nhash; /* no of hash chains */ - __fs16 d_hash[1]; /* hash chain */ + __fs16 d_hash[]; /* hash chain */ }; /*