From nobody Tue Apr 02 16:27:40 2024 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 4V8CwJ2QXgz5Gx4b for ; Tue, 2 Apr 2024 16:27:44 +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 4V8CwH5gWwz4Xpw for ; Tue, 2 Apr 2024 16:27:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712075263; a=rsa-sha256; cv=none; b=aQUvkzxCeMXjxINfgpgA28aufLpWlqIQU7GZ2j9YTJNWOFrYzD3JebY+xCXRJtOai1D/3f R33p108eR9K+YZ31OTKNkHgsDjRnUqmOdF50k5SFLb/0tt7Fbp5gS3fchvN/m+2uxg5OPZ d2tBbHWvGhHVgL8vIDzRmnzyQFJMw5R052QymkySq/6LxcGV1gojebeXb2T2IF5xytTOGI 4dp5M/oppE3ZNMR+ryO+HZBRbB7DVXW1NWo9TsvCtJiFnx0NJg3g2mUwXSNh8i0TwDMBKE WdydzvgwuaUsFjMsdJj/JjCIkYjj3mWb92Qykm3O2iKLt/yw1pG1NK4GeDcxuA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712075263; 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=roIYU3OAxpdfubRkN4e9NyxHKVCC/7uh73xpLlpVL9Y=; b=X+B0geg7PdBgWT+PMvzofPFq0hjS+vzYoUSrbA77+jqGT+4fcEaXHu3m/y0dFCblE/hMIP A/V3aWvILJ2wTmb/XWqGG96BDuuzqaiJSlW+9gjCU0Lfvsqy1fxSTPfoYdg5/j+tT6Sq6i 5lewb4HKftt3JHS+q94MNEQ8TW8vzG4czIcdds2ueb/3SSU1icaVK6KwccJtk7TGLVj7aN 8APkdTy8Q+3YXdkHU3SDZX+WElCGy/I5EthWvJd2FgbatM4shhrksy98Oi2hvEd9g/oFUc stEq4gAKcJKmVs8nH+N01vG28fZrLpC8V0SLvYfDm22iOgscrUWcwIfFVnfKew== 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 4V8CwH58gKzwvd for ; Tue, 2 Apr 2024 16:27:43 +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 432GRhaO067749 for ; Tue, 2 Apr 2024 16:27:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 432GRhoX067733 for bugs@FreeBSD.org; Tue, 2 Apr 2024 16:27:43 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 278135] fusefs: pathconf(_PC_MIN_HOLE_SIZE) fails on new mountpoint with unopened file Date: Tue, 02 Apr 2024 16:27:40 +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: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: asomers@FreeBSD.org 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 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278135 Bug ID: 278135 Summary: fusefs: pathconf(_PC_MIN_HOLE_SIZE) fails on new mountpoint with unopened file Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: asomers@FreeBSD.org When a program calls pathconf(path, _PC_MIN_HOLE_SIZE) on a fusefs file sys= tem, if the kernel doesn't already know whether the file system supports FUSE_LS= EEK, it must issue a FUSE_LSEEK operation to find out. It sends that operation = to the provided path. BUT, the current implementation neglects to ensure that= a fuse file handle is open. That's a bug. We never noticed it before because the test suite only uses fpathconf, not pathconf. Steps to Reproduce =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 1) Mount a file system that is known to support FUSE_LSEEK 2) Without doing any open(), stat(), access(), or similar, try pathconf("/mountpoint/hello.txt", _PC_MIN_HOLE_SIZE) 3) It ought to return 1, but it will instead fail with EINVAL --=20 You are receiving this mail because: You are the assignee for the bug.=