FreeBSD Bugzilla – Attachment 233558 Details for
Bug 263625
FUSE_CREATE is broken on anything older than protocol version 7.9
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix FUSE_CREATE compat entry size read
0001-fusefs-fix-FUSE_CREATE-compat-entry-size.patch (text/plain), 1.06 KB, created by
Ali Abdallah
on 2022-04-28 09:42:39 UTC
(
hide
)
Description:
Fix FUSE_CREATE compat entry size read
Filename:
MIME Type:
Creator:
Ali Abdallah
Created:
2022-04-28 09:42:39 UTC
Size:
1.06 KB
patch
obsolete
>From 6ce431dc892fb69257c633fc7702a5dd6ae7b809 Mon Sep 17 00:00:00 2001 >From: Ali Abdallah <ali.abdallah@suse.com> >Date: Thu, 28 Apr 2022 11:28:49 +0200 >Subject: [PATCH] fusefs: fix FUSE_CREATE compat entry size > >Prior to 7.9, fuse_attr didn't have blksize and padding fields. On >FUSE_CREATE currently we don't check for that, which makes userspace >programs using older protocol version to fail. > >Add a check for that on FUSE_CREATE. >--- > sys/fs/fuse/fuse_vnops.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/sys/fs/fuse/fuse_vnops.c b/sys/fs/fuse/fuse_vnops.c >index f95ee1b7f6b..6274b95591e 100644 >--- a/sys/fs/fuse/fuse_vnops.c >+++ b/sys/fs/fuse/fuse_vnops.c >@@ -1043,7 +1043,10 @@ fuse_vnop_create(struct vop_create_args *ap) > } > > if (op == FUSE_CREATE) { >- foo = (struct fuse_open_out*)(feo + 1); >+ if (fuse_libabi_geq(data, 7, 9)) >+ foo = (struct fuse_open_out*)(feo + 1); >+ else >+ foo = (struct fuse_open_out*)((char*)feo + FUSE_COMPAT_ENTRY_OUT_SIZE); > } else { > /* Issue a separate FUSE_OPEN */ > struct fuse_open_in *foi; >-- >2.35.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 263625
: 233558 |
233566