panic: assertwaitok: non-zero mutex count: 1 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *487137 15538 60929 0x10 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8300389a) 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(ffff800037639500) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff800037639500) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x728baa55db00, 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(ffffffff8300389a) 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(ffff800037639500) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff800037639500) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x728baa55db00, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800037639390 rbx 0 rdx 0 rcx 0 rax 0xffff80002a4d0cc8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x516a14cc6909f5da r11 0xc9ccfc0e8327c690 r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff822483c5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800037639380 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=487137 pid=15538 tcnt=3 stat=onproc flags process=10 proc=0 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4d16e8,0xffff80002a4d0030 process=0xffff8000327f6ae8 user=0xffff800037634000, vmspace=0xfffffd806c19a438 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 93262 506706 34422 0 2 0 syz-executor *15538 487137 3693 60929 7 0x10 syz-executor 15538 453577 3693 60929 3 0x4000010 vmmaplk syz-executor 15538 27756 3693 60929 2 0x4000010 syz-executor 26215 442005 25272 0 2 0x10 syz-executor 26215 33734 25272 0 3 0x4000090 fsleep syz-executor 84162 161668 39931 0 2 0 syz-executor 84162 327487 39931 0 3 0x4000080 fsleep syz-executor 84162 222041 39931 0 2 0x4000000 syz-executor 40414 366413 42762 0 2 0 syz-executor 40414 440180 42762 0 3 0x4000080 fsleep syz-executor 40414 303798 42762 0 3 0x4000080 fsleep syz-executor 40414 312587 42762 0 2 0x4000000 syz-executor 46468 105449 58574 0 2 0 syz-executor 46468 498444 58574 0 2 0x4000000 syz-executor 46468 8664 58574 0 2 0x4000000 syz-executor 8543 491844 11467 0 2 0 syz-executor 8543 431230 11467 0 2 0x4000000 syz-executor 8543 319377 11467 0 3 0x4000080 fsleep syz-executor 22362 237832 83468 0 2 0x10 syz-executor 22362 160343 83468 0 2 0x4000010 syz-executor 22362 393599 83468 0 3 0x4000090 fsleep syz-executor 76729 487496 1 0 3 0x100083 ttyin getty 58574 191698 57196 0 3 0x82 nanoslp syz-executor 67969 135239 0 0 3 0x14200 acct acct 54150 172777 0 0 3 0x14200 bored sosplice 42762 321556 57196 0 3 0x82 nanoslp syz-executor 83468 214248 57196 0 3 0x82 nanoslp syz-executor 25272 281874 57196 0 3 0x82 nanoslp syz-executor 39931 99201 57196 0 3 0x82 nanoslp syz-executor 34422 275791 57196 0 3 0x82 nanoslp syz-executor 11467 345191 57196 0 3 0x82 nanoslp syz-executor 3693 74144 57196 0 3 0x82 nanoslp syz-executor 57196 442552 84843 0 3 0x82 kqread syz-executor 84843 136695 73671 0 3 0x10008a sigsusp ksh 73671 323091 84832 0 3 0x98 kqread sshd-session 84832 317832 20498 0 3 0x92 kqread sshd-session 20498 27274 1 0 3 0x88 kqread sshd 29252 360510 82377 73 2 0x1100010 syslogd 82377 503 1 0 3 0x100082 sbwait syslogd 9338 352220 1 0 3 0x100080 kqread resolvd 60035 401163 97610 77 3 0x100092 kqread dhcpleased 86622 235868 97610 77 3 0x100092 kqread dhcpleased 97610 58664 1 0 3 0x80 kqread dhcpleased 58110 80018 0 0 3 0x14200 bored smr 10177 365441 0 0 2 0x14200 zerothread 39360 1516 0 0 3 0x14200 aiodoned aiodoned 77864 188006 0 0 3 0x14200 syncer update 31623 376105 0 0 3 0x14200 cleaner cleaner 35174 108156 0 0 3 0x14200 reaper reaper 86473 471804 0 0 3 0x14200 pgdaemon pagedaemon 35068 415225 0 0 3 0x14200 bored viomb 45070 274313 0 0 3 0x40014200 acpi0 acpi0 81169 515504 0 0 3 0x14200 bored softnet3 24640 289772 0 0 3 0x14200 bored softnet2 71372 449994 0 0 3 0x14200 bored softnet1 40706 267814 0 0 3 0x14200 bored softnet0 27757 424301 0 0 3 0x14200 bored systqmp 49947 396936 0 0 3 0x14200 bored systq 492 335140 0 0 3 0x40014200 tmoslp softclock 22432 516136 0 0 3 0x40014200 idle0 1 384628 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 10209 11304K 11452K 166960K 12490 0 pcb 17 15K 17K 166960K 225 0 rtable 172 15K 17K 166960K 485 0 pf 35 14K 20K 166960K 92 0 ifaddr 34 5K 7K 166960K 67 0 ifgroup 50 2K 2K 166960K 102 0 sysctl 3 0K 0K 166960K 3 0 counters 30 17K 17K 166960K 44 0 ioctlops 0 0K 4K 166960K 175 0 iov 0 0K 36K 166960K 67 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1430 90K 90K 166960K 2169 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 13K 166960K 30 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 21 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 93K 166960K 977 0 sigio 0 0K 0K 166960K 24 0 proc 60 59K 116K 166960K 591 0 subproc 104 6K 6K 166960K 117 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 108 0 in_multi 68 5K 7K 166960K 149 0 ether_multi 2 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 223 996K 996K 166960K 223 0 exec 0 0K 1K 166960K 527 0 fusefs mount 1 32K 32K 166960K 1 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 236 72K 89K 166960K 11102 0 UVM aobj 49 2K 2K 166960K 53 0 pinsyscall 39 78K 95K 166960K 2028 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 35 0 NDP 11 0K 2K 166960K 45 0 temp 71 6819K 6949K 166960K 27344 0 kqueue 13 20K 30K 166960K 167 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 138 0 135 1 0 1 1 0 8 0 rtentry 112 142 0 71 4 0 4 4 0 8 1 unpcb 144 765 0 745 6 0 6 6 0 8 5 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 417 0 412 11 3 8 8 0 8 7 arp 88 22 0 10 1 0 1 1 0 8 0 ipq 40 5 0 4 1 0 1 1 0 8 0 ipqe 40 51 0 48 1 0 1 1 0 8 0 inpcb 336 1286 0 1276 16 7 9 12 0 8 7 nd6 104 32 0 15 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 6 0 6 2 1 1 1 0 8 1 pfstscr 40 3 0 3 1 0 1 1 0 8 1 pfrktable 1344 5 0 2 1 0 1 1 0 8 0 pfanchor 1288 3 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 7 0 4 1 0 1 1 0 8 0 pfstkey 128 13 0 6 1 0 1 1 0 8 0 pfstate 344 9 0 7 1 0 1 1 0 8 0 pfrule 1344 11 0 10 1 0 1 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 588 0 264 29 0 29 29 0 8 7 art_table 32 591 0 264 4 0 4 4 0 8 0 art_node 16 136 0 72 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 14 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 19 0 9 2 1 1 1 0 8 0 shmpl 112 50 0 4 2 0 2 2 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 3080 0 1585 95 0 95 95 0 8 0 ffsino 240 3080 0 1585 89 0 89 89 0 8 0 nchpl 144 4487 0 2807 63 0 63 63 0 8 0 uvmvnodes 80 3677 0 0 76 0 76 76 0 8 0 vnodes 216 3677 0 0 205 0 205 205 0 8 0 namei 1024 15190 0 15188 3 1 2 2 0 8 1 pfiaddrpl 120 2 0 1 1 0 1 1 0 8 0 kstatmem 264 50 0 28 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 0 1 1 0 8 1 scxspl 216 13223 0 13223 9 1 8 8 1 8 8 plimitpl 152 374 0 356 1 0 1 1 0 8 0 sigapl 424 1277 0 1229 8 0 8 8 0 8 1 futexpl 64 13321 0 13315 1 0 1 1 0 8 0 knotepl 120 45580 0 45533 16 6 10 10 0 8 8 kqueuepl 184 212 0 202 1 0 1 1 0 8 0 pipepl 288 188 0 160 3 0 3 3 0 8 0 fdescpl 432 1239 0 1209 5 1 4 5 0 8 0 filepl 120 7871 0 7617 20 5 15 15 0 8 7 lockfpl 104 276 0 274 1 0 1 1 0 8 0 lockfspl 48 109 0 107 1 0 1 1 0 8 0 sessionpl 144 25 0 17 1 0 1 1 0 8 0 pgrppl 48 43 0 27 1 0 1 1 0 8 0 ucredpl 104 1439 0 1425 1 0 1 1 0 8 0 zombiepl 144 1827 0 1827 1 0 1 1 0 8 1 processpl 1096 1277 0 1229 5 0 5 5 0 8 0 procpl 648 2814 0 2752 9 1 8 8 0 8 2 sosppl 168 6 0 6 1 0 1 1 0 8 1 sockpl 504 2212 0 2179 45 33 12 29 0 8 7 mcl64k 65536 85 0 85 2 1 1 1 0 8 1 mcl16k 16384 9 0 9 2 1 1 1 0 8 1 mcl12k 12288 3 0 3 1 0 1 1 0 8 1 mcl9k 9216 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 28 0 28 2 1 1 1 0 8 1 mcl4k 4096 3886 0 3831 16 8 8 16 0 8 0 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 1012 0 1003 6 3 3 3 0 8 1 mtagpl 96 29 0 12 1 0 1 1 0 8 0 mbufpl 256 14029 0 13868 21 0 21 21 0 8 6 bufpl 280 4157 0 102 290 0 290 290 0 8 0 anonpl 24 239145 0 235597 52 5 47 47 0 187 13 amapchunkpl 152 39362 0 38837 53 17 36 39 0 158 15 amappl16 200 5255 0 5222 21 10 11 15 0 8 8 amappl15 192 9 0 8 1 0 1 1 0 8 0 amappl14 184 113 0 103 1 0 1 1 0 8 0 amappl13 176 8 0 7 1 0 1 1 0 8 0 amappl12 168 1869 0 1839 2 0 2 2 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 14 0 14 1 1 0 1 0 8 0 amappl9 144 160 0 160 1 1 0 1 0 8 0 amappl8 136 24 0 22 1 0 1 1 0 8 0 amappl7 128 113 0 103 1 0 1 1 0 8 0 amappl6 120 167 0 166 1 0 1 1 0 8 0 amappl5 112 129 0 119 1 0 1 1 0 8 0 amappl4 104 289 0 273 1 0 1 1 0 8 0 amappl3 96 6647 0 6548 3 0 3 3 0 8 0 amappl2 88 1515 0 1437 2 0 2 2 0 8 0 amappl1 80 9893 0 9374 14 2 12 13 0 8 1 amappl 88 10665 0 10484 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 52 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1239 0 1209 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1239 0 1209 1 0 1 1 0 8 0 vmmpekpl 168 10933 0 10898 3 0 3 3 0 8 0 vmmpepl 168 81881 0 80070 90 0 90 90 0 357 10 vmsppl 352 1238 0 1209 4 1 3 4 0 8 0 rwobjpl 24 28641 0 24046 28 0 28 28 0 8 0 pdppl 4096 2484 0 2418 100 34 66 80 0 8 0 pvpl 32 579731 0 570647 132 14 118 118 0 265 28 pmappl 216 1238 0 1209 3 0 3 3 0 8 1 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 450 0 95 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(ffffffff8300389a) 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(ffff800037639500) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff800037639500) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x728baa55db00, 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(ffffffff8300389a) 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(ffff800037639500) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff800037639500) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x728baa55db00, count: -7