From nobody Tue Dec 17 20:26:44 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 4YCSyX5s6cz5hhCr for ; Tue, 17 Dec 2024 20:26: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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YCSyX3Kzjz4ZpH for ; Tue, 17 Dec 2024 20:26:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734467204; 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=8dqsZ/GPFpPZ+/UDNV09P7CYEvS+89i5HJGk+gk2LXA=; b=ZvK9VODcZ4MWbj58cs2J9QLzcA0u6dH/vViUrHfusZ8azcbWdzHd+bg7Ygowl8mDzBfx3n WWqn7HQ6IG8zy7VavlyfBli5DMgxYwLw4KAz1LSLOkTwrmf91qH9r0MADpL6qhg+Reh9MR tbooX3qFwB5CourYv+to4yYDi1IceHpm3zgafqWBUzz6hn1f8KrJt5rKQTEocaSND85N7r MJcBR4/lk9UhBtBzAkezk9dRkJLS4wKkL3guV6Ut4fi6hC3u0ojwROTzkvRwdgHJPp/TxB d4FUnh7JhcGkm6fdrxCMCD8zzaE6j8F8VLVhL4fae9Lao1XpGdy17SsosiKrKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734467204; a=rsa-sha256; cv=none; b=hfChOXOv9MzArOgn2IPfG1FHEu/y1smXYyEFW80AYogGlSbY/yVEB0l5RqAQr4hHbWrn0L hYZXDul0DTsNsJ+ApF2SHMSnGzZAYu0uP7aD+xTkc325UzysHK/lqfZd8Ep/OTME2um3FC Rj3Tfmr0FbTKjMW199HvMRclLeeXAtxNi5S+2ce5kgj5ygmRKkcbD4FZeQPpjz64YcuzA2 dAmw2q0N3xOtPvJb30bn8W0ljL6F6JRYxnGneNNpfeKxg0C4awjpBiL/Why9JGQgMf44jk BZxddsWMnxYUoDLsyA3bbFPoFiUyLdcnmd4qSBTV429OfmFxAAEWZ/8Ct/sMBw== 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 4YCSyX2xZwzf0s for ; Tue, 17 Dec 2024 20:26:44 +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 4BHKQiA1065197 for ; Tue, 17 Dec 2024 20:26:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BHKQiGu065196 for bugs@FreeBSD.org; Tue, 17 Dec 2024 20:26:44 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 283391] [fusefs] fuse_internal_cache_attrs: 0xfffff801e6e51898 is not exclusive locked but should be Date: Tue, 17 Dec 2024 20:26:44 +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 Only Me 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=3D283391 Bug ID: 283391 Summary: [fusefs] fuse_internal_cache_attrs: 0xfffff801e6e51898 is not exclusive locked but should be Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: asomers@FreeBSD.org Incorrect locking in fusefs can lead to a panic, but only when DEBUG_VFS_LO= CKS is set in the kernel configuration. So far the only path I know that can trigger this panic is to come through CTL. Steps to Reproduce =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D $ pkg install -y fusefs-ext2 $ truncate -s 1g /tmp/ext2.img $ mkfs.ext2 /tmp/ext2.img $ sudo fuse-ext2 -o default_permissions,allow_other,rw+ /tmp/ext2.img /tmp/= mnt $ sudo truncate -s 1m /tmp/mnt/file $ sudo ctladm create -b block -o file=3D/tmp/mnt/file LUN created successfully backend: block device type: 0 LUN size: 1048576 bytes blocksize 512 bytes LUN ID: 0 Serial Number: MYSERIAL0000 Device ID: MYDEVID0000 $ sudo ctladm port -o on -p 0 That's usually enough to trigger the bug, but it may be necessary to read t= he resulting device file, too. Stack Trace =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00da0c4= a40 assert_vop_elocked() at assert_vop_elocked+0x56/frame 0xfffffe00da0c4a70 fuse_internal_cache_attrs() at fuse_internal_cache_attrs+0x47/frame 0xfffffe00da0c4ad0 fuse_internal_do_getattr() at fuse_internal_do_getattr+0x156/frame 0xfffffe00da0c4b80 fuse_vnode_size() at fuse_vnode_size+0x70/frame 0xfffffe00da0c4bd0 fuse_read_biobackend() at fuse_read_biobackend+0x56/frame 0xfffffe00da0c4c60 fuse_vnop_read() at fuse_vnop_read+0x12d/frame 0xfffffe00da0c4cc0 VOP_READ_APV() at VOP_READ_APV+0x96/frame 0xfffffe00da0c4cf0 ctl_be_block_dispatch_file() at ctl_be_block_dispatch_file+0x271/frame 0xfffffe00da0c4d90 ctl_be_block_worker() at ctl_be_block_worker+0xdab/frame 0xfffffe00da0c4e40 taskqueue_run_locked() at taskqueue_run_locked+0x1c2/frame 0xfffffe00da0c4e= c0 taskqueue_thread_loop() at taskqueue_thread_loop+0xd3/frame 0xfffffe00da0c4= ef0 fork_exit() at fork_exit+0xc7/frame 0xfffffe00da0c4f30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00da0c4f30 --- trap 0x2d0a6873, rip =3D 0x2038373030363372, rsp =3D 0x7720200a222f6461= , rbp =3D 0x617020200a303632 --- vnode 0xfffff80003af5528: type VREG state VSTATE_CONSTRUCTED op 0xffffffff82a23848 usecount 1, writecount 1, refcount 1 seqc users 0 hold count flags () flags (VMP_LAZYLIST) v_object 0xfffff80005d70e70 ref 0 pages 0 cleanbuf 0 dirtybuf 0 lock type fuse: SHARED (count 1) nodeid: 3, parent nodeid: 0, nlookup: 2, flag: 0x2000 fuse_internal_cache_attrs: 0xfffff80003af5528 is not exclusive locked but should be KDB: enter: lock violation --=20 You are receiving this mail because: You are the assignee for the bug.=