panic: ffs_valloc: dup alloc Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *102360 19022 0 0x2 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8346bb52) at panic+0x1cf sys/kern/subr_prf.c:198 ffs_inode_alloc(ffffef806d294200,41ed,ffffef8007ffd888,ffff80002a8a7508) at ffs_inode_alloc+0x94e ufs_mkdir(ffff80002a8a7570) at ufs_mkdir+0xfc sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(ffffef806d180ce8,ffff80002a8a76d0,ffff80002a8a7700,ffff80002a8a7600) at VOP_MKDIR+0x101 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a7374c8,ffffff9c,702595e74ab0,1ff) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3062 syscall(ffff80002a8a7870) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8a7870) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x702595e74b50, 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(ffffffff8346bb52) at panic+0x1cf sys/kern/subr_prf.c:198 ffs_inode_alloc(ffffef806d294200,41ed,ffffef8007ffd888,ffff80002a8a7508) at ffs_inode_alloc+0x94e ufs_mkdir(ffff80002a8a7570) at ufs_mkdir+0xfc sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(ffffef806d180ce8,ffff80002a8a76d0,ffff80002a8a7700,ffff80002a8a7600) at VOP_MKDIR+0x101 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a7374c8,ffffff9c,702595e74ab0,1ff) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3062 syscall(ffff80002a8a7870) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8a7870) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x702595e74b50, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a8a7290 rbx 0x6659 __ALIGN_SIZE+0x5659 rdx 0 rcx 0 rax 0xffff80002a7374c8 r8 0x101010101010101 r9 0x8080808080808080 r10 0xf0a4ac25c42639b0 r11 0xbb69ebe41ba2007f r12 0 r13 0xffffef806d8e5a00 r14 0 r15 0x1 rip 0xffffffff820690a5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a8a7280 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=102360 pid=19022 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=0xffff80002a736008,0xffff80002a76ad20 process=0xffff80002a79fa90 user=0xffff80002a8a2000, vmspace=0xffffef807161a5c8 estcpu=1, cpticks=4, pctcpu=0.0, user=0, sys=4, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 80081 360373 41119 0 2 0 syz-executor 53924 344615 96298 0 2 0 syz-executor 79045 369915 43811 0 2 0 syz-executor 79045 392302 43811 0 2 0x4000000 syz-executor 6833 217953 49146 0 2 0 syz-executor 6833 348786 49146 0 3 0x4000080 fsleep syz-executor 6833 139860 49146 0 2 0x4000000 syz-executor 43811 97770 38902 0 2 0xc82 syz-executor 11822 74557 28137 0 2 0 syz-executor 11822 467572 28137 0 3 0x4000080 fsleep syz-executor 16241 126612 0 0 3 0x14280 nfsidl nfsio 89586 460120 0 0 3 0x14280 nfsidl nfsio 59293 290778 0 0 3 0x14280 nfsidl nfsio 61978 270065 0 0 3 0x14280 nfsidl nfsio 97114 224305 0 0 3 0x14280 nfsidl nfsio 97227 296021 0 0 3 0x14280 nfsidl nfsio 20817 2615 0 0 3 0x14280 nfsidl nfsio 3598 323141 0 0 3 0x14280 nfsidl nfsio 94235 119702 0 0 3 0x14280 nfsidl nfsio 34437 304344 0 0 3 0x14280 nfsidl nfsio 63505 40576 0 0 3 0x14280 nfsidl nfsio 11741 311162 0 0 3 0x14280 nfsidl nfsio 10340 252894 0 0 3 0x14280 nfsidl nfsio 17683 340981 0 0 3 0x14280 nfsidl nfsio 36369 167034 0 0 3 0x14280 nfsidl nfsio 97305 51935 0 0 3 0x14280 nfsidl nfsio 41107 373396 0 0 3 0x14280 nfsidl nfsio 74636 108436 0 0 3 0x14280 nfsidl nfsio 2350 450243 0 0 3 0x14280 nfsidl nfsio 92988 87003 0 0 3 0x14280 nfsidl nfsio *19022 102360 38902 0 7 0x2 syz-executor 96298 107362 38902 0 3 0x82 nanoslp syz-executor 28137 381718 38902 0 3 0x82 nanoslp syz-executor 41119 127532 38902 0 3 0x82 nanoslp syz-executor 45090 321387 38902 0 2 0x2 syz-executor 49146 442971 38902 0 3 0x82 nanoslp syz-executor 38902 74997 57604 0 3 0x82 wait syz-executor 57604 221368 16810 0 3 0x10008a sigsusp ksh 16810 309708 56976 0 3 0x98 kqread sshd-session 56976 161356 52606 0 3 0x92 kqread sshd-session 54022 250152 1 0 3 0x100083 ttyin getty 52606 182368 1 0 3 0x88 kqread sshd 53420 368552 53972 73 3 0x1100090 kqread syslogd 53972 412673 1 0 3 0x100082 sbwait syslogd 82114 86216 1 0 3 0x100080 kqread resolvd 46502 79131 47037 77 3 0x100092 kqread dhcpleased 93884 142342 47037 77 3 0x100092 kqread dhcpleased 47037 486834 1 0 3 0x80 kqread dhcpleased 49414 363054 0 0 3 0x14200 bored smr 15888 154275 0 0 2 0x14200 zerothread 95898 9823 0 0 3 0x14200 aiodoned aiodoned 74161 521650 0 0 3 0x14200 syncer update 43638 281949 0 0 3 0x14200 cleaner cleaner 18763 457061 0 0 3 0x14200 reaper reaper 4789 101077 0 0 3 0x14200 pgdaemon pagedaemon 55716 482748 0 0 3 0x14200 bored viomb 56532 470386 0 0 3 0x40014200 acpi0 acpi0 87862 189963 0 0 3 0x14200 bored softnet0 38666 13768 0 0 3 0x14200 smrbar systqmp 92417 346390 0 0 3 0x14200 bored systq 39185 319643 0 0 3 0x40014200 tmoslp softclock 41174 432705 0 0 3 0x40014200 idle0 1 245019 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 11037 12112K 12300K 166960K 12368 0 pcb 18 13K 14K 166960K 89 0 rtable 247 7K 7K 166960K 420 0 pf 31 13K 16K 166960K 54 0 ifaddr 42 7K 7K 166960K 51 0 ifgroup 50 2K 2K 166960K 63 0 sysctl 1 1K 9K 166960K 6 0 counters 33 17K 18K 166960K 37 0 ioctlops 0 0K 4K 166960K 58 0 iov 0 0K 12K 166960K 7 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1356 85K 86K 166960K 1511 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 9 0K 0K 166960K 10 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 15 53K 89K 166960K 276 0 sigio 0 0K 0K 166960K 1 0 proc 60 59K 91K 166960K 547 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 21 0 in_multi 99 7K 7K 166960K 115 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 392 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 197 158K 167K 166960K 3993 0 UVM aobj 5 2K 2K 166960K 5 0 pinsyscall 36 72K 91K 166960K 1402 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 3 0 NDP 11 0K 2K 166960K 33 0 temp 71 9119K 9130K 166960K 10383 0 kqueue 13 20K 31K 166960K 47 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 46 0 43 1 0 1 1 0 8 0 rtentry 136 125 0 14 4 0 4 4 0 8 0 unpcb 144 93 0 78 1 0 1 1 0 8 0 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpcb 736 73 0 69 4 0 4 4 0 8 3 arp 96 20 0 2 1 0 1 1 0 8 0 inpcb 328 222 0 214 4 0 4 4 0 8 3 nd6 112 29 0 5 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 2 0 2 1 0 1 1 0 8 1 pfrktable 1344 2 0 2 1 0 1 1 0 8 1 pftag 88 2 0 2 1 0 1 1 0 8 1 pfrule 1360 3 0 3 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 502 0 44 29 0 29 29 0 8 0 art_table 40 504 0 44 5 0 5 5 0 8 0 art_node 32 125 0 22 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 72 8 0 1 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1774 0 314 92 0 92 92 0 8 0 ffsino 256 1775 0 315 92 0 92 92 0 8 0 nchpl 144 2164 0 474 64 0 64 64 0 8 0 vnodes 216 1981 0 0 111 0 111 111 0 8 0 namei 1024 6647 0 6645 1 0 1 1 0 8 0 kstatmem 264 31 0 8 2 0 2 2 0 8 0 scxspl 216 7245 0 7245 3 0 3 3 1 8 3 plimitpl 152 43 0 27 1 0 1 1 0 8 0 sigapl 424 589 0 529 8 0 8 8 0 8 0 knotepl 120 7655 0 7608 17 6 11 17 0 8 8 kqueuepl 184 52 0 43 1 0 1 1 0 8 0 pipepl 304 130 0 103 3 0 3 3 0 8 0 fdescpl 448 556 0 529 5 0 5 5 0 8 1 filepl 120 2336 0 2132 9 0 9 9 0 8 2 lockfpl 104 73 0 71 1 0 1 1 0 8 0 lockfspl 48 33 0 31 1 0 1 1 0 8 0 sessionpl 144 27 0 19 1 0 1 1 0 8 0 pgrppl 48 36 0 20 1 0 1 1 0 8 0 ucredpl 104 215 0 203 1 0 1 1 0 8 0 zombiepl 144 530 0 529 1 0 1 1 0 8 0 processpl 1152 589 0 529 5 0 5 5 0 8 0 procpl 664 769 0 705 7 0 7 7 0 8 0 sockpl 552 372 0 346 5 0 5 5 0 8 3 mcl64k 65536 10 0 10 1 0 1 1 0 8 1 mcl8k 8192 8 0 8 1 0 1 1 0 8 1 mcl4k 4096 2663 0 2612 16 1 15 16 0 8 7 mcl2k 2048 260 0 259 2 0 2 2 0 8 1 mtagpl 96 5 0 4 1 0 1 1 0 8 0 mbufpl 256 5485 0 5346 12 0 12 12 0 8 0 bufpl 272 2618 0 103 168 0 168 168 0 8 0 anonpl 24 89216 0 82206 45 0 45 45 0 187 0 amapchunkpl 152 11206 0 10810 21 0 21 21 0 158 3 amappl16 200 1365 0 1103 15 0 15 15 0 8 0 amappl15 192 4 0 4 1 0 1 1 0 8 1 amappl14 184 421 0 420 1 0 1 1 0 8 0 amappl13 176 118 0 108 1 0 1 1 0 8 0 amappl12 168 796 0 770 2 0 2 2 0 8 0 amappl11 160 3 0 3 1 0 1 1 0 8 1 amappl10 152 58 0 48 1 0 1 1 0 8 0 amappl9 144 272 0 271 1 0 1 1 0 8 0 amappl8 136 98 0 97 1 0 1 1 0 8 0 amappl7 128 171 0 159 1 0 1 1 0 8 0 amappl6 120 159 0 157 1 0 1 1 0 8 0 amappl5 112 90 0 82 1 0 1 1 0 8 0 amappl4 104 264 0 250 1 0 1 1 0 8 0 amappl3 96 2223 0 2132 3 0 3 3 0 8 0 amappl2 88 532 0 478 2 0 2 2 0 8 0 amappl1 80 10663 0 10123 13 0 13 13 0 8 1 amappl 88 3278 0 3144 4 0 4 4 0 92 0 uvmvnodes 80 99 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 556 0 529 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 556 0 529 1 0 1 1 0 8 0 vmmpekpl 168 6285 0 6248 2 0 2 2 0 8 0 vmmpepl 168 43600 0 41717 90 0 90 90 0 357 3 vmsppl 368 555 0 529 4 0 4 4 0 8 1 rwobjpl 40 14957 0 13809 13 0 13 13 0 8 0 pdppl 4096 1118 0 1058 92 26 66 78 0 8 6 pvpl 32 243281 0 231097 107 0 107 107 0 265 1 pmappl 216 555 0 529 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 529 0 27 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(ffffffff8346bb52) at panic+0x1cf sys/kern/subr_prf.c:198 ffs_inode_alloc(ffffef806d294200,41ed,ffffef8007ffd888,ffff80002a8a7508) at ffs_inode_alloc+0x94e ufs_mkdir(ffff80002a8a7570) at ufs_mkdir+0xfc sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(ffffef806d180ce8,ffff80002a8a76d0,ffff80002a8a7700,ffff80002a8a7600) at VOP_MKDIR+0x101 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a7374c8,ffffff9c,702595e74ab0,1ff) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3062 syscall(ffff80002a8a7870) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8a7870) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x702595e74b50, 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(ffffffff8346bb52) at panic+0x1cf sys/kern/subr_prf.c:198 ffs_inode_alloc(ffffef806d294200,41ed,ffffef8007ffd888,ffff80002a8a7508) at ffs_inode_alloc+0x94e ufs_mkdir(ffff80002a8a7570) at ufs_mkdir+0xfc sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(ffffef806d180ce8,ffff80002a8a76d0,ffff80002a8a7700,ffff80002a8a7600) at VOP_MKDIR+0x101 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a7374c8,ffffff9c,702595e74ab0,1ff) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3062 syscall(ffff80002a8a7870) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8a7870) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x702595e74b50, count: -8