panic: ffs_valloc: dup alloc Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 319914 96414 0 0 0 0 syz-executor *436263 35710 0 0x2 0 1K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e5d17) at panic+0x1e5 sys/kern/subr_prf.c:198 ffs_inode_alloc(fffffd8071d0a000,41c0,fffffd807f7d32d8,ffff80002a152a78) at ffs_inode_alloc+0x96c sys/ufs/ffs/ffs_alloc.c:404 ufs_mkdir(ffff80002a152ae0) at ufs_mkdir+0x113 sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(fffffd806ee00db0,ffff80002a152c40,ffff80002a152c70,ffff80002a152b70) at VOP_MKDIR+0x102 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a05aa40,ffffff9c,72b9ae9b1da0,1c0) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3100 syscall(ffff80002a152df0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a152df0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72b9ae9b1d60, 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{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(ffffffff830e5d17) at panic+0x1e5 sys/kern/subr_prf.c:198 ffs_inode_alloc(fffffd8071d0a000,41c0,fffffd807f7d32d8,ffff80002a152a78) at ffs_inode_alloc+0x96c sys/ufs/ffs/ffs_alloc.c:404 ufs_mkdir(ffff80002a152ae0) at ufs_mkdir+0x113 sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(fffffd806ee00db0,ffff80002a152c40,ffff80002a152c70,ffff80002a152b70) at VOP_MKDIR+0x102 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a05aa40,ffffff9c,72b9ae9b1da0,1c0) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3100 syscall(ffff80002a152df0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a152df0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72b9ae9b1d60, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a152800 rbx 0xffff800029b7cd87 rdx 0 rcx 0xffff80002a05aa40 rax 0xffff800029b7bff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x6380b2663e73cf4b r11 0x3f72f7a1aae78e49 r12 0xffff800029b7cb88 r13 0 r14 0 r15 0x1 rip 0xffffffff814ed725 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a1527f0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=436263 pid=35710 tcnt=1 stat=onproc flags process=2 proc=0 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000371b76f0,0xffff80002a05b1e8 process=0xffff8000371b8020 user=0xffff80002a14d000, vmspace=0xfffffd806c8bd6f8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 96414 319914 73428 0 7 0 syz-executor *35710 436263 64986 0 7 0x2 syz-executor 69306 438019 26532 0 3 0x80 fsleep syz-executor 69306 374870 26532 0 3 0x4000080 sbwait syz-executor 69306 175775 26532 0 3 0x4000080 ttyin syz-executor 69306 130810 26532 0 3 0x4000080 fsleep syz-executor 48615 456511 39626 0 3 0x80 fsleep syz-executor 48615 331598 39626 0 3 0x4000080 fsleep syz-executor 48615 136640 39626 0 3 0x4000080 sbwait syz-executor 63562 243404 6717 0 3 0x80 fsleep syz-executor 63562 459791 6717 0 3 0x4000080 kqread syz-executor 41310 262050 19847 0 3 0x80 fsleep syz-executor 41310 338238 19847 0 3 0x4000080 sbwait syz-executor 33768 211382 87184 0 3 0x90 fsleep syz-executor 33768 207552 87184 0 3 0x4000090 fsleep syz-executor 33768 230881 87184 0 3 0x4000090 netacc syz-executor 33768 159030 87184 0 3 0x4000090 fsleep syz-executor 6717 223022 64986 0 3 0x82 nanoslp syz-executor 87184 282809 64986 0 3 0x82 nanoslp syz-executor 25198 364479 64986 0 3 0x82 wait syz-executor 73428 406394 64986 0 3 0x82 nanoslp syz-executor 26532 505525 64986 0 3 0x82 nanoslp syz-executor 39626 453009 64986 0 3 0x82 nanoslp syz-executor 19847 120183 64986 0 3 0x82 nanoslp syz-executor 46947 270681 1 0 3 0x100083 ttyin getty 36940 365044 0 0 3 0x14280 nfsidl nfsio 29727 169758 0 0 3 0x14280 nfsidl nfsio 553 182636 0 0 3 0x14280 nfsidl nfsio 96669 161508 0 0 3 0x14280 nfsidl nfsio 24010 439409 0 0 3 0x14280 nfsidl nfsio 73569 441372 0 0 3 0x14280 nfsidl nfsio 91175 150627 0 0 3 0x14280 nfsidl nfsio 95858 42442 0 0 3 0x14280 nfsidl nfsio 57057 161531 0 0 3 0x14280 nfsidl nfsio 78066 403540 0 0 3 0x14280 nfsidl nfsio 70307 295057 0 0 3 0x14280 nfsidl nfsio 89193 357010 0 0 3 0x14280 nfsidl nfsio 53145 224501 0 0 3 0x14280 nfsidl nfsio 54920 143710 0 0 3 0x14280 nfsidl nfsio 67699 180909 0 0 3 0x14280 nfsidl nfsio 41849 255853 0 0 3 0x14280 nfsidl nfsio 74625 451083 0 0 3 0x14280 nfsidl nfsio 91692 164366 0 0 3 0x14280 nfsidl nfsio 64741 206198 0 0 3 0x14280 nfsidl nfsio 95530 99272 0 0 3 0x14280 nfsidl nfsio 44975 433459 0 0 3 0x14200 bored sosplice 64986 362740 24265 0 3 0x82 kqread syz-executor 24265 334295 43966 0 3 0x10008a sigsusp ksh 43966 167914 99176 0 3 0x98 kqread sshd-session 99176 5689 97459 0 3 0x92 kqread sshd-session 97459 421851 1 0 3 0x88 kqread sshd 74882 342241 75180 74 3 0x1100092 bpf pflogd 75180 225284 1 0 3 0x80 sbwait pflogd 56219 460571 18791 73 3 0x1100090 kqread syslogd 18791 351773 1 0 3 0x100082 sbwait syslogd 35806 411169 1 0 3 0x100080 kqread resolvd 21646 5981 34852 77 3 0x100092 kqread dhcpleased 42165 296714 34852 77 3 0x100092 kqread dhcpleased 34852 387011 1 0 3 0x80 kqread dhcpleased 13789 163267 0 0 3 0x14200 bored smr 30757 120088 0 0 3 0x14200 pgzero zerothread 54813 68113 0 0 3 0x14200 aiodoned aiodoned 19122 137830 0 0 3 0x14200 syncer update 50705 323900 0 0 3 0x14200 cleaner cleaner 38159 140249 0 0 3 0x14200 reaper reaper 17676 401841 0 0 3 0x14200 pgdaemon pagedaemon 29964 513213 0 0 3 0x14200 bored viomb 32119 463907 0 0 3 0x40014200 acpi0 acpi0 15611 228420 0 0 3 0x40014200 idle1 93402 149596 0 0 3 0x14200 bored softnet3 79376 265164 0 0 3 0x14200 bored softnet2 38848 363406 0 0 3 0x14200 bored softnet1 93505 166266 0 0 3 0x14200 bored softnet0 37698 180075 0 0 3 0x14200 bored systqmp 13618 375674 0 0 3 0x14200 bored systq 86570 162188 0 0 3 0x14200 tmoslp softclockmp 50551 267313 0 0 3 0x40014200 tmoslp softclock 48406 49597 0 0 3 0x40014200 idle0 1 448570 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 35710 (syz-executor) thread 0xffff80002a05aa40 (436263) exclusive rrwlock inode r = 0 (0xfffffd805c0c7f78) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 ufs_ihashins+0x4f sys/ufs/ufs/ufs_ihash.c:120 #5 ffs_vget+0x187 sys/ufs/ffs/ffs_vfsops.c:1230 #6 ffs_inode_alloc+0x283 sys/ufs/ffs/ffs_alloc.c:393 #7 ufs_mkdir+0x113 sys/ufs/ufs/ufs_vnops.c:1112 #8 VOP_MKDIR+0x102 sys/kern/vfs_vops.c:394 #9 domkdirat+0x179 sys/kern/vfs_syscalls.c:3100 #10 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #10 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8071d0a098) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0x109 sys/kern/vfs_lookup.c:418 #6 namei+0x7aa sys/kern/vfs_lookup.c:250 #7 domkdirat+0x8b sys/kern/vfs_syscalls.c:3085 #8 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #8 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff835dd708) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #1 syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10220 10175K 10503K 166960K 12140 0 pcb 17 17K 18K 166960K 196 0 rtable 232 9K 10K 166960K 1693 0 pf 36 18K 22K 166960K 163 0 ifaddr 39 7K 8K 166960K 202 0 ifgroup 51 2K 2K 166960K 228 0 sysctl 3 1K 1K 166960K 3 0 counters 62 36K 36K 166960K 156 0 ioctlops 0 0K 4K 166960K 1643 0 iov 1 2K 18K 166960K 115 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1406 88K 89K 166960K 2322 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 28 0 dirhash 12 2K 2K 166960K 30 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 17 58K 93K 166960K 1253 0 sigio 0 0K 0K 166960K 14 0 proc 72 91K 128K 166960K 1557 0 subproc 91 5K 7K 166960K 559 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 73 0 in_multi 88 6K 7K 166960K 495 0 ether_multi 1 0K 0K 166960K 1 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 247 1102K 1102K 166960K 247 0 exec 0 0K 1K 166960K 892 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 243 81K 108K 166960K 11346 0 UVM aobj 56 2K 2K 166960K 58 0 pinsyscall 42 84K 104K 166960K 3238 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 51 0 NDP 11 0K 2K 166960K 144 0 temp 54 6818K 6883K 166960K 28317 0 kqueue 14 22K 28K 166960K 125 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 147 0 144 1 0 1 1 0 8 0 rtentry 112 620 0 518 4 0 4 4 0 8 0 unpcb 144 879 0 856 14 12 2 9 0 8 0 syncache 336 6 0 6 5 4 1 1 0 8 1 tcpqe 32 4 0 4 2 1 1 1 0 8 1 tcpcb 808 469 0 462 19 11 8 8 0 8 7 arp 120 126 0 110 1 0 1 1 0 8 0 inpcb 336 1239 0 1229 18 13 5 12 0 8 4 nd6 136 134 0 112 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 43 0 36 1 0 1 1 0 8 0 ppxss 1168 7 0 7 4 3 1 1 0 8 1 pffrag 232 5 0 2 1 0 1 1 0 482 0 pffrnode 88 5 0 2 1 0 1 1 0 8 0 pffrent 40 42 0 39 2 1 1 1 0 8 0 pfosfp 40 1429 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1429 0 714 21 0 21 21 0 8 0 pfrktable 1344 7 0 3 1 0 1 1 0 8 0 pfanchor 1288 3 0 0 1 0 1 1 0 8 0 pfstitem 24 97 0 53 1 0 1 1 0 8 0 pfstkey 128 97 0 53 2 0 2 2 0 8 0 pfstate 376 95 0 53 5 0 5 5 0 8 0 pfrule 1344 32 0 21 2 0 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 2058 0 1645 29 0 29 29 0 8 0 art_table 32 2060 0 1645 4 0 4 4 0 8 0 art_node 16 616 0 523 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 5 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 25 0 15 1 0 1 1 0 8 0 shmpl 112 55 0 2 2 0 2 2 0 8 0 dirhash 1024 30 0 13 3 0 3 3 0 8 0 dino2pl 256 2733 0 1165 99 0 99 99 0 8 0 ffsino 272 2734 0 1166 106 0 106 106 0 8 0 nchpl 144 3760 0 2027 66 1 65 65 0 8 0 uvmvnodes 80 3585 0 0 74 0 74 74 0 8 0 vnodes 216 3585 0 0 200 0 200 200 0 8 0 namei 1024 15651 0 15650 3 2 1 2 0 8 0 percpumem 16 92 0 47 1 0 1 1 0 8 0 vcpupl 3904 1 0 0 1 0 1 1 0 8 0 vmpool 696 3 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 0 1 0 1 1 0 8 0 kstatmem 264 116 0 94 2 0 2 2 0 8 0 scsiplug 72 2 0 2 2 2 0 1 0 8 0 scxspl 216 31290 0 31290 11 10 1 8 1 8 1 plimitpl 152 274 0 257 1 0 1 1 0 8 0 sigapl 424 1503 0 1433 10 1 9 9 0 8 0 futexpl 64 10649 0 10640 3 2 1 1 0 8 0 knotepl 120 513 0 0 16 0 16 16 0 8 0 kqueuepl 216 197 0 187 1 0 1 1 0 8 0 pipepl 320 425 0 397 8 5 3 8 0 8 0 fdescpl 496 1464 0 1433 7 2 5 5 0 8 0 filepl 152 7962 0 7717 34 21 13 26 0 8 2 lockfpl 104 200 0 198 1 0 1 1 0 8 0 lockfspl 48 78 0 76 1 0 1 1 0 8 0 sessionpl 144 58 0 49 1 0 1 1 0 8 0 pgrppl 48 224 0 207 1 0 1 1 0 8 0 ucredpl 104 963 0 948 1 0 1 1 0 8 0 zombiepl 144 1434 0 1433 1 0 1 1 0 8 0 processpl 1160 1503 0 1433 7 1 6 6 0 8 0 procpl 648 2605 0 2525 9 1 8 8 0 8 0 srpgc 96 10 0 10 3 3 0 1 0 8 0 sosppl 168 6 0 6 3 3 0 1 0 8 0 sockpl 664 2281 0 2244 35 28 7 25 0 8 3 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 257 0 0 33 1 32 33 0 8 0 mtagpl 96 39 0 0 1 0 1 1 0 8 0 mbufpl 256 419 0 0 22 0 22 22 0 8 0 bufpl 280 7861 0 1689 441 0 441 441 0 8 0 anonpl 24 240115 0 235077 104 42 62 79 0 185 18 amapchunkpl 152 35809 0 35233 44 10 34 37 0 158 8 amappl16 200 4329 0 4286 27 22 5 14 0 8 0 amappl15 192 12 0 12 1 1 0 1 0 8 0 amappl14 184 229 0 217 1 0 1 1 0 8 0 amappl13 176 11 0 11 2 2 0 1 0 8 0 amappl12 168 2665 0 2636 3 1 2 2 0 8 0 amappl11 160 83 0 69 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 1 0 1 0 8 0 amappl9 144 139 0 138 1 0 1 1 0 8 0 amappl8 136 23 0 19 1 0 1 1 0 8 0 amappl7 128 177 0 165 1 0 1 1 0 8 0 amappl6 120 512 0 510 1 0 1 1 0 8 0 amappl5 112 276 0 265 1 0 1 1 0 8 0 amappl4 104 419 0 398 1 0 1 1 0 8 0 amappl3 96 7042 0 6926 5 1 4 4 0 8 0 amappl2 88 1113 0 1049 2 0 2 2 0 8 0 amappl1 80 13254 0 12665 17 3 14 15 0 8 1 amappl 88 10704 0 10522 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 57 0 2 2 0 2 2 0 8 0 uaddrrnd 24 1467 0 1435 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1467 0 1435 1 0 1 1 0 8 0 vmmpekpl 168 14597 0 14544 4 0 4 4 0 8 0 vmmpepl 168 96368 0 94458 107 19 88 95 0 357 0 vmsppl 440 1466 0 1435 6 2 4 5 0 8 0 rwobjpl 56 32613 0 27989 67 1 66 66 0 8 0 pdppl 4096 2941 0 2871 161 87 74 85 0 8 4 pvpl 32 31247 0 0 252 0 252 252 0 265 0 pmappl 248 1466 0 1435 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 510 0 123 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83449ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c kd_curproc sys/dev/kcov.c:589 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:158 __mp_lock(ffffffff835dd500) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835dd500) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 sys_mmap(ffff80002a05b1d8,ffff80002a1586a0,ffff80002a1585f0) at sys_mmap+0x62f sys/uvm/uvm_mmap.c:287 syscall(ffff80002a1586a0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a1586a0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7de41c1d2210, count: 7 ddb{0}> trace x86_ipi_db(ffffffff83449ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c kd_curproc sys/dev/kcov.c:589 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:158 __mp_lock(ffffffff835dd500) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835dd500) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 sys_mmap(ffff80002a05b1d8,ffff80002a1586a0,ffff80002a1585f0) at sys_mmap+0x62f sys/uvm/uvm_mmap.c:287 syscall(ffff80002a1586a0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a1586a0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7de41c1d2210, count: -8 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e5d17) at panic+0x1e5 sys/kern/subr_prf.c:198 ffs_inode_alloc(fffffd8071d0a000,41c0,fffffd807f7d32d8,ffff80002a152a78) at ffs_inode_alloc+0x96c sys/ufs/ffs/ffs_alloc.c:404 ufs_mkdir(ffff80002a152ae0) at ufs_mkdir+0x113 sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(fffffd806ee00db0,ffff80002a152c40,ffff80002a152c70,ffff80002a152b70) at VOP_MKDIR+0x102 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a05aa40,ffffff9c,72b9ae9b1da0,1c0) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3100 syscall(ffff80002a152df0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a152df0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72b9ae9b1d60, count: 7 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e5d17) at panic+0x1e5 sys/kern/subr_prf.c:198 ffs_inode_alloc(fffffd8071d0a000,41c0,fffffd807f7d32d8,ffff80002a152a78) at ffs_inode_alloc+0x96c sys/ufs/ffs/ffs_alloc.c:404 ufs_mkdir(ffff80002a152ae0) at ufs_mkdir+0x113 sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(fffffd806ee00db0,ffff80002a152c40,ffff80002a152c70,ffff80002a152b70) at VOP_MKDIR+0x102 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a05aa40,ffffff9c,72b9ae9b1da0,1c0) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3100 syscall(ffff80002a152df0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a152df0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72b9ae9b1d60, count: -8