From owner-freebsd-ports-bugs@freebsd.org Tue Aug 13 21:04:03 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7C6FCBCEB5 for ; Tue, 13 Aug 2019 21:04:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 467QDz2m3Bz4QQs for ; Tue, 13 Aug 2019 21:04:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 5EA98BCEB4; Tue, 13 Aug 2019 21:04:03 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5E70EBCEB2 for ; Tue, 13 Aug 2019 21:04:03 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 467QDz1w7Qz4QQr for ; Tue, 13 Aug 2019 21:04:03 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2379B1D7A0 for ; Tue, 13 Aug 2019 21:04:03 +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 x7DL436E097774 for ; Tue, 13 Aug 2019 21:04:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x7DL43B2097764 for ports-bugs@FreeBSD.org; Tue, 13 Aug 2019 21:04:03 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: ports-bugs@FreeBSD.org Subject: [Bug 239830] [sysutils/fusefs-lkl]: all operations return EBADF on CURRENT Date: Tue, 13 Aug 2019 21:04:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: asomers@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@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 cc 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 MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Aug 2019 21:04:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239830 Bug ID: 239830 Summary: [sysutils/fusefs-lkl]: all operations return EBADF on CURRENT Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: asomers@FreeBSD.org CC: ports-bugs@FreeBSD.org On FreeBSD CURRENT, trying to access the mountpoint of a fusefs-lkl mount returns EBADF. I don't know yet whether this is due to a bug in fusefs-lkl= , or a bug in the new fusefs(5) driver. > uname -a FreeBSD arginine-fbsd-head 13.0-CURRENT FreeBSD 13.0-CURRENT #7 r350943M: M= on Aug 12 22:46:56 UTC 2019=20=20=20=20 somers@arginine-fbsd-head:/usr/obj/usr/home/somers/freebsd/base/head/amd64.= amd64/sys/GENERIC amd64 > truncate -s 1g /tmp/ext2.img > mkfs.ext2 /tmp/ext2.img=20 mke2fs 1.45.3 (14-Jul-2019) Creating filesystem with 262144 4k blocks and 65536 inodes Filesystem UUID: b6ea7c26-79c2-445c-a128-3c7a2fc4c2c2 Superblock backups stored on blocks:=20 32768, 98304, 163840, 229376 Allocating group tables: done=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 Writing inode tables: done=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 Writing superblocks and filesystem accounting information: done > lklfuse -o type=3Dext2,debug /tmp/ext2.img /tmp/mnt FUSE library version: 2.9.9 nullpath_ok: 1 nopath: 1 utime_omit_ok: 1 [ 0.000000] Linux version 4.16.0 (root@head-amd64-default-job-13) (gcc version 9.1.0 (FreeBSD Ports Collection)) #1 Sat Aug 3 20:01:57 UTC 2019 [ 0.000000] bootmem address range: 0x802601000 - 0x806600000 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16159 [ 0.000000] Kernel command line: mem=3D64M virtio_mmio.device=3D292@0x10= 00000:1 [ 0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] Memory available: 64440k/65532k RAM [ 0.000000] SLUB: HWalign=3D32, Order=3D0-3, MinObjects=3D0, CPUs=3D1, N= odes=3D1 [ 0.000000] NR_IRQS: 4096 [ 0.000000] lkl: irqs initialized [ 0.000000] clocksource: lkl: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns [ 0.000008] lkl: time and timers initialized (irq2) [ 0.000038] pid_max: default: 4096 minimum: 301 [ 0.000077] Mount-cache hash table entries: 512 (order: 0, 4096 bytes) [ 0.000085] Mountpoint-cache hash table entries: 512 (order: 0, 4096 byt= es) [ 0.006054] console [lkl_console0] enabled [ 0.006083] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xfffffff= f, max_idle_ns: 19112604462750000 ns [ 0.006100] xor: automatically using best checksumming function 8regs= =20=20=20=20=20 [ 0.006181] random: get_random_u32 called from bucket_table_alloc+0x8b/0= x240 with crng_init=3D0 [ 0.006233] NET: Registered protocol family 16 [ 0.341124] raid6: int64x1 gen() 9406 MB/s [ 0.681041] raid6: int64x1 xor() 5210 MB/s [ 1.021097] raid6: int64x2 gen() 11317 MB/s [ 1.361247] raid6: int64x2 xor() 6949 MB/s [ 1.701154] raid6: int64x4 gen() 8793 MB/s [ 2.041063] raid6: int64x4 xor() 5944 MB/s [ 2.381000] raid6: int64x8 gen() 8385 MB/s [ 2.561119] random: fast init done [ 2.721020] raid6: int64x8 xor() 5898 MB/s [ 2.721045] raid6: using algorithm int64x2 gen() 11317 MB/s [ 2.721055] raid6: .... xor() 6949 MB/s, rmw enabled [ 2.721065] raid6: using intx1 recovery algorithm [ 2.721212] clocksource: Switched to clocksource lkl [ 2.721343] NET: Registered protocol family 2 [ 2.721565] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, = 4096 bytes) [ 2.721586] TCP established hash table entries: 512 (order: 0, 4096 byte= s) [ 2.721597] TCP bind hash table entries: 512 (order: 0, 4096 bytes) [ 2.721608] TCP: Hash tables configured (established 512 bind 512) [ 2.721649] UDP hash table entries: 128 (order: 0, 4096 bytes) [ 2.721660] UDP-Lite hash table entries: 128 (order: 0, 4096 bytes) [ 2.721816] virtio-mmio: Registering device virtio-mmio.0 at 0x1000000-0x1000123, IRQ 1. [ 2.722891] workingset: timestamp_bits=3D62 max_order=3D14 bucket_order= =3D0 [ 2.723841] SGI XFS with ACLs, security attributes, no debug enabled [ 2.744209] io scheduler noop registered [ 2.744235] io scheduler deadline registered [ 2.744298] io scheduler cfq registered (default) [ 2.744309] io scheduler mq-deadline registered [ 2.744318] io scheduler kyber registered [ 2.744338] virtio-mmio virtio-mmio.0: Failed to enable 64-bit or 32-bit DMA. Trying to continue, but this might not work. [ 2.746783] virtio_blk virtio0: [vda] 2097152 512-byte logical blocks (1= .07 GB/1.00 GiB) [ 2.747978] NET: Registered protocol family 10 [ 2.749093] Segment Routing with IPv6 [ 2.749144] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 2.749526] Btrfs loaded, crc32c=3Dcrc32c-generic [ 2.749651] Warning: unable to open an initial console. [ 2.749695] This architecture does not have kernel memory protection. [ 2.751010] EXT4-fs (vda): mounting ext2 file system using the ext4 subsystem [ 2.753282] EXT4-fs (vda): mounted filesystem without journal. Opts:=20 warning: multithreaded mode not supported unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 1832 INIT: 7.23 flags=3D0x00010033 max_readahead=3D0x00010000 INIT: 7.19 flags=3D0x00000011 max_readahead=3D0x00010000 max_write=3D0x00020000 max_background=3D0 congestion_threshold=3D0 unique: 1, success, outsize: 40 unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 40, pid: 1836 fgetattr[281694020108288] (null) unique: 2, error: -9 (Bad file descriptor), outsize: 16 The GETATTR operation was triggered by doing "stat /tmp/mnt" in another win= dow. Notice that nodeid is 1. In the FUSE protocol, nodeid 1 always refers to = the mountpoint. Obviously, EBADF is not a valid error for that operation. This bug cannot be reproduced in 11.3-RELEASE-p1. --=20 You are receiving this mail because: You are on the CC list for the bug.=