Date: Tue, 17 Oct 2023 16:42:31 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 274538] panic: vrefact: wrong use count 0 Message-ID: <bug-274538-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274538 Bug ID: 274538 Summary: panic: vrefact: wrong use count 0 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: trasz@FreeBSD.org Trying to run glxinfo(1) from Ubuntu Jammy under Wayland on amd64 FreeBSD 15-CURRENT results in the following panic: VNASSERT failed: old > 0 not true at /usr/home/trasz/git/freebsd-src/sys/kern/vfs_subr.c:3367 (vrefact) 0xfffff802707f5540: type VCHR state VSTATE_CONSTRUCTED op 0xffffffff816ae740 usecount 1, writecount 0, refcount 6 seqc users 0 rdev 0xfffff80009786c= 00 hold count flags () flags () lock type devfs: UNLOCKED dev drm/128 panic: vrefact: wrong use count 0 cpuid =3D 3 time =3D 1697560355 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00fc392= 820 vpanic() at vpanic+0x132/frame 0xfffffe00fc392950 panic() at panic+0x43/frame 0xfffffe00fc3929b0 vrefact() at vrefact+0x5e/frame 0xfffffe00fc3929d0 fgetvp_lookup() at fgetvp_lookup+0x97/frame 0xfffffe00fc392a30 namei_setup() at namei_setup+0x191/frame 0xfffffe00fc392a80 namei_emptypath() at namei_emptypath+0x49/frame 0xfffffe00fc392ae0 namei() at namei+0x661/frame 0xfffffe00fc392b40 linux_kern_statat() at linux_kern_statat+0x101/frame 0xfffffe00fc392c70 linux_newfstatat() at linux_newfstatat+0x59/frame 0xfffffe00fc392e00 amd64_syscall() at amd64_syscall+0x153/frame 0xfffffe00fc392f30 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe00fc392f30 --- syscall (262, Linux ELF64, linux_newfstatat), rip =3D 0x801513f2e, rsp = =3D 0x7fffffffc138, rbp =3D 0x1090540 --- Uptime: 2m15s Dumping 863 out of 16225 MB:..2%..12%..21%..32%..41%..51%..62%..71%..82%..9= 1% __curthread () at /usr/home/trasz/git/freebsd-src/sys/amd64/include/pcpu_aux.h:57 57 __asm("movq %%gs:%P1,%0" : "=3Dr" (td) : "n" (offsetof(stru= ct pcpu, (kgdb) #0 __curthread () at /usr/home/trasz/git/freebsd-src/sys/amd64/include/pcpu_aux.h:57 #1 doadump (textdump=3Dtextdump@entry=3D1) at /usr/home/trasz/git/freebsd-src/sys/kern/kern_shutdown.c:405 #2 0xffffffff80b4ee90 in kern_reboot (howto=3D260) at /usr/home/trasz/git/freebsd-src/sys/kern/kern_shutdown.c:526 #3 0xffffffff80b4f38f in vpanic ( fmt=3D0xffffffff811e38b7 "%s: wrong use count %d",=20 ap=3Dap@entry=3D0xfffffe00fc392990) at /usr/home/trasz/git/freebsd-src/sys/kern/kern_shutdown.c:970 #4 0xffffffff80b4f133 in panic (fmt=3D<unavailable>) at /usr/home/trasz/git/freebsd-src/sys/kern/kern_shutdown.c:894 #5 0xffffffff80c45b9e in vrefact (vp=3D<optimized out>) at /usr/home/trasz/git/freebsd-src/sys/kern/vfs_subr.c:3367 #6 0xffffffff80aee277 in fgetvp_lookup (fd=3D<optimized out>,=20 ndp=3Dndp@entry=3D0xfffffe00fc392b50, vpp=3Dvpp@entry=3D0xfffffe00fc392= ac8) at /usr/home/trasz/git/freebsd-src/sys/kern/kern_descrip.c:3095 #7 0xffffffff80c36461 in namei_setup (ndp=3Dndp@entry=3D0xfffffe00fc392b50= ,=20 dpp=3Ddpp@entry=3D0xfffffe00fc392ac8, pwdp=3Dpwdp@entry=3D0xfffffe00fc3= 92ac0) at /usr/home/trasz/git/freebsd-src/sys/kern/vfs_lookup.c:352 #8 0xffffffff80c36109 in namei_emptypath (ndp=3Dndp@entry=3D0xfffffe00fc39= 2b50) at /usr/home/trasz/git/freebsd-src/sys/kern/vfs_lookup.c:432 #9 0xffffffff80c35f31 in namei (ndp=3Dndp@entry=3D0xfffffe00fc392b50) at /usr/home/trasz/git/freebsd-src/sys/kern/vfs_lookup.c:653 #10 0xffffffff83b447d1 in linux_kern_statat (td=3D0xfffffe01192e0720,=20 flag=3D16384, fd=3D4,=20 path=3D0x8015d846f <error: Cannot access memory at address 0x8015d846f>= ,=20 pathseg=3DUIO_USERSPACE, sbp=3Dsbp@entry=3D0xfffffe00fc392c88) at /usr/home/trasz/git/freebsd-src/sys/compat/linux/linux_stats.c:103 #11 0xffffffff83b44519 in linux_newfstatat (td=3D<unavailable>,=20 args=3D0xfffffe01192e0b20) at /usr/home/trasz/git/freebsd-src/sys/compat/linux/linux_stats.c:606 #12 0xffffffff8104f693 in syscallenter (td=3D0xfffffe01192e0720) at /usr/home/trasz/git/freebsd-src/sys/amd64/amd64/../../kern/subr_syscall.c:1= 88 #13 amd64_syscall (td=3D0xfffffe01192e0720, traced=3D0) at /usr/home/trasz/git/freebsd-src/sys/amd64/amd64/trap.c:1194 #14 <signal handler called> #15 0x0000000801513f2e in ?? () Backtrace stopped: Cannot access memory at address 0x7fffffffc138 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274538-227>