panic: assertwaitok: non-zero mutex count: 1 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *388159 36950 0 0 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82ff8c33) at panic+0x1cf sys/kern/subr_prf.c:198 assertwaitok() at assertwaitok+0x16f sys/kern/subr_xxx.c:163 mi_switch() at mi_switch+0x2b6 sys/kern/sched_bsd.c:412 preempt() at preempt+0x61 sys/kern/sched_bsd.c:338 ast(ffff80002c02f5a0) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff80002c02f5a0) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x7e53d03c9090, count: 8 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: assertwaitok: non-zero mutex count: 1 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82ff8c33) at panic+0x1cf sys/kern/subr_prf.c:198 assertwaitok() at assertwaitok+0x16f sys/kern/subr_xxx.c:163 mi_switch() at mi_switch+0x2b6 sys/kern/sched_bsd.c:412 preempt() at preempt+0x61 sys/kern/sched_bsd.c:338 ast(ffff80002c02f5a0) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff80002c02f5a0) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x7e53d03c9090, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002c02f430 rbx 0 rdx 0 rcx 0 rax 0xffff80003761b1d8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x7d8700577dae8ab1 r11 0xca357af112557181 r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff817dabb5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002c02f420 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=388159 pid=36950 tcnt=4 stat=onproc flags process=0 proc=0 runpri=85, usrpri=85, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003761a7b8,0xffff80003761aa50 process=0xffff8000ffff99c8 user=0xffff80002c02a000, vmspace=0xfffffd807419b2d0 estcpu=35, cpticks=4, pctcpu=0.19, user=22, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 50776 230375 50444 0 2 0x102004 sh *36950 388159 65256 0 7 0 syz-executor 36950 149487 65256 0 3 0x4000000 vmmaplk syz-executor 36950 290915 65256 0 2 0x4000000 syz-executor 36950 503484 65256 0 3 0x4000080 fsleep syz-executor 48524 371468 53589 0 2 0 syz-executor 48524 424658 53589 0 2 0x4000000 syz-executor 48524 514398 53589 0 3 0x4000080 fsleep syz-executor 48524 513915 53589 0 3 0x4000080 fsleep syz-executor 50444 148383 34551 0 3 0x10008a sigsusp sh 33791 292221 3766 -1 3 0x90 nanoslp syz-executor 33791 117046 3766 -1 3 0x4000090 fsleep syz-executor 33791 256746 3766 -1 3 0x4000090 fifow syz-executor 33791 165552 3766 -1 3 0x4000090 fsleep syz-executor 52981 311663 8692 0 2 0 syz-executor 52981 306383 8692 0 3 0x4000000 vinvalbuf syz-executor 52981 139421 8692 0 3 0x4000080 fsleep syz-executor 94600 14020 65005 0 2 0 syz-executor 94600 484593 65005 0 3 0x4000080 fsleep syz-executor 94600 438996 65005 0 3 0x4000080 fsleep syz-executor 94600 55399 65005 0 3 0x4000080 fsleep syz-executor 34551 355510 62468 0 3 0x82 wait syz-executor 76578 140871 0 0 3 0x14200 acct acct 40781 143595 0 0 3 0x14200 bored sosplice 65005 455351 62468 0 3 0x82 nanoslp syz-executor 47259 515367 62468 0 2 0x2 syz-executor 8692 233369 62468 0 3 0x82 nanoslp syz-executor 78038 121704 62468 0 2 0x2 syz-executor 53589 472441 62468 0 3 0x82 nanoslp syz-executor 65256 517388 62468 0 3 0x82 nanoslp syz-executor 3766 393826 62468 0 3 0x82 nanoslp syz-executor 62468 212620 17407 0 3 0x82 kqread syz-executor 17407 159010 27601 0 3 0x10008a sigsusp ksh 27601 380515 44331 0 3 0x98 kqread sshd-session 44331 501999 93073 0 3 0x92 kqread sshd-session 31538 214331 1 0 3 0x100083 ttyopn getty 93073 6086 1 0 3 0x88 kqread sshd 62652 342458 56385 73 3 0x1100090 kqread syslogd 56385 461540 1 0 3 0x100082 sbwait syslogd 50361 217455 1 0 3 0x100080 kqread resolvd 13212 387459 47560 77 3 0x100092 kqread dhcpleased 74833 185381 47560 77 3 0x100092 kqread dhcpleased 47560 149531 1 0 3 0x80 kqread dhcpleased 66356 202473 0 0 3 0x14200 bored smr 66830 438746 0 0 2 0x14200 zerothread 35520 452921 0 0 3 0x14200 aiodoned aiodoned 6901 198948 0 0 3 0x14200 syncer update 92927 333752 0 0 3 0x14200 cleaner cleaner 86320 458744 0 0 3 0x14200 reaper reaper 12576 449391 0 0 3 0x14200 pgdaemon pagedaemon 65943 247932 0 0 3 0x14200 bored viomb 12029 420206 0 0 3 0x40014200 acpi0 acpi0 71256 471527 0 0 3 0x14200 bored softnet3 46462 262837 0 0 3 0x14200 bored softnet2 11442 82272 0 0 3 0x14200 bored softnet1 46188 296834 0 0 3 0x14200 bored softnet0 15322 376370 0 0 3 0x14200 bored systqmp 74292 510659 0 0 3 0x14200 bored systq 70308 64747 0 0 2 0x40014200 softclock 31189 38693 0 0 3 0x40014200 idle0 1 196738 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 10210 11074K 11460K 166960K 12278 0 pcb 19 16K 17K 166960K 329 0 rtable 213 7K 8K 166960K 786 0 pf 35 14K 269K 166960K 104 0 ifaddr 41 7K 8K 166960K 102 0 ifgroup 54 2K 2K 166960K 133 0 sysctl 2 0K 0K 166960K 6 0 counters 31 17K 17K 166960K 52 0 ioctlops 0 0K 4K 166960K 123 0 iov 0 0K 20K 166960K 91 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1367 86K 87K 166960K 2397 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 24 0 VM map 2 1K 1K 166960K 2 0 sem 19 6K 6K 166960K 45 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 97K 166960K 1292 0 sigio 0 0K 0K 166960K 123 0 proc 60 59K 124K 166960K 795 0 subproc 104 6K 6K 166960K 221 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 284 0 in_multi 88 6K 7K 166960K 236 0 ether_multi 1 0K 0K 166960K 3 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 235 1049K 1049K 166960K 235 0 exec 1 0K 1K 166960K 761 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 216 72K 88K 166960K 13208 0 UVM aobj 68 3K 5K 166960K 76 0 pinsyscall 38 76K 98K 166960K 2528 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 48 0 NDP 12 0K 2K 166960K 71 0 temp 68 6814K 7446K 166960K 44794 0 kqueue 13 20K 30K 166960K 183 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 145 0 142 1 0 1 1 0 8 0 rtentry 112 232 0 137 4 0 4 4 0 8 0 unpcb 144 1387 0 1367 11 5 6 6 0 8 5 syncache 336 4 0 4 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 808 481 0 475 14 7 7 8 0 8 6 arp 88 42 0 23 1 0 1 1 0 8 0 ipq 40 4 0 3 1 0 1 1 0 8 0 ipqe 40 11 0 10 1 0 1 1 0 8 0 inpcb 336 1680 0 1667 19 12 7 13 0 8 5 nd6 104 56 0 31 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 1 1 1 0 8 1 kcovpl 48 17 0 9 1 0 1 1 0 8 0 ppxss 1072 5 0 5 2 1 1 1 0 8 1 pfanchor 1288 2 0 2 1 0 1 1 0 8 1 pfstitem 24 5 0 1 1 0 1 1 0 8 0 pfstkey 128 8 0 3 2 1 1 1 0 8 0 pfstate 344 5 0 3 2 1 1 1 0 8 0 pfrule 1344 5 0 5 2 1 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 1002 0 602 33 3 30 31 0 8 1 art_table 32 1005 0 602 5 1 4 5 0 8 0 art_node 16 228 0 148 1 0 1 1 0 8 0 sysvmsgpl 40 53 0 39 1 0 1 1 0 8 0 semapl 112 35 0 18 1 0 1 1 0 8 0 shmpl 112 73 0 8 2 0 2 2 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 3629 0 2113 95 0 95 95 0 8 0 ffsino 240 3629 0 2113 90 0 90 90 0 8 0 nchpl 144 5356 0 3645 64 0 64 64 0 8 0 uvmvnodes 80 4201 0 0 86 0 86 86 0 8 0 vnodes 216 4201 0 0 234 0 234 234 0 8 0 namei 1024 19161 0 19158 2 1 1 2 0 8 0 kstatmem 264 66 0 42 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 14952 0 14951 9 7 2 8 1 8 1 plimitpl 152 354 0 337 1 0 1 1 0 8 0 sigapl 424 1575 0 1528 8 2 6 8 0 8 0 futexpl 64 16567 0 16557 1 0 1 1 0 8 0 knotepl 120 46988 0 46941 29 19 10 17 0 8 8 kqueuepl 184 373 0 363 4 3 1 4 0 8 0 pipepl 288 324 0 297 7 4 3 7 0 8 0 fdescpl 432 1536 0 1507 5 1 4 5 0 8 0 filepl 120 10946 0 10699 20 6 14 15 0 8 5 lockfpl 104 445 0 442 2 1 1 2 0 8 0 lockfspl 48 131 0 128 1 0 1 1 0 8 0 sessionpl 144 31 0 23 1 0 1 1 0 8 0 pgrppl 48 66 0 49 1 0 1 1 0 8 0 ucredpl 104 2304 0 2290 1 0 1 1 0 8 0 zombiepl 144 1889 0 1889 1 0 1 1 0 8 1 processpl 1096 1575 0 1528 5 1 4 5 0 8 0 procpl 648 3286 0 3225 7 1 6 7 0 8 0 sosppl 168 1 0 1 1 1 0 1 0 8 0 sockpl 504 3246 0 3211 69 56 13 30 0 8 8 mcl64k 65536 19 0 19 2 1 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 22 0 22 2 1 1 1 0 8 1 mcl4k 4096 4006 0 3956 19 11 8 18 0 8 1 mcl2k 2048 1544 0 1538 3 0 3 3 0 8 2 mtagpl 96 60 0 49 2 0 2 2 0 8 0 mbufpl 256 16154 0 16001 23 5 18 21 0 8 4 bufpl 280 4397 0 97 308 0 308 308 0 8 0 anonpl 24 268602 0 265376 66 21 45 46 0 187 20 amapchunkpl 152 44151 0 43701 46 12 34 34 0 158 14 amappl16 200 6235 0 6210 34 23 11 15 0 8 8 amappl15 192 10 0 10 1 1 0 1 0 8 0 amappl14 184 136 0 124 1 0 1 1 0 8 0 amappl13 176 10 0 10 1 1 0 1 0 8 0 amappl12 168 2287 0 2256 3 1 2 3 0 8 0 amappl11 160 51 0 41 1 0 1 1 0 8 0 amappl10 152 16 0 16 2 1 1 1 0 8 1 amappl9 144 125 0 125 1 1 0 1 0 8 0 amappl8 136 28 0 27 1 0 1 1 0 8 0 amappl7 128 126 0 116 1 0 1 1 0 8 0 amappl6 120 245 0 242 1 0 1 1 0 8 0 amappl5 112 163 0 154 1 0 1 1 0 8 0 amappl4 104 316 0 302 1 0 1 1 0 8 0 amappl3 96 7982 0 7899 3 0 3 3 0 8 0 amappl2 88 1831 0 1755 2 0 2 2 0 8 0 amappl1 80 11393 0 10874 14 1 13 13 0 8 2 amappl 88 12698 0 12536 5 0 5 5 0 92 0 dma32768 32768 1 0 1 1 0 1 1 0 8 1 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 7 0 7 1 1 0 1 0 8 0 dma128 128 255 0 255 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 75 0 8 2 0 2 2 0 8 0 uaddrrnd 24 1536 0 1507 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1536 0 1507 1 0 1 1 0 8 0 vmmpekpl 168 13102 0 13054 3 0 3 3 0 8 0 vmmpepl 168 99159 0 97474 102 12 90 90 0 357 11 vmsppl 352 1535 0 1507 4 1 3 4 0 8 0 rwobjpl 24 33501 0 28385 31 0 31 31 0 8 0 pdppl 4096 3079 0 3014 129 60 69 83 0 8 4 pvpl 32 664095 0 655621 146 34 112 114 0 265 31 pmappl 216 1535 0 1507 3 0 3 3 0 8 1 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 520 0 164 11 0 11 11 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:437 panic(ffffffff82ff8c33) at panic+0x1cf sys/kern/subr_prf.c:198 assertwaitok() at assertwaitok+0x16f sys/kern/subr_xxx.c:163 mi_switch() at mi_switch+0x2b6 sys/kern/sched_bsd.c:412 preempt() at preempt+0x61 sys/kern/sched_bsd.c:338 ast(ffff80002c02f5a0) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff80002c02f5a0) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x7e53d03c9090, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82ff8c33) at panic+0x1cf sys/kern/subr_prf.c:198 assertwaitok() at assertwaitok+0x16f sys/kern/subr_xxx.c:163 mi_switch() at mi_switch+0x2b6 sys/kern/sched_bsd.c:412 preempt() at preempt+0x61 sys/kern/sched_bsd.c:338 ast(ffff80002c02f5a0) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff80002c02f5a0) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x7e53d03c9090, count: -7