panic: assertwaitok: non-zero mutex count: 2 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *100133 78425 0 0 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82ff5a94) 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(ffff800032679ed0) at ast+0x13f mi_ast sys/sys/syscall_mi.h:261 [inline] ast(ffff800032679ed0) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0x798c53beb330, 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: 2 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82ff5a94) 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(ffff800032679ed0) at ast+0x13f mi_ast sys/sys/syscall_mi.h:261 [inline] ast(ffff800032679ed0) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0x798c53beb330, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800032679d60 rbx 0 rdx 0 rcx 0 rax 0xffff800037651c00 r8 0x101010101010101 r9 0x8080808080808080 r10 0xafe5f19a83c3c6c1 r11 0x11fc17dec16eb25b r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff82413715 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800032679d50 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=100133 pid=78425 tcnt=2 stat=onproc flags process=0 proc=0 runpri=83, usrpri=83, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800037650a48,0xffff800037651700 process=0xffff8000ffff6258 user=0xffff800032674000, vmspace=0xfffffd8079bd0568 estcpu=33, cpticks=4, pctcpu=0.4, user=7, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 14184 393592 40488 0 3 0x82 netio sshd-session 53629 105062 40488 0 3 0x82 netio sshd-session *78425 100133 96397 0 7 0 syz-executor 78425 207081 96397 0 2 0x4000000 syz-executor 79735 424560 92717 0 2 0 syz-executor 79735 519519 92717 0 2 0x4000000 syz-executor 97832 82272 61505 0 3 0x80 fsleep syz-executor 97832 368947 61505 0 3 0x4000080 pipewr syz-executor 26963 222426 10986 60928 3 0x90 fsleep syz-executor 26963 30635 10986 60928 3 0x4000090 msgwait syz-executor 73159 352663 62978 0 3 0x82 wait syz-executor 61505 296541 62978 0 3 0x82 nanoslp syz-executor 96397 29021 62978 0 3 0x82 nanoslp syz-executor 10986 443314 62978 0 3 0x82 nanoslp syz-executor 84983 403603 62978 0 3 0x82 wait syz-executor 87233 114219 62978 0 3 0x82 nanoslp syz-executor 92717 448958 62978 0 3 0x82 nanoslp syz-executor 21054 366530 62978 0 3 0x82 wait syz-executor 19373 511542 0 0 3 0x14280 nfsidl nfsio 55753 360518 0 0 3 0x14280 nfsidl nfsio 32251 183468 0 0 3 0x14280 nfsidl nfsio 8233 217591 0 0 3 0x14280 nfsidl nfsio 12457 337911 0 0 3 0x14280 nfsidl nfsio 71204 270914 0 0 3 0x14280 nfsidl nfsio 38756 23445 0 0 3 0x14280 nfsidl nfsio 67604 299939 0 0 3 0x14280 nfsidl nfsio 9932 109999 0 0 3 0x14280 nfsidl nfsio 2233 258498 0 0 3 0x14280 nfsidl nfsio 19945 347130 0 0 3 0x14280 nfsidl nfsio 80265 54037 0 0 3 0x14280 nfsidl nfsio 39627 321327 0 0 3 0x14280 nfsidl nfsio 93585 307978 0 0 3 0x14280 nfsidl nfsio 28799 463640 0 0 3 0x14280 nfsidl nfsio 69416 328558 0 0 3 0x14280 nfsidl nfsio 27913 81462 0 0 3 0x14280 nfsidl nfsio 602 62739 0 0 3 0x14280 nfsidl nfsio 27978 521359 0 0 3 0x14280 nfsidl nfsio 29445 268198 0 0 3 0x14280 nfsidl nfsio 64536 349800 0 0 3 0x14200 acct acct 53219 374440 0 0 3 0x14200 bored sosplice 62978 59449 17298 0 3 0x82 kqread syz-executor 17298 408549 18781 0 3 0x10008a sigsusp ksh 18781 509106 7321 0 3 0x98 kqread sshd-session 7321 348501 40488 0 3 0x92 kqread sshd-session 3266 227335 1 0 3 0x100083 ttyin getty 40488 238793 1 0 3 0x88 kqread sshd 89059 175863 11057 73 3 0x1100090 kqread syslogd 11057 163705 1 0 3 0x100082 sbwait syslogd 91690 249023 1 0 3 0x100080 kqread resolvd 72503 347723 31286 77 3 0x100092 kqread dhcpleased 67599 234049 31286 77 3 0x100092 kqread dhcpleased 31286 139334 1 0 3 0x80 kqread dhcpleased 92437 74581 0 0 3 0x14200 bored smr 68566 299122 0 0 2 0x14200 zerothread 80405 154964 0 0 3 0x14200 aiodoned aiodoned 41595 222225 0 0 3 0x14200 syncer update 34715 265145 0 0 3 0x14200 cleaner cleaner 2031 471902 0 0 3 0x14200 reaper reaper 35273 144537 0 0 3 0x14200 pgdaemon pagedaemon 82184 363468 0 0 3 0x14200 bored viomb 78341 89081 0 0 3 0x40014200 acpi0 acpi0 83660 173016 0 0 3 0x14200 bored softnet3 16488 130801 0 0 3 0x14200 bored softnet2 1027 452252 0 0 3 0x14200 bored softnet1 20694 284780 0 0 3 0x14200 bored softnet0 81280 220356 0 0 3 0x14200 bored systqmp 47872 286062 0 0 3 0x14200 bored systq 14897 160779 0 0 3 0x40014200 netlock softclock 70563 514211 0 0 3 0x40014200 idle0 1 348853 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 10216 11062K 11444K 166960K 12397 0 pcb 17 15K 17K 166960K 325 0 rtable 236 9K 10K 166960K 1006 0 pf 35 14K 22K 166960K 121 0 ifaddr 43 7K 8K 166960K 134 0 ifgroup 54 2K 2K 166960K 149 0 sysctl 4 1K 1K 166960K 6 0 counters 31 17K 17K 166960K 56 0 ioctlops 0 0K 4K 166960K 139 0 iov 0 0K 24K 166960K 43 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1464 92K 92K 166960K 2454 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 16 0 VM map 2 1K 1K 166960K 2 0 sem 22 6K 6K 166960K 28 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 97K 166960K 1189 0 sigio 0 0K 0K 166960K 53 0 proc 60 59K 116K 166960K 1091 0 subproc 104 6K 6K 166960K 352 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 99 7K 7K 166960K 334 0 ether_multi 1 0K 0K 166960K 5 0 mrt 0 0K 0K 166960K 2 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 799 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 245 73K 90K 166960K 11243 0 UVM aobj 58 2K 2K 166960K 62 0 pinsyscall 43 86K 96K 166960K 2716 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 49 0 NDP 12 0K 2K 166960K 92 0 temp 64 6813K 6890K 166960K 57464 0 kqueue 13 20K 29K 166960K 146 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 190 0 187 3 2 1 3 0 8 0 rtentry 112 336 0 231 5 1 4 4 0 8 0 unpcb 144 735 0 716 7 3 4 4 0 8 3 syncache 336 10 0 10 2 1 1 1 0 8 1 tcpcb 808 288 0 278 4 0 4 4 0 8 3 arp 88 60 0 40 1 0 1 1 0 8 0 ipq 40 5 0 3 1 0 1 1 0 8 0 ipqe 40 11 0 8 1 0 1 1 0 8 0 inpcb 336 1217 0 1203 15 11 4 12 0 8 2 nd6 104 87 0 61 1 0 1 1 0 8 0 pkpcb 40 3 0 3 2 1 1 1 0 8 1 kcovpl 48 27 0 19 1 0 1 1 0 8 0 ppxss 1072 4 0 4 2 1 1 1 0 8 1 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 2 1 0 1 1 0 8 0 pfstate 344 2 0 1 1 0 1 1 0 8 0 pfrule 1344 37 0 37 1 1 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 1395 0 941 35 6 29 31 0 8 0 art_table 32 1398 0 941 4 0 4 4 0 8 0 art_node 16 335 0 241 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 11 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 23 0 3 1 0 1 1 0 8 0 shmpl 112 59 0 4 2 0 2 2 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 3113 0 1575 97 0 97 97 0 8 0 ffsino 240 3113 0 1575 91 0 91 91 0 8 0 nchpl 144 4411 0 2697 64 0 64 64 0 8 0 uvmvnodes 80 3935 0 0 81 0 81 81 0 8 0 vnodes 216 3935 0 0 219 0 219 219 0 8 0 namei 1024 16612 0 16611 3 1 2 2 0 8 1 kstatmem 264 74 0 50 2 0 2 2 0 8 0 scsiplug 72 6 0 6 2 1 1 1 0 8 1 scxspl 216 20848 0 20848 10 2 8 8 1 8 8 plimitpl 152 154 0 138 1 0 1 1 0 8 0 sigapl 424 1454 0 1384 8 0 8 8 0 8 0 futexpl 64 11660 0 11658 1 0 1 1 0 8 0 knotepl 120 29910 0 29860 26 16 10 17 0 8 8 kqueuepl 184 235 0 226 3 2 1 3 0 8 0 pipepl 288 267 0 237 5 0 5 5 0 8 2 fdescpl 432 1416 0 1384 5 1 4 5 0 8 0 filepl 120 8408 0 8143 19 8 11 16 0 8 2 lockfpl 104 347 0 345 1 0 1 1 0 8 0 lockfspl 48 144 0 142 1 0 1 1 0 8 0 sessionpl 144 44 0 34 1 0 1 1 0 8 0 pgrppl 48 109 0 91 1 0 1 1 0 8 0 ucredpl 104 1384 0 1371 1 0 1 1 0 8 0 zombiepl 144 1568 0 1564 2 1 1 1 0 8 0 processpl 1096 1454 0 1384 6 0 6 6 0 8 0 procpl 648 2623 0 2549 8 1 7 8 0 8 0 sosppl 168 5 0 3 2 1 1 1 0 8 0 sockpl 504 2156 0 2120 32 20 12 21 0 8 7 mcl64k 65536 19 0 19 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 1 1 0 1 0 8 0 mcl8k 8192 21 0 21 2 1 1 1 0 8 1 mcl4k 4096 3798 0 3748 15 8 7 15 0 8 0 mcl2k 2048 1269 0 1262 7 4 3 5 0 8 2 mtagpl 96 33 0 18 1 0 1 1 0 8 0 mbufpl 256 14592 0 14394 23 5 18 18 0 8 4 bufpl 280 6583 0 336 447 0 447 447 0 8 0 anonpl 24 241327 0 237556 119 71 48 94 0 187 24 amapchunkpl 152 37370 0 36855 44 13 31 33 0 158 11 amappl16 200 5461 0 5436 40 37 3 40 0 8 1 amappl15 192 9 0 9 1 1 0 1 0 8 0 amappl14 184 152 0 140 1 0 1 1 0 8 0 amappl13 176 7 0 7 2 1 1 1 0 8 1 amappl12 168 2329 0 2297 2 0 2 2 0 8 0 amappl11 160 48 0 38 1 0 1 1 0 8 0 amappl10 152 29 0 29 1 1 0 1 0 8 0 amappl9 144 132 0 132 1 1 0 1 0 8 0 amappl8 136 58 0 57 1 0 1 1 0 8 0 amappl7 128 139 0 127 1 0 1 1 0 8 0 amappl6 120 349 0 348 1 0 1 1 0 8 0 amappl5 112 214 0 202 1 0 1 1 0 8 0 amappl4 104 364 0 348 1 0 1 1 0 8 0 amappl3 96 7437 0 7319 4 0 4 4 0 8 1 amappl2 88 962 0 884 2 0 2 2 0 8 0 amappl1 80 12495 0 11804 16 1 15 15 0 8 0 amappl 88 10663 0 10484 5 0 5 5 0 92 0 dma32768 32768 1 0 1 1 1 0 1 0 8 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 61 0 4 2 0 2 2 0 8 0 uaddrrnd 24 1416 0 1384 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1416 0 1384 1 0 1 1 0 8 0 vmmpekpl 168 11974 0 11925 3 0 3 3 0 8 0 vmmpepl 168 93011 0 90960 117 27 90 109 0 357 0 vmsppl 344 1415 0 1384 4 1 3 4 0 8 0 rwobjpl 24 32174 0 27127 32 1 31 31 0 8 0 pdppl 4096 2838 0 2768 146 76 70 82 0 8 0 pvpl 32 673624 0 661590 337 119 218 218 0 265 120 pmappl 216 1415 0 1384 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 490 0 138 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(ffffffff82ff5a94) 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(ffff800032679ed0) at ast+0x13f mi_ast sys/sys/syscall_mi.h:261 [inline] ast(ffff800032679ed0) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0x798c53beb330, 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(ffffffff82ff5a94) 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(ffff800032679ed0) at ast+0x13f mi_ast sys/sys/syscall_mi.h:261 [inline] ast(ffff800032679ed0) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0x798c53beb330, count: -7