[Bug 259974] [fusefs]: Looking up .. is TODO

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 21 Nov 2021 18:42:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259974

            Bug ID: 259974
           Summary: [fusefs]: Looking up .. is TODO
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org

If the VFS calls VOP_LOOKUP for ".." where dvp is the root of a fuse file
system, fusefs will panic with the message "Looking up .. is TODO" (the panic
message is not completely accurate, because looking up ".." DOES work for any
other directory).

This panic has always been present, though before SVN r348135 it was a page
fault rather than an explicit panic.  I never knew any way to trigger this
behavior until now.  The following sequence of operations will trigger the
panic:

First install necessary packages

$ sudo pkg install fish fusefs-ext2

Start the fuse server in one terminal

$ rm -f /tmp/ext2.img && truncate -s 128m /tmp/ext2.img && mkfs.ext2
/tmp/ext2.img && sudo fuse-ext2 /tmp/ext2.img /tmp/mnt -o allow_other,rw+,debug

Access the fuse file system and trigger the bug from another terminal

$ sudo su
# fish
# cd /tmp/mnt
# mkdir -p a/b
# cd a/b
# /bin/sh
# cd /
# umount /tmp/mnt
umount: unmount of /tmp/mnt failed: Device busy
# exit

-- 
You are receiving this mail because:
You are the assignee for the bug.