panic: assertwaitok: non-zero mutex count: 1 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 85726 48023 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(ffff80003765de80) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff80003765de80) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x789c337249b0, 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(ffff80003765de80) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff80003765de80) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x789c337249b0, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003765dd10 rbx 0 rdx 0 rcx 0 rax 0xffff800037642028 r8 0x101010101010101 r9 0x8080808080808080 r10 0xb67026cedcef82f9 r11 0x9816c1a3229d2bd1 r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff817dabb5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003765dd00 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=85726 pid=48023 tcnt=3 stat=onproc flags process=0 proc=0 runpri=81, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4c3bf0,0xffff8000376d1710 process=0xffff80003767ef38 user=0xffff800037658000, vmspace=0xfffffd806c2366f0 estcpu=31, cpticks=4, pctcpu=0.7, user=9, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 71883 506834 22294 0 3 0 futex syz-executor 71883 98525 22294 0 3 0x4000080 fsleep syz-executor 51877 38465 80629 0 2 0 syz-executor 51877 199227 80629 0 3 0x4000080 fsleep syz-executor 66323 496775 24492 0 3 0 vmmaplk syz-executor 66323 487790 24492 0 2 0x4000000 syz-executor 66323 129991 24492 0 3 0x4000000 vmmaplk syz-executor 14732 79121 57505 0 2 0 syz-executor 14732 241743 57505 0 2 0x4000000 syz-executor 14732 22600 57505 0 2 0x4000000 syz-executor 49667 203389 11175 0 2 0 syz-executor 49667 131067 11175 0 3 0x4000000 vmmaplk syz-executor 49667 446322 11175 0 2 0x4000000 syz-executor 1217 468239 94875 0 3 0x80 nanoslp syz-executor 1217 198235 94875 0 3 0x4000080 fsleep syz-executor 1217 378778 94875 0 2 0x4000000 syz-executor *48023 85726 56291 0 7 0 syz-executor 48023 332411 56291 0 2 0x4000000 syz-executor 48023 169323 56291 0 2 0x4000000 syz-executor 75038 522549 0 0 3 0x14200 acct acct 78429 173420 0 0 3 0x14200 bored sosplice 85671 15082 0 0 3 0x14280 nfsidl nfsio 99012 206359 0 0 3 0x14280 nfsidl nfsio 11522 415447 0 0 3 0x14280 nfsidl nfsio 66022 441947 0 0 3 0x14280 nfsidl nfsio 58626 285320 0 0 3 0x14280 nfsidl nfsio 99055 71337 0 0 3 0x14280 nfsidl nfsio 39816 434510 0 0 3 0x14280 nfsidl nfsio 53536 221224 0 0 3 0x14280 nfsidl nfsio 6438 331864 0 0 3 0x14280 nfsidl nfsio 56123 167167 0 0 3 0x14280 nfsidl nfsio 37274 485197 0 0 3 0x14280 nfsidl nfsio 57075 82437 0 0 3 0x14280 nfsidl nfsio 63003 242278 0 0 3 0x14280 nfsidl nfsio 11407 252676 0 0 3 0x14280 nfsidl nfsio 15138 223766 0 0 3 0x14280 nfsidl nfsio 14280 228711 0 0 3 0x14280 nfsidl nfsio 18929 416579 0 0 3 0x14280 nfsidl nfsio 97578 154903 0 0 3 0x14280 nfsidl nfsio 78198 425240 0 0 3 0x14280 nfsidl nfsio 37307 466841 0 0 3 0x14280 nfsidl nfsio 80629 116144 14218 0 3 0x82 nanoslp syz-executor 28282 87119 14218 0 3 0x82 wait syz-executor 94875 407500 14218 0 3 0x82 nanoslp syz-executor 11175 278831 14218 0 3 0x82 nanoslp syz-executor 57505 212111 14218 0 3 0x82 nanoslp syz-executor 56291 17403 14218 0 3 0x82 nanoslp syz-executor 22294 297740 14218 0 3 0x82 nanoslp syz-executor 24492 70535 14218 0 3 0x82 nanoslp syz-executor 14218 154094 92956 0 3 0x82 kqread syz-executor 92956 403755 37414 0 3 0x10008a sigsusp ksh 37414 124853 50887 0 3 0x98 kqread sshd-session 50887 510632 96942 0 3 0x92 kqread sshd-session 16037 449104 1 0 3 0x100083 ttyin getty 96942 103234 1 0 3 0x88 kqread sshd 55231 167623 79259 73 3 0x1100090 kqread syslogd 79259 218878 1 0 3 0x100082 sbwait syslogd 84201 197227 1 0 3 0x100080 kqread resolvd 93485 204433 88427 77 3 0x100092 kqread dhcpleased 2549 437926 88427 77 3 0x100092 kqread dhcpleased 88427 46083 1 0 3 0x80 kqread dhcpleased 85712 319187 0 0 3 0x14200 bored smr 75520 109352 0 0 2 0x14200 zerothread 72959 214529 0 0 3 0x14200 aiodoned aiodoned 27277 410374 0 0 3 0x14200 syncer update 25504 388270 0 0 3 0x14200 cleaner cleaner 91014 141384 0 0 3 0x14200 reaper reaper 89148 87339 0 0 3 0x14200 pgdaemon pagedaemon 66413 161876 0 0 3 0x14200 bored viomb 57458 309230 0 0 3 0x40014200 acpi0 acpi0 73126 5602 0 0 3 0x14200 bored softnet3 60991 501276 0 0 3 0x14200 bored softnet2 60191 444202 0 0 3 0x14200 bored softnet1 91789 346519 0 0 3 0x14200 bored softnet0 78276 366126 0 0 3 0x14200 bored systqmp 22160 408903 0 0 3 0x14200 bored systq 56368 454478 0 0 3 0x40014200 tmoslp softclock 47423 410012 0 0 3 0x40014200 idle0 1 25088 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 10211 11177K 11640K 166960K 11677 0 pcb 17 12K 12K 166960K 66 0 rtable 178 6K 7K 166960K 415 0 pf 27 12K 20K 166960K 54 0 ifaddr 34 6K 7K 166960K 55 0 ifgroup 42 1K 2K 166960K 73 0 sysctl 2 0K 0K 166960K 2 0 counters 28 17K 17K 166960K 37 0 ioctlops 0 0K 4K 166960K 85 0 iov 0 0K 12K 166960K 15 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1376 86K 87K 166960K 1792 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 78 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 97K 166960K 456 0 sigio 0 0K 0K 166960K 9 0 proc 60 59K 124K 166960K 508 0 subproc 104 6K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 131 0 in_multi 77 5K 7K 166960K 113 0 ether_multi 1 0K 0K 166960K 2 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 395 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 230 73K 76K 166960K 5610 0 UVM aobj 13 2K 2K 166960K 16 0 pinsyscall 39 78K 96K 166960K 1474 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 27 0 NDP 9 0K 2K 166960K 35 0 temp 42 6808K 6871K 166960K 18029 0 kqueue 15 24K 28K 166960K 83 0 SYN cache 2 8K 16K 166960K 3 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 129 0 126 3 2 1 3 0 8 0 rtentry 112 120 0 41 4 0 4 4 0 8 0 unpcb 144 657 0 641 6 5 1 6 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 808 157 0 153 4 3 1 4 0 8 0 arp 88 20 0 6 1 0 1 1 0 8 0 ipq 40 3 0 0 1 0 1 1 0 8 0 ipqe 40 36 0 33 1 0 1 1 0 8 0 inpcb 336 453 0 444 5 3 2 5 0 8 0 nd6 104 24 0 6 1 0 1 1 0 8 0 pkpcb 40 7 0 7 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 5 0 5 1 1 0 1 0 8 0 pfrule 1344 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 504 0 151 29 2 27 29 0 8 0 art_table 32 506 0 151 4 0 4 4 0 8 0 art_node 16 119 0 48 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semapl 112 75 0 65 1 0 1 1 0 8 0 shmpl 112 13 0 3 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2294 0 800 95 0 95 95 0 8 0 ffsino 240 2294 0 800 89 0 89 89 0 8 0 nchpl 144 2953 0 1283 63 0 63 63 0 8 0 uvmvnodes 80 2565 0 0 53 0 53 53 0 8 0 vnodes 216 2565 0 0 143 0 143 143 0 8 0 namei 1024 9652 0 9652 3 2 1 2 0 8 1 kstatmem 264 36 0 18 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 8011 0 8011 4 3 1 4 1 8 1 plimitpl 152 139 0 122 1 0 1 1 0 8 0 sigapl 424 757 0 689 8 0 8 8 0 8 0 futexpl 64 5586 0 5582 1 0 1 1 0 8 0 knotepl 120 15733 0 15680 17 8 9 16 0 8 6 kqueuepl 184 119 0 107 1 0 1 1 0 8 0 pipepl 288 199 0 172 3 1 2 3 0 8 0 fdescpl 432 718 0 688 5 1 4 5 0 8 0 filepl 120 4653 0 4403 17 8 9 17 0 8 0 lockfpl 104 92 0 90 1 0 1 1 0 8 0 lockfspl 48 41 0 39 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 32 0 16 1 0 1 1 0 8 0 ucredpl 104 1146 0 1135 1 0 1 1 0 8 0 zombiepl 144 702 0 701 1 0 1 1 0 8 0 processpl 1096 757 0 689 5 0 5 5 0 8 0 procpl 648 1248 0 1168 8 1 7 8 0 8 0 sosppl 168 3 0 3 1 1 0 1 0 8 0 sockpl 504 1252 0 1224 27 21 6 22 0 8 1 mcl64k 65536 7 0 7 1 1 0 1 0 8 0 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 16 0 16 1 1 0 1 0 8 0 mcl4k 4096 2963 0 2914 18 10 8 17 0 8 1 mcl2k 2048 473 0 470 1 0 1 1 0 8 0 mtagpl 96 14 0 10 1 0 1 1 0 8 0 mbufpl 256 8686 0 8546 15 4 11 15 0 8 0 bufpl 280 2822 0 96 195 0 195 195 0 8 0 anonpl 24 146446 0 140766 45 0 45 45 0 187 10 amapchunkpl 152 18045 0 17536 23 1 22 23 0 158 2 amappl16 200 3108 0 2946 16 2 14 14 0 8 5 amappl15 192 10 0 10 1 1 0 1 0 8 0 amappl14 184 112 0 102 1 0 1 1 0 8 0 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 1329 0 1299 3 1 2 3 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 39 0 39 1 1 0 1 0 8 0 amappl9 144 141 0 141 1 1 0 1 0 8 0 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 99 0 89 1 0 1 1 0 8 0 amappl6 120 190 0 189 1 0 1 1 0 8 0 amappl5 112 126 0 117 1 0 1 1 0 8 0 amappl4 104 293 0 278 1 0 1 1 0 8 0 amappl3 96 3436 0 3340 3 0 3 3 0 8 0 amappl2 88 984 0 903 2 0 2 2 0 8 0 amappl1 80 8387 0 7865 13 1 12 13 0 8 0 amappl 88 5223 0 5047 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 15 0 3 1 0 1 1 0 8 0 uaddrrnd 24 718 0 688 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 718 0 688 1 0 1 1 0 8 0 vmmpekpl 168 7146 0 7114 2 0 2 2 0 8 0 vmmpepl 168 50231 0 48309 93 6 87 87 0 357 3 vmsppl 352 717 0 688 4 1 3 4 0 8 0 rwobjpl 24 19182 0 15611 22 0 22 22 0 8 0 pdppl 4096 1443 0 1376 109 42 67 83 0 8 0 pvpl 32 338993 0 327166 113 5 108 108 0 265 12 pmappl 216 717 0 688 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 410 0 94 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(ffff80003765de80) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff80003765de80) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x789c337249b0, 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(ffff80003765de80) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff80003765de80) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x789c337249b0, count: -7