public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] freevxfs: Replace one-element array with flexible array member
@ 2024-11-03 12:17 Thorsten Blum
  2024-11-05 11:23 ` Christoph Hellwig
  2024-11-06  9:42 ` Christian Brauner
  0 siblings, 2 replies; 5+ messages in thread
From: Thorsten Blum @ 2024-11-03 12:17 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-hardening, Thorsten Blum, linux-kernel

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 <thorsten.blum@linux.dev>
---
 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 */
 };
 
 /*
-- 
2.47.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] freevxfs: Replace one-element array with flexible array member
  2024-11-03 12:17 [PATCH] freevxfs: Replace one-element array with flexible array member Thorsten Blum
@ 2024-11-05 11:23 ` Christoph Hellwig
  2024-11-05 18:53   ` Andrew Morton
  2024-11-06  9:42 ` Christian Brauner
  1 sibling, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2024-11-05 11:23 UTC (permalink / raw)
  To: Thorsten Blum
  Cc: Christoph Hellwig, linux-hardening, linux-kernel, Andrew Morton

On Sun, Nov 03, 2024 at 01:17:09PM +0100, Thorsten Blum wrote:
> 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 <thorsten.blum@linux.dev>

Might be worth adding that nothing does a sizeof of the type or
variables of the type, so just hcanging it is fine.

Otherwise looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>

Andrew, can you pick this up through -mm as there is no freevxfs tree?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] freevxfs: Replace one-element array with flexible array member
  2024-11-05 11:23 ` Christoph Hellwig
@ 2024-11-05 18:53   ` Andrew Morton
  2024-11-06  5:25     ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2024-11-05 18:53 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Thorsten Blum, linux-hardening, linux-kernel, Christian Brauner

On Tue, 5 Nov 2024 03:23:06 -0800 Christoph Hellwig <hch@infradead.org> wrote:

> On Sun, Nov 03, 2024 at 01:17:09PM +0100, Thorsten Blum wrote:
> > 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 <thorsten.blum@linux.dev>
> 
> Might be worth adding that nothing does a sizeof of the type or
> variables of the type, so just hcanging it is fine.
> 
> Otherwise looks good:
> 
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> 
> Andrew, can you pick this up through -mm as there is no freevxfs tree?

I assume Christian can scoop this up?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] freevxfs: Replace one-element array with flexible array member
  2024-11-05 18:53   ` Andrew Morton
@ 2024-11-06  5:25     ` Christoph Hellwig
  0 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2024-11-06  5:25 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Christoph Hellwig, Thorsten Blum, linux-hardening, linux-kernel,
	Christian Brauner

On Tue, Nov 05, 2024 at 10:53:39AM -0800, Andrew Morton wrote:
> > Might be worth adding that nothing does a sizeof of the type or
> > variables of the type, so just hcanging it is fine.
> > 
> > Otherwise looks good:
> > 
> > Reviewed-by: Christoph Hellwig <hch@lst.de>
> > 
> > Andrew, can you pick this up through -mm as there is no freevxfs tree?
> 
> I assume Christian can scoop this up?

Fine with me :)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] freevxfs: Replace one-element array with flexible array member
  2024-11-03 12:17 [PATCH] freevxfs: Replace one-element array with flexible array member Thorsten Blum
  2024-11-05 11:23 ` Christoph Hellwig
@ 2024-11-06  9:42 ` Christian Brauner
  1 sibling, 0 replies; 5+ messages in thread
From: Christian Brauner @ 2024-11-06  9:42 UTC (permalink / raw)
  To: Christoph Hellwig, Thorsten Blum, Andrew Morton
  Cc: Christian Brauner, linux-hardening, linux-kernel

On Sun, 03 Nov 2024 13:17:09 +0100, Thorsten Blum wrote:
> Replace the deprecated one-element array with a modern flexible array
> member in the struct vxfs_dirblk.
> 
> 

Applied to the vfs.misc branch of the vfs/vfs.git tree.
Patches in the vfs.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.misc

[1/1] freevxfs: Replace one-element array with flexible array member
      https://git.kernel.org/vfs/vfs/c/fdfa4c02e6dd

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-11-06  9:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-03 12:17 [PATCH] freevxfs: Replace one-element array with flexible array member Thorsten Blum
2024-11-05 11:23 ` Christoph Hellwig
2024-11-05 18:53   ` Andrew Morton
2024-11-06  5:25     ` Christoph Hellwig
2024-11-06  9:42 ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox