panic: ffs_valloc: dup alloc Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 17951 45258 0 0x2 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834675ab) at panic+0x1cf sys/kern/subr_prf.c:198 ffs_inode_alloc(ffffee806d4b1600,41ed,ffffee8007ffd750,ffff80002a7f1768) at ffs_inode_alloc+0x94e ufs_mkdir(ffff80002a7f17d0) at ufs_mkdir+0xfc sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(ffffee806d401ce0,ffff80002a7f1930,ffff80002a7f1960,ffff80002a7f1860) at VOP_MKDIR+0x101 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a7667d8,ffffff9c,7d4c4ac50410,1ff) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3062 syscall(ffff80002a7f1ad0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7f1ad0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d4c4ac504b0, count: 7 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: ffs_valloc: dup alloc ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834675ab) at panic+0x1cf sys/kern/subr_prf.c:198 ffs_inode_alloc(ffffee806d4b1600,41ed,ffffee8007ffd750,ffff80002a7f1768) at ffs_inode_alloc+0x94e ufs_mkdir(ffff80002a7f17d0) at ufs_mkdir+0xfc sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(ffffee806d401ce0,ffff80002a7f1930,ffff80002a7f1960,ffff80002a7f1860) at VOP_MKDIR+0x101 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a7667d8,ffffff9c,7d4c4ac50410,1ff) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3062 syscall(ffff80002a7f1ad0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7f1ad0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d4c4ac504b0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a7f14f0 rbx 0xcbf6 __ALIGN_SIZE+0xbbf6 rdx 0 rcx 0 rax 0xffff80002a7667d8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x87fa963df3b2939f r11 0x914bce8c638d2455 r12 0 r13 0xffffee806db3ef00 r14 0 r15 0x1 rip 0xffffffff81aeb9a5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a7f14e0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=17951 pid=45258 tcnt=1 stat=onproc flags process=2 proc=0 runpri=17, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7367d0,0xffff80002a766fb0 process=0xffff80002a79d690 user=0xffff80002a7ec000, vmspace=0xffffee807f236e60 estcpu=36, cpticks=7, pctcpu=0.0, user=2, sys=5, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 31664 471041 83430 0 3 0x80 nanoslp syz-executor 31664 469025 83430 0 3 0x4000080 bpf syz-executor 31664 378651 83430 0 3 0x4000080 fsleep syz-executor 10636 223945 73673 0 3 0x80 nanoslp syz-executor 10636 50467 73673 0 3 0x4000080 kqread syz-executor 10636 370049 73673 0 3 0x4000080 fsleep syz-executor 8906 129030 74291 0 3 0x80 nanoslp syz-executor 8906 371342 74291 0 3 0x4000080 fsleep syz-executor 8906 182805 74291 0 3 0x4000080 kqpoll syz-executor 8906 470698 74291 0 3 0x4000080 fsleep syz-executor 74291 517945 58960 0 3 0x82 nanoslp syz-executor 83430 95959 58960 0 3 0x82 nanoslp syz-executor 73673 220949 58960 0 2 0xc82 syz-executor *45258 17951 58960 0 7 0x2 syz-executor 58960 485424 43825 0 3 0x82 wait syz-executor 43825 319283 52676 0 3 0x10008a sigsusp ksh 52676 192299 34650 0 3 0x98 kqread sshd-session 34650 228938 39896 0 3 0x92 kqread sshd-session 65785 466568 1 0 3 0x100083 ttyin getty 39896 448464 1 0 3 0x88 kqread sshd 60566 497644 32924 73 3 0x1100090 kqread syslogd 32924 456461 1 0 3 0x100082 sbwait syslogd 24881 460730 1 0 3 0x100080 kqread resolvd 38203 136572 15851 77 3 0x100092 kqread dhcpleased 65258 477129 15851 77 3 0x100092 kqread dhcpleased 15851 197357 1 0 3 0x80 kqread dhcpleased 66490 156742 0 0 3 0x14200 bored smr 92698 224088 0 0 3 0x14200 pgzero zerothread 65172 124788 0 0 3 0x14200 aiodoned aiodoned 95409 31985 0 0 3 0x14200 syncer update 41795 348577 0 0 3 0x14200 cleaner cleaner 57426 408276 0 0 3 0x14200 reaper reaper 39504 317786 0 0 3 0x14200 pgdaemon pagedaemon 86434 260415 0 0 3 0x14200 bored viomb 4342 505061 0 0 3 0x40014200 acpi0 acpi0 12585 340079 0 0 3 0x14200 bored softnet0 85728 206258 0 0 3 0x14200 smrbar systqmp 6345 460137 0 0 3 0x14200 bored systq 51095 382212 0 0 3 0x40014200 tmoslp softclock 50451 256974 0 0 3 0x40014200 idle0 1 131922 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11039 12228K 12432K 166960K 12528 0 pcb 19 13K 14K 166960K 114 0 rtable 225 8K 9K 166960K 404 0 pf 30 13K 20K 166960K 77 0 ifaddr 37 6K 7K 166960K 51 0 ifgroup 43 1K 2K 166960K 63 0 sysctl 2 1K 9K 166960K 7 0 counters 32 17K 18K 166960K 39 0 ioctlops 0 0K 4K 166960K 151 0 iov 0 0K 16K 166960K 13 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1364 86K 86K 166960K 1644 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 7 0 VM map 2 1K 1K 166960K 2 0 sem 17 3K 3K 166960K 156 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 12 41K 97K 166960K 410 0 sigio 0 0K 0K 166960K 3 0 proc 60 59K 124K 166960K 550 0 subproc 63 3K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 155 0 in_multi 87 6K 7K 166960K 107 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 13 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 400 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 185 149K 175K 166960K 5475 0 UVM aobj 8 2K 2K 166960K 9 0 pinsyscall 33 66K 96K 166960K 1510 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 16 0 NDP 10 0K 2K 166960K 32 0 temp 48 9110K 9170K 166960K 11849 0 kqueue 14 22K 29K 166960K 78 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 119 0 116 3 0 3 3 0 8 2 rtentry 136 117 0 19 4 0 4 4 0 8 0 unpcb 144 389 0 374 6 0 6 6 0 8 5 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpcb 736 239 0 232 2 0 2 2 0 8 1 arp 96 18 0 4 1 0 1 1 0 8 0 ipq 40 4 0 1 1 0 1 1 0 8 0 ipqe 40 6 0 3 1 0 1 1 0 8 0 inpcb 328 450 0 436 4 0 4 4 0 8 2 nd6 112 28 0 5 1 0 1 1 0 8 0 kcovpl 48 8 0 1 1 0 1 1 0 8 0 ppxss 1072 5 0 5 1 0 1 1 0 8 1 pfstscr 40 10 0 4 1 0 1 1 0 8 0 pfanchor 1288 5 0 0 1 0 1 1 0 8 0 pfqueue 320 1 0 1 1 0 1 1 0 8 1 pfstitem 24 6 0 2 1 0 1 1 0 8 0 pfstkey 128 12 0 7 1 0 1 1 0 8 0 pfstate 384 6 0 3 1 0 1 1 0 8 0 pfrule 1360 1 0 1 1 0 1 1 0 8 1 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 484 0 17 30 0 30 30 0 8 0 art_table 40 485 0 17 5 0 5 5 0 8 0 art_node 32 117 0 18 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 151 0 136 1 0 1 1 0 8 0 shmpl 112 6 0 1 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2072 0 616 92 0 92 92 0 8 0 ffsino 256 2072 0 616 92 0 92 92 0 8 0 nchpl 144 2677 0 984 64 0 64 64 0 8 0 vnodes 216 2339 0 0 130 0 130 130 0 8 0 namei 1024 8208 0 8207 2 0 2 2 0 8 1 kstatmem 264 33 0 12 2 0 2 2 0 8 0 scsiplug 72 6 0 6 1 0 1 1 0 8 1 scxspl 216 8755 0 8755 8 0 8 8 1 8 8 plimitpl 152 186 0 170 1 0 1 1 0 8 0 sigapl 424 705 0 667 6 0 6 6 0 8 1 knotepl 120 14134 0 14085 16 0 16 16 0 8 13 kqueuepl 184 93 0 81 1 0 1 1 0 8 0 pipepl 304 141 0 114 3 0 3 3 0 8 0 fdescpl 448 692 0 668 5 0 5 5 0 8 1 filepl 120 3462 0 3266 11 0 11 11 0 8 3 lockfpl 104 112 0 110 1 0 1 1 0 8 0 lockfspl 48 45 0 43 1 0 1 1 0 8 0 sessionpl 144 101 0 93 1 0 1 1 0 8 0 pgrppl 48 112 0 96 1 0 1 1 0 8 0 ucredpl 104 339 0 328 1 0 1 1 0 8 0 zombiepl 144 671 0 667 1 0 1 1 0 8 0 processpl 1152 705 0 667 4 0 4 4 0 8 0 procpl 664 1132 0 1087 6 0 6 6 0 8 1 sockpl 552 967 0 935 13 2 11 13 0 8 8 mcl64k 65536 22 0 22 1 0 1 1 0 8 1 mcl16k 16384 9 0 9 1 0 1 1 0 8 1 mcl9k128 9344 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 13 0 13 1 0 1 1 0 8 1 mcl4k 4096 2905 0 2848 13 0 13 13 0 8 5 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 347 0 345 1 0 1 1 0 8 0 mtagpl 96 5 0 4 1 0 1 1 0 8 0 mbufpl 256 7674 0 7549 27 3 24 27 0 8 8 bufpl 272 2766 0 104 178 0 178 178 0 8 0 anonpl 24 107924 0 105069 32 0 32 32 0 187 9 amapchunkpl 152 17481 0 17129 34 0 34 34 0 158 13 amappl16 200 1383 0 1360 4 0 4 4 0 8 2 amappl15 192 19 0 19 1 0 1 1 0 8 1 amappl14 184 441 0 440 1 0 1 1 0 8 0 amappl13 176 118 0 108 1 0 1 1 0 8 0 amappl12 168 929 0 906 2 0 2 2 0 8 0 amappl11 160 8 0 8 1 0 1 1 0 8 1 amappl10 152 60 0 50 1 0 1 1 0 8 0 amappl9 144 270 0 270 1 0 1 1 0 8 1 amappl8 136 95 0 93 1 0 1 1 0 8 0 amappl7 128 148 0 136 1 0 1 1 0 8 0 amappl6 120 146 0 144 1 0 1 1 0 8 0 amappl5 112 110 0 102 1 0 1 1 0 8 0 amappl4 104 278 0 261 1 0 1 1 0 8 0 amappl3 96 3181 0 3099 4 0 4 4 0 8 0 amappl2 88 523 0 468 2 0 2 2 0 8 0 amappl1 80 11130 0 10603 13 0 13 13 0 8 1 amappl 88 4718 0 4595 5 0 5 5 0 92 0 uvmvnodes 80 103 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 8 0 1 1 0 1 1 0 8 0 uaddrrnd 24 692 0 668 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 692 0 668 1 0 1 1 0 8 0 vmmpekpl 168 7223 0 7179 3 0 3 3 0 8 0 vmmpepl 168 51243 0 49715 82 0 82 82 0 357 2 vmsppl 368 691 0 668 4 0 4 4 0 8 1 rwobjpl 40 16315 0 15413 11 0 11 11 0 8 0 pdppl 4096 1390 0 1336 98 32 66 82 0 8 12 pvpl 32 306051 0 298575 101 0 101 101 0 265 20 pmappl 216 691 0 668 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 556 0 35 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834675ab) at panic+0x1cf sys/kern/subr_prf.c:198 ffs_inode_alloc(ffffee806d4b1600,41ed,ffffee8007ffd750,ffff80002a7f1768) at ffs_inode_alloc+0x94e ufs_mkdir(ffff80002a7f17d0) at ufs_mkdir+0xfc sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(ffffee806d401ce0,ffff80002a7f1930,ffff80002a7f1960,ffff80002a7f1860) at VOP_MKDIR+0x101 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a7667d8,ffffff9c,7d4c4ac50410,1ff) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3062 syscall(ffff80002a7f1ad0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7f1ad0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d4c4ac504b0, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834675ab) at panic+0x1cf sys/kern/subr_prf.c:198 ffs_inode_alloc(ffffee806d4b1600,41ed,ffffee8007ffd750,ffff80002a7f1768) at ffs_inode_alloc+0x94e ufs_mkdir(ffff80002a7f17d0) at ufs_mkdir+0xfc sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(ffffee806d401ce0,ffff80002a7f1930,ffff80002a7f1960,ffff80002a7f1860) at VOP_MKDIR+0x101 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a7667d8,ffffff9c,7d4c4ac50410,1ff) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3062 syscall(ffff80002a7f1ad0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7f1ad0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d4c4ac504b0, count: -8