diff mbox series

[5/5] fuse: Fix the struct fuse_args->in_args array size

Message ID 20250123-fuse-uring-for-6-14-incremental-to-v10-v1-5-8aee9f27c066@ddn.com (mailing list archive)
State New
Headers show
Series fuse: over-io-uring fixes | expand

Commit Message

Bernd Schubert Jan. 23, 2025, 4:55 p.m. UTC
The patch that made in_args[0] to be alway the header,
missed that the array size for in_args is too small for
some operations.

Fixes: fuse: make args->in_args[0] to be always the header
Spotted by: smatch / Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Bernd Schubert <bschubert@ddn.com>
---
 fs/fuse/fuse_i.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index 886c3af2195892cb2ca0a171cd7b930b6e92484c..fee96fe7887b30cd57b8a6bbda11447a228cf446 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -310,7 +310,7 @@  struct fuse_args {
 	bool is_ext:1;
 	bool is_pinned:1;
 	bool invalidate_vmap:1;
-	struct fuse_in_arg in_args[3];
+	struct fuse_in_arg in_args[4];
 	struct fuse_arg out_args[2];
 	void (*end)(struct fuse_mount *fm, struct fuse_args *args, int error);
 	/* Used for kvec iter backed by vmalloc address */