panic: assertwaitok: non-zero mutex count: 1 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *105791 68 -1 0x10 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830053ea) 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 yield() at yield+0x61 sys/kern/sched_bsd.c:320 pool_get(ffffffff835294c0,1) at pool_get+0x1e9 sys/kern/subr_pool.c:589 uvm_mapent_alloc(fffffd806c201430,0) at uvm_mapent_alloc+0x35a uvm_map_protect(fffffd806c201430,20000000,20800000,1,0,0,84183e1be885c11) at uvm_map_protect+0x888 sys/uvm/uvm_map.c:3136 sys_mprotect(ffff80002a5d4a50,ffff8000376e3b20,ffff8000376e3a70) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000376e3b20) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72547f541b0, count: 4 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(ffffffff830053ea) 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 yield() at yield+0x61 sys/kern/sched_bsd.c:320 pool_get(ffffffff835294c0,1) at pool_get+0x1e9 sys/kern/subr_pool.c:589 uvm_mapent_alloc(fffffd806c201430,0) at uvm_mapent_alloc+0x35a uvm_map_protect(fffffd806c201430,20000000,20800000,1,0,0,84183e1be885c11) at uvm_map_protect+0x888 sys/uvm/uvm_map.c:3136 sys_mprotect(ffff80002a5d4a50,ffff8000376e3b20,ffff8000376e3a70) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000376e3b20) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72547f541b0, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000376e36f0 rbx 0 rdx 0 rcx 0 rax 0xffff80002a5d4a50 r8 0 r9 0x8080808080808080 r10 0x4a600f44655ab9fa r11 0x52ae0413456bc548 r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff82f9e745 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000376e36e0 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=105791 pid=68 tcnt=3 stat=onproc flags process=10 proc=4000000 runpri=84, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a5d5980,0xffff80002bfda558 process=0xffff8000327f4460 user=0xffff8000376de000, vmspace=0xfffffd806c201430 estcpu=34, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 85558 480013 91507 0 2 0 syz-executor 76092 16212 48446 0 2 0 syz-executor 76092 82382 48446 0 3 0x4000080 fsleep syz-executor 76092 432104 48446 0 2 0x4000000 syz-executor 68 394685 28233 -1 3 0x10 vmmaplk syz-executor 68 307466 28233 -1 3 0x4000010 vmmaplk syz-executor * 68 105791 28233 -1 7 0x4000010 syz-executor 16262 419908 11288 0 2 0 syz-executor 16262 422185 11288 0 2 0x4000000 syz-executor 16262 202109 11288 0 3 0x4000080 fsleep syz-executor 48446 141595 9184 0 2 0x482 syz-executor 94651 156248 0 0 3 0x14280 nfsidl nfsio 76809 353935 0 0 3 0x14280 nfsidl nfsio 15106 252805 0 0 3 0x14280 nfsidl nfsio 31012 153057 0 0 3 0x14280 nfsidl nfsio 36618 414068 0 0 3 0x14280 nfsidl nfsio 15755 472217 0 0 3 0x14280 nfsidl nfsio 75656 396269 0 0 3 0x14280 nfsidl nfsio 64714 58757 0 0 3 0x14280 nfsidl nfsio 70459 232910 0 0 3 0x14280 nfsidl nfsio 97153 296998 0 0 3 0x14280 nfsidl nfsio 89783 144410 0 0 3 0x14280 nfsidl nfsio 38270 361306 0 0 3 0x14280 nfsidl nfsio 70130 38871 0 0 3 0x14280 nfsidl nfsio 82936 510220 0 0 3 0x14280 nfsidl nfsio 29648 286138 0 0 3 0x14280 nfsidl nfsio 64634 494075 0 0 3 0x14280 nfsidl nfsio 15819 263933 0 0 3 0x14280 nfsidl nfsio 41411 502263 0 0 3 0x14280 nfsidl nfsio 76050 112939 0 0 3 0x14280 nfsidl nfsio 51586 233469 0 0 3 0x14280 nfsidl nfsio 72188 394413 9184 0 3 0x82 wait syz-executor 23160 220066 0 0 3 0x14200 bored sosplice 19958 148593 9184 0 2 0x2 syz-executor 11288 339920 9184 0 2 0x482 syz-executor 74321 90792 9184 0 3 0x82 wait syz-executor 36018 17418 9184 0 2 0x2 syz-executor 91507 244977 9184 0 2 0x482 syz-executor 28233 172399 9184 0 2 0x482 syz-executor 9184 403904 46922 0 3 0x82 kqread syz-executor 46922 149900 66349 0 3 0x10008a sigsusp ksh 66349 150117 44646 0 3 0x98 kqread sshd-session 44646 168972 76926 0 3 0x92 kqread sshd-session 48201 404871 1 0 3 0x100083 ttyin getty 76926 408234 1 0 3 0x88 kqread sshd 73585 49443 80947 73 3 0x1100090 kqread syslogd 80947 99809 1 0 3 0x100082 sbwait syslogd 98105 227842 1 0 3 0x100080 kqread resolvd 49092 95518 89522 77 3 0x100092 kqread dhcpleased 71439 373619 89522 77 3 0x100092 kqread dhcpleased 89522 228142 1 0 3 0x80 kqread dhcpleased 16221 451408 0 0 3 0x14200 bored smr 79925 299074 0 0 2 0x14200 zerothread 14161 226858 0 0 3 0x14200 aiodoned aiodoned 56439 19037 0 0 3 0x14200 syncer update 63046 245993 0 0 3 0x14200 cleaner cleaner 20363 449258 0 0 3 0x14200 reaper reaper 89777 234316 0 0 3 0x14200 pgdaemon pagedaemon 6437 377437 0 0 3 0x14200 bored viomb 64221 181534 0 0 3 0x40014200 acpi0 acpi0 30352 448760 0 0 3 0x14200 bored softnet3 88807 414523 0 0 3 0x14200 bored softnet2 68265 375735 0 0 3 0x14200 bored softnet1 74183 422741 0 0 3 0x14200 bored softnet0 38346 70240 0 0 3 0x14200 bored systqmp 59776 231307 0 0 3 0x14200 bored systq 90880 297886 0 0 2 0x40014200 softclock 84837 489494 0 0 3 0x40014200 idle0 1 90314 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 10183 11055K 11345K 166960K 12944 0 pcb 17 12K 12K 166960K 172 0 rtable 165 6K 8K 166960K 508 0 pf 34 13K 14K 166960K 66 0 ifaddr 35 5K 8K 166960K 76 0 ifgroup 55 2K 2K 166960K 96 0 sysctl 1 0K 0K 166960K 1 0 counters 31 17K 17K 166960K 45 0 ioctlops 0 0K 4K 166960K 195 0 iov 0 0K 32K 166960K 125 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1390 87K 88K 166960K 2145 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 24 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 150 0 dirhash 12 2K 2K 166960K 30 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 16 57K 97K 166960K 1049 0 sigio 0 0K 0K 166960K 22 0 proc 64 67K 124K 166960K 595 0 subproc 104 6K 6K 166960K 130 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 110 0 in_multi 66 4K 7K 166960K 175 0 ether_multi 1 0K 0K 166960K 12 0 mrt 2 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 626 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 213 72K 87K 166960K 11787 0 UVM aobj 37 4K 4K 166960K 40 0 pinsyscall 37 74K 96K 166960K 2129 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 47 0 NDP 12 0K 2K 166960K 48 0 temp 77 6821K 6948K 166960K 46853 0 kqueue 13 20K 32K 166960K 211 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 106 0 103 1 0 1 1 0 8 0 rtentry 112 160 0 89 4 0 4 4 0 8 0 unpcb 144 1127 0 1112 8 0 8 8 0 8 7 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 386 0 381 8 4 4 5 0 8 3 arp 88 26 0 15 1 0 1 1 0 8 0 ipq 40 3 0 3 1 0 1 1 0 8 1 ipqe 40 9 0 9 1 0 1 1 0 8 1 inpcb 336 1184 0 1176 12 5 7 7 0 8 6 nd6 104 33 0 17 1 0 1 1 0 8 0 pkpcb 40 6 0 6 1 0 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1072 8 0 8 1 0 1 1 0 8 1 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 2 0 0 1 0 1 1 0 8 0 pfstate 344 1 0 0 1 0 1 1 0 8 0 pfrule 1344 2 0 2 2 1 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 758 0 438 32 3 29 32 0 8 7 art_table 32 759 0 438 5 0 5 5 0 8 1 art_node 16 159 0 97 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 3 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 81 0 71 1 0 1 1 0 8 0 shmpl 112 37 0 3 1 0 1 1 0 8 0 dirhash 1024 29 0 12 3 0 3 3 0 8 0 dino2pl 256 3315 0 1824 94 0 94 94 0 8 0 ffsino 240 3315 0 1824 89 0 89 89 0 8 0 nchpl 144 4813 0 3134 63 0 63 63 0 8 0 uvmvnodes 80 3840 0 0 79 0 79 79 0 8 0 vnodes 216 3840 0 0 214 0 214 214 0 8 0 namei 1024 16478 0 16476 4 2 2 2 0 8 1 kstatmem 264 52 0 28 2 0 2 2 0 8 0 scsiplug 72 5 0 5 1 0 1 1 0 8 1 scxspl 216 14343 0 14343 10 2 8 8 1 8 8 plimitpl 152 357 0 341 1 0 1 1 0 8 0 sigapl 424 1349 0 1284 9 1 8 8 0 8 0 futexpl 64 15038 0 15036 1 0 1 1 0 8 0 knotepl 120 58339 0 58292 26 16 10 17 0 8 8 kqueuepl 184 307 0 298 1 0 1 1 0 8 0 pipepl 288 240 0 213 6 1 5 5 0 8 2 fdescpl 432 1310 0 1282 5 1 4 5 0 8 0 filepl 120 8478 0 8237 20 6 14 14 0 8 5 lockfpl 104 327 0 325 1 0 1 1 0 8 0 lockfspl 48 131 0 129 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 51 0 35 1 0 1 1 0 8 0 ucredpl 104 1411 0 1398 1 0 1 1 0 8 0 zombiepl 144 1880 0 1878 2 1 1 1 0 8 0 processpl 1096 1349 0 1284 5 0 5 5 0 8 0 procpl 648 2962 0 2891 8 0 8 8 0 8 0 sosppl 168 7 0 7 2 1 1 1 0 8 1 sockpl 504 2433 0 2407 52 40 12 30 0 8 8 mcl64k 65536 13 0 13 2 1 1 1 0 8 1 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl8k 8192 33 0 33 2 1 1 1 0 8 1 mcl4k 4096 3958 0 3907 16 8 8 15 0 8 1 mcl2k 2048 1325 0 1323 3 0 3 3 0 8 2 mtagpl 96 36 0 20 1 0 1 1 0 8 0 mbufpl 256 14365 0 14245 18 0 18 18 0 8 5 bufpl 280 5294 0 101 371 0 371 371 0 8 0 anonpl 24 255061 0 251858 50 5 45 45 0 187 9 amapchunkpl 152 39521 0 39064 35 6 29 29 0 158 9 amappl16 200 6732 0 6704 30 18 12 15 0 8 8 amappl15 192 12 0 11 1 0 1 1 0 8 0 amappl14 184 114 0 104 1 0 1 1 0 8 0 amappl13 176 12 0 12 1 1 0 1 0 8 0 amappl12 168 1957 0 1929 3 1 2 3 0 8 0 amappl11 160 71 0 61 1 0 1 1 0 8 0 amappl10 152 14 0 14 2 1 1 1 0 8 1 amappl9 144 113 0 111 1 0 1 1 0 8 0 amappl8 136 22 0 21 1 0 1 1 0 8 0 amappl7 128 106 0 95 1 0 1 1 0 8 0 amappl6 120 181 0 180 1 0 1 1 0 8 0 amappl5 112 137 0 128 1 0 1 1 0 8 0 amappl4 104 294 0 281 1 0 1 1 0 8 0 amappl3 96 7214 0 7125 3 0 3 3 0 8 0 amappl2 88 1594 0 1518 2 0 2 2 0 8 0 amappl1 80 10397 0 9883 13 0 13 13 0 8 0 amappl 88 11340 0 11181 5 0 5 5 0 92 0 dma16384 16384 1 0 1 1 0 1 1 0 8 1 dma4096 4096 2 0 2 2 1 1 1 0 8 1 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 254 0 254 2 1 1 1 0 8 1 dma64 64 7 0 7 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 39 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1310 0 1282 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1310 0 1282 1 0 1 1 0 8 0 vmmpekpl 168 11866 0 11824 3 0 3 3 0 8 0 vmmpepl 168 88596 0 86911 92 3 89 89 0 357 5 vmsppl 352 1309 0 1282 4 1 3 4 0 8 0 rwobjpl 24 31454 0 26737 30 0 30 30 0 8 0 pdppl 4096 2627 0 2564 105 38 67 83 0 8 4 pvpl 32 611565 0 603176 122 10 112 112 0 265 22 pmappl 216 1309 0 1282 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 455 0 106 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(ffffffff830053ea) 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 yield() at yield+0x61 sys/kern/sched_bsd.c:320 pool_get(ffffffff835294c0,1) at pool_get+0x1e9 sys/kern/subr_pool.c:589 uvm_mapent_alloc(fffffd806c201430,0) at uvm_mapent_alloc+0x35a uvm_map_protect(fffffd806c201430,20000000,20800000,1,0,0,84183e1be885c11) at uvm_map_protect+0x888 sys/uvm/uvm_map.c:3136 sys_mprotect(ffff80002a5d4a50,ffff8000376e3b20,ffff8000376e3a70) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000376e3b20) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72547f541b0, count: -11 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830053ea) 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 yield() at yield+0x61 sys/kern/sched_bsd.c:320 pool_get(ffffffff835294c0,1) at pool_get+0x1e9 sys/kern/subr_pool.c:589 uvm_mapent_alloc(fffffd806c201430,0) at uvm_mapent_alloc+0x35a uvm_map_protect(fffffd806c201430,20000000,20800000,1,0,0,84183e1be885c11) at uvm_map_protect+0x888 sys/uvm/uvm_map.c:3136 sys_mprotect(ffff80002a5d4a50,ffff8000376e3b20,ffff8000376e3a70) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000376e3b20) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72547f541b0, count: -11