panic: ffs_valloc: dup alloc Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 463569 82663 0 0 0 0 syz-executor *197911 25159 60928 0x10 0x4000000 1K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830dc629) at panic+0x1e5 sys/kern/subr_prf.c:198 ffs_inode_alloc(fffffd806cce8bb0,a1ed,fffffd807f7d34e0,ffff80003568b410) at ffs_inode_alloc+0x96c sys/ufs/ffs/ffs_alloc.c:404 ufs_makeinode(a1ed,fffffd806d15c8c0,ffff80003568b660,ffff80003568b690) at ufs_makeinode+0xcb sys/ufs/ufs/ufs_vnops.c:1728 ufs_symlink(ffff80003568b4e0) at ufs_symlink+0x54 sys/ufs/ufs/ufs_vnops.c:1293 VOP_SYMLINK(fffffd806d15c8c0,ffff80003568b660,ffff80003568b690,ffff80003568b590,ffff800029fe7c00) at VOP_SYMLINK+0x11a sys/kern/vfs_vops.c:432 dosymlinkat(ffff800030fafc28,200000c0,ffffff9c,20000180) at dosymlinkat+0x1dd sys/kern/vfs_syscalls.c:1806 syscall(ffff80003568b810) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80003568b810) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4927bd41f20, count: 6 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: ffs_valloc: dup alloc ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830dc629) at panic+0x1e5 sys/kern/subr_prf.c:198 ffs_inode_alloc(fffffd806cce8bb0,a1ed,fffffd807f7d34e0,ffff80003568b410) at ffs_inode_alloc+0x96c sys/ufs/ffs/ffs_alloc.c:404 ufs_makeinode(a1ed,fffffd806d15c8c0,ffff80003568b660,ffff80003568b690) at ufs_makeinode+0xcb sys/ufs/ufs/ufs_vnops.c:1728 ufs_symlink(ffff80003568b4e0) at ufs_symlink+0x54 sys/ufs/ufs/ufs_vnops.c:1293 VOP_SYMLINK(fffffd806d15c8c0,ffff80003568b660,ffff80003568b690,ffff80003568b590,ffff800029fe7c00) at VOP_SYMLINK+0x11a sys/kern/vfs_vops.c:432 dosymlinkat(ffff800030fafc28,200000c0,ffffff9c,20000180) at dosymlinkat+0x1dd sys/kern/vfs_syscalls.c:1806 syscall(ffff80003568b810) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80003568b810) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4927bd41f20, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80003568b1a0 rbx 0xffff800029b7cd87 rdx 0xffff8000011a62c0 rcx 0xffff800030fafc28 rax 0xffff800029b7bff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xc522d7ecdc1e1e29 r11 0x1255b2577945d665 r12 0xffff800029b7cb88 r13 0 r14 0 r15 0x1 rip 0xffffffff8133b9e5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003568b190 ss 0 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=197911 pid=25159 tcnt=2 stat=onproc flags process=10 proc=4000000 runpri=17, usrpri=86, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800030faef80,0xffff80002a0402b0 process=0xffff8000ffff5238 user=0xffff800035686000, vmspace=0xfffffd806bff26e8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 82663 463569 55246 0 7 0 syz-executor 82663 202692 55246 0 2 0x4000000 syz-executor 25159 396804 72448 60928 2 0x10 syz-executor *25159 197911 72448 60928 7 0x4000010 syz-executor 69502 502110 73359 0 2 0 syz-executor 69502 409963 73359 0 3 0x4000080 fsleep syz-executor 76490 484955 38392 0 3 0x80 nanoslp syz-execut