panic: assertwaitok: non-zero mutex count: 1 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *194721 84323 0 0 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830026d4) 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(ffff80002a581d30) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff80002a581d30) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x78631abe0d40, 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(ffffffff830026d4) 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(ffff80002a581d30) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff80002a581d30) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x78631abe0d40, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a581bc0 rbx 0 rdx 0 rcx 0 rax 0xffff80002d9e16f8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x30ddd5fa2ec3e844 r11 0x1aa5dbbae36820ba r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff81603345 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a581bb0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=194721 pid=84323 tcnt=4 stat=onproc flags process=0 proc=0 runpri=82, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4b0010,0xffff80002d9e0040 process=0xffff8000327f5580 user=0xffff80002a57c000, vmspace=0xfffffd806c37d010 estcpu=33, cpticks=6, pctcpu=0.0, user=5, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 56789 281288 51051 0 2 0 syz-executor 56789 210008 51051 0 2 0x4000000 syz-executor *84323 194721 67333 0 7 0 syz-executor 84323 145418 67333 0 2 0x4000000 syz-executor 84323 140230 67333 0 3 0x4000000 vmmaplk syz-executor 84323 320592 67333 0 2 0x4000000 syz-executor 67389 514047 23574 0 2 0 syz-executor 67389 219185 23574 0 3 0x4000080 fsleep syz-executor 28706 262017 89175 0 2 0 syz-executor 28706 373245 89175 0 3 0x4000080 fsleep syz-executor 55908 495261 68415 0 2 0 syz-executor 55908 30039 68415 0 3 0x4000080 fsleep syz-executor 36136 324888 13000 0 2 0 syz-executor 36136 228932 13000 0 3 0x4000080 fsleep syz-executor 79490 101753 52979 0 2 0x4081000 syz-executor 79490 55976 52979 0 3 0x4003000 suspend syz-executor 84434 463864 68639 0 2 0x2 syz-executor 89175 115550 68639 0 3 0x82 nanoslp syz-executor 23574 33499 68639 0 3 0x82 nanoslp syz-executor 68415 461444 68639 0 3 0x82 nanoslp syz-executor 44599 302740 0 0 3 0x14280 nfsidl nfsio 52064 237868 0 0 3 0x14280 nfsidl nfsio 50006 239405 0 0 3 0x14280 nfsidl nfsio 89297 97455 0 0 3 0x14280 nfsidl nfsio 57982 25816 0 0 3 0x14280 nfsidl nfsio 47045 39817 0 0 3 0x14280 nfsidl nfsio 35250 103983 0 0 3 0x14280 nfsidl nfsio 78130 193687 0 0 3 0x14280 nfsidl nfsio 2425 319141 0 0 3 0x14280 nfsidl nfsio 19884 186652 0 0 3 0x14280 nfsidl nfsio 51276 511062 0 0 3 0x14280 nfsidl nfsio 32003 19821 0 0 3 0x14280 nfsidl nfsio 10175 129113 0 0 3 0x14280 nfsidl nfsio 29791 55356 0 0 3 0x14280 nfsidl nfsio 72810 23249 0 0 3 0x14280 nfsidl nfsio 61727 512991 0 0 3 0x14280 nfsidl nfsio 11928 58780 0 0 3 0x14280 nfsidl nfsio 80184 152769 0 0 3 0x14280 nfsidl nfsio 58922 331696 0 0 3 0x14280 nfsidl nfsio 88822 500075 0 0 3 0x14280 nfsidl nfsio 13000 469169 68639 0 3 0x82 nanoslp syz-executor 67333 171460 68639 0 3 0x82 nanoslp syz-executor 54294 50842 1 0 3 0x100083 ttyin getty 58467 490432 0 0 3 0x14200 bored sosplice 51051 1209 68639 0 3 0x82 nanoslp syz-executor 52979 438271 68639 0 3 0x82 wait syz-executor 68639 117219 96025 0 3 0x82 kqread syz-executor 96025 415147 46633 0 3 0x10008a sigsusp ksh 46633 419426 53075 0 3 0x98 kqread sshd-session 53075 406128 32483 0 3 0x92 kqread sshd-session 32483 50964 1 0 3 0x88 kqread sshd 93132 514141 89977 73 3 0x1100090 kqread syslogd 89977 262382 1 0 3 0x100082 sbwait syslogd 38772 61698 1 0 3 0x100080 kqread resolvd 30110 69926 557 77 3 0x100092 kqread dhcpleased 79921 164227 557 77 3 0x100092 kqread dhcpleased 557 59956 1 0 3 0x80 kqread dhcpleased 59899 176179 0 0 3 0x14200 bored smr 54989 495733 0 0 2 0x14200 zerothread 38061 317760 0 0 3 0x14200 aiodoned aiodoned 58519 97836 0 0 3 0x14200 syncer update 77700 462843 0 0 3 0x14200 cleaner cleaner 59953 172761 0 0 3 0x14200 reaper reaper 83165 358408 0 0 3 0x14200 pgdaemon pagedaemon 20463 377548 0 0 3 0x14200 bored viomb 22162 180771 0 0 3 0x40014200 acpi0 acpi0 28676 130840 0 0 3 0x14200 bored softnet3 23628 465812 0 0 3 0x14200 bored softnet2 14328 505892 0 0 3 0x14200 bored softnet1 52842 485149 0 0 3 0x14200 bored softnet0 79000 83482 0 0 3 0x14200 bored systqmp 28037 150990 0 0 3 0x14200 bored systq 45780 254658 0 0 3 0x40014200 tmoslp softclock 89887 101790 0 0 3 0x40014200 idle0 1 358924 0 0 3 0x80082 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 10182 11134K 11683K 166960K 15076 0 pcb 18 22K 24K 166960K 825 0 rtable 176 6K 8K 166960K 969 0 pf 33 13K 21K 166960K 146 0 ifaddr 34 5K 8K 166960K 133 0 ifgroup 50 2K 2K 166960K 187 0 sysctl 2 0K 1K 166960K 7 0 counters 30 17K 17K 166960K 71 0 ioctlops 0 0K 4K 166960K 340 0 iov 0 0K 20K 166960K 299 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1511 95K 95K 166960K 3508 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 55 0 VM map 2 1K 1K 166960K 2 0 sem 27 16K 26K 166960K 162 0 dirhash 12 2K 3K 166960K 66 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 97K 166960K 2678 0 sigio 0 0K 0K 166960K 84 0 proc 60 59K 116K 166960K 948 0 subproc 104 6K 6K 166960K 208 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 365 0 in_multi 64 4K 8K 166960K 298 0 ether_multi 1 0K 0K 166960K 25 0 mrt 2 0K 0K 166960K 8 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 850 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 225 73K 87K 166960K 25629 0 UVM aobj 131 9K 9K 166960K 137 0 pinsyscall 38 76K 98K 166960K 3913 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 157 0 NDP 11 0K 2K 166960K 93 0 temp 80 6821K 7156K 166960K 110249 0 kqueue 14 22K 32K 166960K 462 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 259 0 256 2 1 1 2 0 8 0 rtentry 112 286 0 210 4 0 4 4 0 8 0 unpcb 144 1978 0 1963 17 11 6 6 0 8 5 syncache 336 5 0 5 3 2 1 1 0 8 1 tcpcb 808 876 0 872 22 15 7 11 0 8 6 arp 88 49 0 32 1 0 1 1 0 8 0 ipq 40 10 0 10 1 0 1 1 0 8 1 ipqe 40 151 0 151 1 0 1 1 0 8 1 inpcb 336 3645 0 3637 54 45 9 12 0 8 8 ip6q 72 1 0 1 1 0 1 1 0 8 1 ip6af 40 1 0 1 1 0 1 1 0 8 1 nd6 104 63 0 47 1 0 1 1 0 8 0 pkpcb 40 15 0 15 4 3 1 1 0 8 1 kcovpl 48 16 0 8 1 0 1 1 0 8 0 ppxss 1072 20 0 20 6 5 1 1 0 8 1 pfstscr 40 3 0 3 1 1 0 1 0 8 0 pfanchor 1288 3 0 0 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 10 0 8 1 0 1 1 0 8 0 pfstate 344 5 0 4 1 0 1 1 0 8 0 pfrule 1344 6 0 4 1 0 1 1 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 1176 0 856 40 16 24 32 0 8 0 art_table 32 1180 0 856 5 0 5 5 0 8 0 art_node 16 277 0 213 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 9 1 0 1 1 0 8 0 semupl 112 4 0 4 2 2 0 1 0 8 0 semapl 112 136 0 111 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 55 0 38 3 0 3 3 0 8 0 dino2pl 256 6105 0 4599 95 0 95 95 0 8 0 ffsino 240 6105 0 4599 90 0 90 90 0 8 0 nchpl 144 9846 0 8145 64 0 64 64 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 36098 0 36098 8 7 1 2 0 8 1 kstatmem 264 104 0 82 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 9 0 9 5 4 1 1 0 8 1 scxspl 216 30355 0 30355 21 20 1 8 1 8 1 plimitpl 152 709 0 693 1 0 1 1 0 8 0 sigapl 424 2992 0 2926 9 1 8 8 0 8 0 futexpl 64 39859 0 39855 1 0 1 1 0 8 0 knotepl 120 400901 0 400852 73 65 8 17 0 8 5 kqueuepl 184 903 0 893 7 6 1 4 0 8 0 pipepl 288 392 0 365 4 1 3 3 0 8 0 fdescpl 432 2927 0 2898 5 1 4 5 0 8 0 filepl 120 20405 0 20165 23 11 12 14 0 8 3 lockfpl 104 1253 0 1251 2 1 1 2 0 8 0 lockfspl 48 311 0 309 1 0 1 1 0 8 0 sessionpl 144 30 0 22 1 0 1 1 0 8 0 pgrppl 48 145 0 129 1 0 1 1 0 8 0 ucredpl 104 3848 0 3837 1 0 1 1 0 8 0 zombiepl 144 3115 0 3115 6 5 1 1 0 8 1 processpl 1096 2992 0 2926 6 1 5 5 0 8 0 procpl 648 6668 0 6592 11 3 8 8 0 8 1 sosppl 168 15 0 15 4 4 0 1 0 8 0 sockpl 504 5956 0 5930 110 98 12 21 0 8 8 mcl64k 65536 32 0 32 8 7 1 1 0 8 1 mcl16k 16384 3 0 3 2 1 1 1 0 8 1 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 29 0 29 8 7 1 1 0 8 1 mcl4k 4096 6092 0 6039 19 11 8 14 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 2706 0 2701 11 9 2 5 0 8 0 mtagpl 96 73 0 49 1 0 1 1 0 8 0 mbufpl 256 33649 0 33500 130 115 15 73 0 8 0 bufpl 280 10537 0 4290 447 0 447 447 0 8 0 anonpl 24 407084 0 398762 77 1 76 77 0 187 0 amapchunkpl 152 86205 0 85652 76 50 26 35 0 158 1 amappl16 200 8879 0 8622 29 2 27 28 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 124 0 114 1 0 1 1 0 8 0 amappl13 176 13 0 13 1 1 0 1 0 8 0 amappl12 168 3670 0 3641 3 1 2 3 0 8 0 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 15 0 15 3 3 0 1 0 8 0 amappl9 144 130 0 129 1 0 1 1 0 8 0 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 117 0 106 1 0 1 1 0 8 0 amappl6 120 246 0 244 1 0 1 1 0 8 0 amappl5 112 186 0 177 1 0 1 1 0 8 0 amappl4 104 319 0 305 1 0 1 1 0 8 0 amappl3 96 15747 0 15658 3 0 3 3 0 8 0 amappl2 88 3228 0 3150 2 0 2 2 0 8 0 amappl1 80 15377 0 14874 13 2 11 13 0 8 0 amappl 88 24973 0 24802 5 0 5 5 0 92 0 dma16384 16384 1 0 1 1 1 0 1 0 8 0 dma8192 8192 1 0 1 1 1 0 1 0 8 0 dma4096 4096 2 0 2 2 2 0 1 0 8 0 dma2048 2048 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 7 0 7 1 1 0 1 0 8 0 dma128 128 258 0 258 4 4 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 8 0 8 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 2927 0 2898 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2927 0 2898 1 0 1 1 0 8 0 vmmpekpl 168 20626 0 20578 3 0 3 3 0 8 0 vmmpepl 168 180812 0 178856 107 11 96 99 0 357 1 vmsppl 352 2926 0 2898 4 1 3 4 0 8 0 rwobjpl 24 50745 0 43622 45 0 45 45 0 8 0 pdppl 4096 5860 0 5796 158 94 64 82 0 8 0 pvpl 32 1169295 0 1155657 183 33 150 154 0 265 6 pmappl 216 2926 0 2898 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 777 0 435 12 0 12 12 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(ffffffff830026d4) 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(ffff80002a581d30) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff80002a581d30) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x78631abe0d40, 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(ffffffff830026d4) 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(ffff80002a581d30) at ast+0x13f mi_ast sys/sys/syscall_mi.h:260 [inline] ast(ffff80002a581d30) at ast+0x13f sys/arch/amd64/amd64/trap.c:541 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x78631abe0d40, count: -7