From nobody Thu Apr 28 09:42:39 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C80C51AB9948 for ; Thu, 28 Apr 2022 09:42:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KprJH3v5qz3CCH for ; Thu, 28 Apr 2022 09:42:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6657E16612 for ; Thu, 28 Apr 2022 09:42:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 23S9gdwI029094 for ; Thu, 28 Apr 2022 09:42:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23S9gdVP029093 for bugs@FreeBSD.org; Thu, 28 Apr 2022 09:42:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 263625] FUSE_CREATE is broken on anything older than protocol version 7.9 Date: Thu, 28 Apr 2022 09:42:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ali.abdallah@suse.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651138959; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M+SBHE3UJCXsHeSoxGO04m56ZPPBALA5dsxUKcapehA=; b=X58TUd02e/AXS+GlXPuzkRaqZ9C3SAiqdgOKXMzxyhxwK27zlBFtCTHdCiIM2JzD+5N2xd J2dkMiIZ61+e413FcSwcZF2937cwh5QwVg+3iXWcG/BvdD2K4ud8w5YYFlBVd8VaVcM2HU mmlwkmzQ53gwcXGJN8rTsAZ0DSUpcrHzP1x2iHZMCDJl7xqc47GFZbLRz3jD1Su7/7JGCr /uGjN+0j/BYxToXY9xj7at+tkXPN0g/8b4L26nv4IWcvwFTTIxJBbsurdqqcjRzKEsbWky jfGclv9UqEgwbZxJlSex7urNPuWv2z812b5FAApevicy7kJNSgYLTRk5Dj6ifQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651138959; a=rsa-sha256; cv=none; b=HwttLvqPi1NWBSC2tKhjZ3T+wHkEsNt0uLQkXHkYhGqRaiEAW+SJfEIr5IaM/NkjpAqHcu 4nS7Dg6C9e1d6U9zxXe/PJthJpan71kPJdqmK6bBXJfcIwuSviqBqBCPaMZ/7qnvgrnD1P Dm/MS3dZWmxnQrhJntG9MkLmyH4+j78urJXehtt4BE2ekYH3zFFByzo5Yl+0F5QtmOfmc5 EQ6U+Yojdva1LZDdGMhiG5U6+V2Cp3dMTYqSrB0GYnoiBEf/+v2L7PjpZVVMSmO/RsF3f6 WUa6iHl4P6pBiqQNrhiUH4TB2cGJx4zxZuofGYNtsI/cw/HR2mbaH5EvhD10yw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263625 Bug ID: 263625 Summary: FUSE_CREATE is broken on anything older than protocol version 7.9 Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: ali.abdallah@suse.com Created attachment 233558 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D233558&action= =3Dedit Fix FUSE_CREATE compat entry size read While porting webdav fuse filesystem to FreeBSD, which uses protocol version 7.5, I noticed that FUSE_CREATE always fails. After digging into the code, I noticed that on FUSE_CREATE, the cast of fuse_open_out to fuse_entry_out has the wrong offset for protocol versions prior to 7.9. AFAIK, prior to 7.9 version, fuse_attr didn't have blksize and padding fiel= ds, so FUSE_COMPAT_ENTRY_OUT_SIZE offset should be used instead in this case. The attached patch should fix the issue. --=20 You are receiving this mail because: You are the assignee for the bug.=