panic: assertwaitok: non-zero mutex count: 1 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *459933 78867 0 0 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830033fa) 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(ffff8000341fd4f0) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff8000341fd4f0) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x7afd6db28720, 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(ffffffff830033fa) 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(ffff8000341fd4f0) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff8000341fd4f0) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x7afd6db28720, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000341fd380 rbx 0 rdx 0 rcx 0 rax 0xffff8000376202b0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x55f79f77d6783f79 r11 0xb5469a62c1122f85 r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff82745485 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000341fd370 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=459933 pid=78867 tcnt=3 stat=onproc flags process=0 proc=0 runpri=82, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800037620538,0xffff800037620a58 process=0xffff8000327f77c0 user=0xffff8000341f8000, vmspace=0xfffffd806c3b9dd0 estcpu=32, cpticks=2, pctcpu=0.5, user=7, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 84887 332469 6368 0 2 0 syz-executor 84887 114375 6368 0 3 0x4000080 fsleep syz-executor 84887 458344 6368 0 2 0x4000000 syz-executor *78867 459933 25194 0 7 0 syz-executor 78867 512658 25194 0 2 0x4000000 syz-executor 78867 358368 25194 0 3 0x4000000 vmmaplk syz-executor 67506 493152 93393 0 2 0 syz-executor 67506 105069 93393 0 3 0x4000080 fsleep syz-executor 55519 153721 88607 0 2 0 syz-executor 55519 136601 88607 0 2 0x4000000 syz-executor 55519 144637 88607 0 3 0x4000080 fsleep syz-executor 55295 222106 90025 0 2 0 syz-executor 55295 41985 90025 0 2 0x4000000 syz-executor 55295 15279 90025 0 2 0x4000000 syz-executor 20590 327689 85760 0 2 0x10 syz-executor 20590 213874 85760 0 2 0x4000010 syz-executor 20590 310525 85760 0 2 0x4000010 syz-executor 99846 47042 44692 0 2 0 syz-executor 99846 409821 44692 0 3 0x4000080 ttyout syz-executor 99846 426983 44692 0 3 0x4000080 ttyout syz-executor 99846 299269 44692 0 2 0x4000000 syz-executor 45236 26960 99156 0 2 0 syz-executor 45236 63568 99156 0 3 0x4000080 fsleep syz-executor 45236 482594 99156 0 2 0x4000000 syz-executor 99156 182881 69609 0 3 0x82 nanoslp syz-executor 87145 55221 0 0 3 0x14200 bored sosplice 25194 395557 69609 0 3 0x82 nanoslp syz-executor 6368 214048 69609 0 3 0x82 nanoslp syz-executor 85760 388047 69609 0 3 0x82 nanoslp syz-executor 44692 277444 69609 0 3 0x82 nanoslp syz-executor 88607 483507 69609 0 3 0x82 nanoslp syz-executor 93393 228026 69609 0 3 0x82 nanoslp syz-executor 90025 311641 69609 0 3 0x82 nanoslp syz-executor 69609 425119 58065 0 3 0x82 kqread syz-executor 58065 49145 89541 0 3 0x10008a sigsusp ksh 89541 362306 41828 0 3 0x98 kqread sshd-session 41828 848 28366 0 3 0x92 kqread sshd-session 97358 121527 1 0 3 0x100083 ttyin getty 28366 411130 1 0 3 0x88 kqread sshd 69765 382164 46664 73 3 0x1100090 kqread syslogd 46664 307231 1 0 3 0x100082 sbwait syslogd 74323 451779 1 0 3 0x100080 kqread resolvd 9163 207344 98990 77 3 0x100092 kqread dhcpleased 28406 92315 98990 77 3 0x100092 kqread dhcpleased 98990 317140 1 0 3 0x80 kqread dhcpleased 69236 54149 0 0 3 0x14200 bored smr 48442 207169 0 0 2 0x14200 zerothread 76678 237707 0 0 3 0x14200 aiodoned aiodoned 44989 77887 0 0 3 0x14200 syncer update 28266 130318 0 0 3 0x14200 cleaner cleaner 73147 256213 0 0 3 0x14200 reaper reaper 5282 357637 0 0 3 0x14200 pgdaemon pagedaemon 74727 23859 0 0 3 0x14200 bored viomb 37391 105586 0 0 3 0x40014200 acpi0 acpi0 34093 277785 0 0 3 0x14200 bored softnet3 82768 519306 0 0 3 0x14200 bored softnet2 22922 288880 0 0 3 0x14200 bored softnet1 86726 15392 0 0 3 0x14200 bored softnet0 90026 293687 0 0 3 0x14200 bored systqmp 95446 388361 0 0 3 0x14200 bored systq 51214 30353 0 0 3 0x40014200 tmoslp softclock 90356 107018 0 0 3 0x40014200 idle0 1 338509 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 10178 11052K 11447K 166960K 11886 0 pcb 17 13K 13K 166960K 79 0 rtable 234 8K 8K 166960K 436 0 pf 33 13K 14K 166960K 41 0 ifaddr 41 7K 7K 166960K 53 0 ifgroup 50 2K 2K 166960K 62 0 counters 30 17K 17K 166960K 34 0 ioctlops 0 0K 4K 166960K 54 0 iov 0 0K 12K 166960K 82 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1465 92K 92K 166960K 1748 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 55 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 97K 166960K 455 0 sigio 0 0K 0K 166960K 12 0 proc 60 59K 124K 166960K 543 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 0 0K 0K 166960K 33 0 in_multi 98 7K 7K 166960K 131 0 ether_multi 1 0K 0K 166960K 5 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 398 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 239 72K 88K 166960K 5762 0 UVM aobj 7 2K 2K 166960K 7 0 pinsyscall 39 78K 96K 166960K 1514 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 16 0 NDP 11 0K 2K 166960K 34 0 temp 77 6821K 6884K 166960K 12138 0 kqueue 13 20K 30K 166960K 70 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 61 0 58 1 0 1 1 0 8 0 rtentry 112 138 0 31 4 0 4 4 0 8 0 unpcb 144 216 0 194 1 0 1 1 0 8 0 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpqe 32 2 0 2 2 1 1 1 0 8 1 tcpcb 808 76 0 70 2 0 2 2 0 8 1 arp 88 24 0 8 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 336 384 0 372 6 2 4 4 0 8 2 nd6 104 34 0 8 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 2 0 2 2 1 1 1 0 8 1 pfstscr 40 1 0 1 1 0 1 1 0 8 1 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 6 0 2 1 0 1 1 0 8 0 pfstate 344 3 0 1 1 0 1 1 0 8 0 pfrule 1344 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 517 0 64 29 0 29 29 0 8 0 art_table 32 519 0 64 4 0 4 4 0 8 0 art_node 16 137 0 41 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 52 0 42 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2098 0 599 95 0 95 95 0 8 0 ffsino 240 2098 0 599 89 0 89 89 0 8 0 nchpl 144 2751 0 1072 63 0 63 63 0 8 0 uvmvnodes 80 2480 0 0 51 0 51 51 0 8 0 vnodes 216 2480 0 0 138 0 138 138 0 8 0 namei 1024 8713 0 8712 3 2 1 2 0 8 0 kstatmem 264 30 0 8 2 0 2 2 0 8 0 scsiplug 72 2 0 2 2 1 1 1 0 8 1 scxspl 216 7775 0 7775 9 1 8 8 1 8 8 plimitpl 152 108 0 92 1 0 1 1 0 8 0 sigapl 424 736 0 689 7 1 6 7 0 8 0 futexpl 64 5265 0 5260 1 0 1 1 0 8 0 knotepl 120 14150 0 14103 25 15 10 17 0 8 8 kqueuepl 184 102 0 92 1 0 1 1 0 8 0 pipepl 288 134 0 107 4 1 3 3 0 8 0 fdescpl 432 719 0 689 5 1 4 5 0 8 0 filepl 120 3488 0 3235 12 1 11 11 0 8 1 lockfpl 104 149 0 147 1 0 1 1 0 8 0 lockfspl 48 68 0 66 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 546 0 534 1 0 1 1 0 8 0 zombiepl 144 862 0 862 1 0 1 1 0 8 1 processpl 1096 736 0 689 4 0 4 4 0 8 0 procpl 648 1273 0 1209 6 0 6 6 0 8 0 sockpl 504 668 0 631 12 3 9 9 0 8 3 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl16k 16384 4 0 4 2 1 1 1 0 8 1 mcl8k 8192 17 0 17 2 1 1 1 0 8 1 mcl4k 4096 3108 0 3056 16 8 8 16 0 8 1 mcl2k2 2112 3 0 3 1 0 1 1 0 8 1 mcl2k 2048 475 0 472 3 1 2 2 0 8 1 mtagpl 96 8 0 5 2 1 1 1 0 8 0 mbufpl 256 8595 0 8394 15 0 15 15 0 8 0 bufpl 280 2653 0 94 183 0 183 183 0 8 0 anonpl 24 186486 0 183152 26 4 22 24 0 187 1 amapchunkpl 152 19772 0 19241 35 1 34 34 0 158 13 amappl16 200 4863 0 4836 6 4 2 5 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 115 0 105 1 0 1 1 0 8 0 amappl13 176 11 0 11 1 1 0 1 0 8 0 amappl12 168 1360 0 1330 2 0 2 2 0 8 0 amappl11 160 49 0 39 1 0 1 1 0 8 0 amappl10 152 12 0 12 1 1 0 1 0 8 0 amappl9 144 121 0 121 1 1 0 1 0 8 0 amappl8 136 20 0 19 1 0 1 1 0 8 0 amappl7 128 109 0 99 1 0 1 1 0 8 0 amappl6 120 178 0 176 1 0 1 1 0 8 0 amappl5 112 129 0 121 1 0 1 1 0 8 0 amappl4 104 297 0 281 1 0 1 1 0 8 0 amappl3 96 3574 0 3474 3 0 3 3 0 8 0 amappl2 88 1002 0 923 2 0 2 2 0 8 0 amappl1 80 8808 0 8295 13 0 13 13 0 8 1 amappl 88 5379 0 5193 5 0 5 5 0 92 0 dma16384 16384 1 0 1 1 1 0 1 0 8 0 dma4096 4096 3 0 3 2 1 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 8 0 8 2 1 1 1 0 8 1 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 6 0 0 1 0 1 1 0 8 0 uaddrrnd 24 719 0 689 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 719 0 689 1 0 1 1 0 8 0 vmmpekpl 168 7088 0 7055 2 0 2 2 0 8 0 vmmpepl 168 52813 0 51014 87 3 84 84 0 357 5 vmsppl 352 718 0 689 4 1 3 4 0 8 0 rwobjpl 24 21736 0 18388 21 0 21 21 0 8 0 pdppl 4096 1444 0 1378 100 34 66 82 0 8 0 pvpl 32 379499 0 370441 88 1 87 87 0 265 2 pmappl 216 718 0 689 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 392 0 57 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(ffffffff830033fa) 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(ffff8000341fd4f0) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff8000341fd4f0) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x7afd6db28720, 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(ffffffff830033fa) 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(ffff8000341fd4f0) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff8000341fd4f0) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x7afd6db28720, count: -7