panic: assertwaitok: non-zero mutex count: 1 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 86463 37346 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82ff9c6f) 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(ffffffff835c2c60,1) at pool_get+0x1e9 sys/kern/subr_pool.c:589 uvm_mapent_alloc(fffffd807124b2b8,0) at uvm_mapent_alloc+0x35a uvm_map_protect(fffffd807124b2b8,20000000,20800000,1,0,0,d6be89835ab28f67) at uvm_map_protect+0x888 sys/uvm/uvm_map.c:3138 sys_mprotect(ffff80002a4b0298,ffff80003767d120,ffff80003767d070) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff80003767d120) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5358b8fded0, 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(ffffffff82ff9c6f) 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(ffffffff835c2c60,1) at pool_get+0x1e9 sys/kern/subr_pool.c:589 uvm_mapent_alloc(fffffd807124b2b8,0) at uvm_mapent_alloc+0x35a uvm_map_protect(fffffd807124b2b8,20000000,20800000,1,0,0,d6be89835ab28f67) at uvm_map_protect+0x888 sys/uvm/uvm_map.c:3138 sys_mprotect(ffff80002a4b0298,ffff80003767d120,ffff80003767d070) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff80003767d120) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5358b8fded0, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003767ccf0 rbx 0 rdx 0 rcx 0 rax 0xffff80002a4b0298 r8 0x101010101010101 r9 0x8080808080808080 r10 0x809f1ae9f365067d r11 0x73f8aaad0e1e2f07 r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff82060735 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003767cce0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=86463 pid=37346 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=83, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4b0a30,0xffff80002a4562a0 process=0xffff8000327f7378 user=0xffff800037678000, vmspace=0xfffffd807124b2b8 estcpu=33, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 55246 66499 43231 0 2 0 syz-executor 55246 179956 43231 0 2 0x4000000 syz-executor 37346 220544 54998 0 3 0 vmmaplk syz-executor 37346 26361 54998 0 3 0x4000000 vmmaplk syz-executor *37346 86463 54998 0 7 0x4000000 syz-executor 37346 279964 54998 0 2 0x4000000 syz-executor 7231 382485 46348 0 2 0x1 syz-executor 7231 386903 46348 0 3 0x4000080 fsleep syz-executor 44559 130120 28663 0 2 0 syz-executor 44559 372905 28663 0 2 0x4000001 syz-executor 66466 139202 1877 0 2 0x1 syz-executor 66466 17873 1877 0 3 0x4000080 fsleep syz-executor 10265 161808 37412 0 2 0x1 syz-executor 10265 480310 37412 0 3 0x4000080 fsleep syz-executor 16868 273023 39697 0 2 0x1 syz-executor 16868 426169 39697 0 3 0x4000080 lockf syz-executor 16868 293539 39697 0 3 0x4000000 futex syz-executor 16868 339785 39697 0 3 0x4000080 fsleep syz-executor 61698 401941 15727 60928 2 0x10 syz-executor 61698 61584 15727 60928 3 0x4000090 fsleep syz-executor 61698 33371 15727 60928 3 0x4000090 fsleep syz-executor 61698 392469 15727 60928 3 0x4000090 fsleep syz-executor 61698 351907 15727 60928 3 0x4000090 fsleep syz-executor 1877 126767 61508 0 3 0x82 nanoslp syz-executor 37412 171482 61508 0 3 0x82 nanoslp syz-executor 15727 116181 61508 0 3 0x82 nanoslp syz-executor 43231 476054 61508 0 3 0x82 nanoslp syz-executor 46348 303184 61508 0 3 0x82 nanoslp syz-executor 54998 389249 61508 0 2 0x2 syz-executor 39697 186771 61508 0 3 0x82 nanoslp syz-executor 28663 104803 61508 0 2 0x3 syz-executor 87337 460143 1 0 3 0x100083 ttyin getty 61508 31443 85877 0 3 0x82 kqread syz-executor 85877 294951 58719 0 3 0x10008a sigsusp ksh 58719 431983 20883 0 3 0x98 kqread sshd-session 20883 213483 81573 0 3 0x92 kqread sshd-session 81573 29510 1 0 3 0x88 kqread sshd 96922 234854 33354 73 3 0x1100090 kqread syslogd 33354 133492 1 0 3 0x100082 sbwait syslogd 17007 191239 1 0 3 0x100080 kqread resolvd 21702 255031 6993 77 3 0x100092 kqread dhcpleased 26211 19021 6993 77 3 0x100092 kqread dhcpleased 6993 195233 1 0 3 0x80 kqread dhcpleased 7328 28436 0 0 3 0x14200 bored smr 34842 165115 0 0 2 0x14200 zerothread 82975 422657 0 0 3 0x14200 aiodoned aiodoned 63342 165439 0 0 3 0x14200 syncer update 30813 11058 0 0 3 0x14200 cleaner cleaner 6980 515224 0 0 3 0x14200 reaper reaper 44093 491408 0 0 3 0x14200 pgdaemon pagedaemon 80202 32050 0 0 3 0x14200 bored viomb 86537 385558 0 0 3 0x40014200 acpi0 acpi0 31816 431975 0 0 3 0x14200 bored softnet3 42006 152089 0 0 3 0x14200 bored softnet2 27017 404433 0 0 3 0x14200 bored softnet1 41469 426813 0 0 3 0x14200 bored softnet0 13046 224630 0 0 3 0x14200 bored systqmp 83340 35597 0 0 3 0x14200 bored systq 22346 140867 0 0 3 0x40014200 tmoslp softclock 25375 115419 0 0 3 0x40014200 idle0 1 469696 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 10182 11047K 11367K 166960K 11789 0 pcb 17 14K 16K 166960K 218 0 rtable 246 8K 8K 166960K 874 0 pf 32 13K 268K 166960K 78 0 ifaddr 43 7K 7K 166960K 114 0 ifgroup 50 2K 2K 166960K 118 0 sysctl 1 0K 0K 166960K 1 0 counters 30 17K 17K 166960K 48 0 ioctlops 0 0K 4K 166960K 83 0 iov 0 0K 12K 166960K 89 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1432 90K 90K 166960K 2081 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 86 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 97K 166960K 756 0 proc 60 59K 108K 166960K 961 0 subproc 104 6K 6K 166960K 313 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 38 0 in_multi 99 7K 7K 166960K 282 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 1 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 648 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 235 72K 86K 166960K 7702 0 UVM aobj 19 4K 6K 166960K 22 0 pinsyscall 39 78K 96K 166960K 2189 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 18 0 NDP 11 0K 2K 166960K 78 0 temp 51 6810K 6875K 166960K 13328 0 kqueue 14 22K 26K 166960K 85 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 95 0 92 1 0 1 1 0 8 0 rtentry 112 294 0 181 4 0 4 4 0 8 0 unpcb 144 484 0 468 6 0 6 6 0 8 5 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpcb 808 153 0 148 4 0 4 4 0 8 3 arp 88 52 0 33 1 0 1 1 0 8 0 ipq 40 5 0 3 1 0 1 1 0 8 0 ipqe 40 115 0 113 1 0 1 1 0 8 0 inpcb 336 607 0 598 8 1 7 7 0 8 6 nd6 104 73 0 49 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 kcovpl 48 24 0 16 1 0 1 1 0 8 0 ppxss 1072 2 0 2 1 0 1 1 0 8 1 pfstscr 40 1 0 0 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 1 1 0 1 1 0 8 0 pfstate 344 2 0 0 1 0 1 1 0 8 0 pfrule 1344 3 0 3 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1179 0 720 30 1 29 30 0 8 0 art_table 32 1180 0 720 4 0 4 4 0 8 0 art_node 16 292 0 190 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 5 1 0 1 1 0 8 1 semapl 112 84 0 74 1 0 1 1 0 8 0 shmpl 112 19 0 3 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2394 0 867 96 0 96 96 0 8 0 ffsino 240 2394 0 867 91 0 91 91 0 8 0 nchpl 144 3151 0 1451 64 0 64 64 0 8 0 uvmvnodes 80 2950 0 0 61 0 61 61 0 8 0 vnodes 216 2950 0 0 164 0 164 164 0 8 0 namei 1024 11485 0 11485 3 2 1 2 0 8 1 kstatmem 264 58 0 36 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 16933 0 16933 10 2 8 8 1 8 8 plimitpl 152 107 0 91 1 0 1 1 0 8 0 sigapl 424 1022 0 976 9 1 8 8 0 8 2 futexpl 64 6163 0 6154 1 0 1 1 0 8 0 knotepl 120 22267 0 22212 9 0 9 9 0 8 7 kqueuepl 184 108 0 97 1 0 1 1 0 8 0 pipepl 288 168 0 141 3 0 3 3 0 8 0 fdescpl 432 986 0 956 5 1 4 5 0 8 0 filepl 120 4903 0 4650 12 0 12 12 0 8 4 lockfpl 104 91 0 87 1 0 1 1 0 8 0 lockfspl 48 43 0 40 1 0 1 1 0 8 0 sessionpl 144 38 0 30 1 0 1 1 0 8 0 pgrppl 48 65 0 49 1 0 1 1 0 8 0 ucredpl 104 967 0 954 1 0 1 1 0 8 0 zombiepl 144 1232 0 1232 2 1 1 1 0 8 1 processpl 1096 1022 0 976 5 0 5 5 0 8 1 procpl 648 1722 0 1661 8 0 8 8 0 8 2 sockpl 504 1190 0 1161 25 13 12 21 0 8 7 mcl64k 65536 7 0 7 2 1 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 11 0 11 2 1 1 1 0 8 1 mcl4k 4096 3128 0 3074 13 5 8 13 0 8 0 mcl2k 2048 845 0 845 4 0 4 4 0 8 4 mtagpl 96 12 0 9 2 1 1 1 0 8 0 mbufpl 256 10465 0 10274 35 17 18 28 0 8 5 bufpl 280 5835 0 96 410 0 410 410 0 8 0 anonpl 24 186317 0 182980 52 3 49 49 0 187 20 amapchunkpl 152 25033 0 24511 31 0 31 31 0 158 10 amappl16 200 3862 0 3843 25 17 8 15 0 8 6 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 183 0 173 1 0 1 1 0 8 0 amappl13 176 16 0 15 1 0 1 1 0 8 0 amappl12 168 1911 0 1881 3 1 2 3 0 8 0 amappl11 160 46 0 36 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 1 0 1 0 8 0 amappl9 144 136 0 136 1 1 0 1 0 8 0 amappl8 136 91 0 90 1 0 1 1 0 8 0 amappl7 128 161 0 150 1 0 1 1 0 8 0 amappl6 120 318 0 317 1 0 1 1 0 8 0 amappl5 112 186 0 178 1 0 1 1 0 8 0 amappl4 104 328 0 313 1 0 1 1 0 8 0 amappl3 96 4925 0 4809 4 0 4 4 0 8 1 amappl2 88 889 0 826 2 0 2 2 0 8 0 amappl1 80 10058 0 9547 13 1 12 13 0 8 0 amappl 88 7204 0 7022 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 21 0 3 1 0 1 1 0 8 0 uaddrrnd 24 986 0 956 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 986 0 956 1 0 1 1 0 8 0 vmmpekpl 168 8748 0 8697 3 0 3 3 0 8 0 vmmpepl 168 67299 0 65525 86 0 86 86 0 357 8 vmsppl 344 985 0 956 4 1 3 4 0 8 0 rwobjpl 24 24642 0 20826 24 0 24 24 0 8 0 pdppl 4096 1978 0 1912 120 54 66 82 0 8 0 pvpl 32 482864 0 472863 215 0 215 215 0 265 132 pmappl 216 985 0 956 3 0 3 3 0 8 1 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 446 0 98 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(ffffffff82ff9c6f) 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(ffffffff835c2c60,1) at pool_get+0x1e9 sys/kern/subr_pool.c:589 uvm_mapent_alloc(fffffd807124b2b8,0) at uvm_mapent_alloc+0x35a uvm_map_protect(fffffd807124b2b8,20000000,20800000,1,0,0,d6be89835ab28f67) at uvm_map_protect+0x888 sys/uvm/uvm_map.c:3138 sys_mprotect(ffff80002a4b0298,ffff80003767d120,ffff80003767d070) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff80003767d120) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5358b8fded0, 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(ffffffff82ff9c6f) 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(ffffffff835c2c60,1) at pool_get+0x1e9 sys/kern/subr_pool.c:589 uvm_mapent_alloc(fffffd807124b2b8,0) at uvm_mapent_alloc+0x35a uvm_map_protect(fffffd807124b2b8,20000000,20800000,1,0,0,d6be89835ab28f67) at uvm_map_protect+0x888 sys/uvm/uvm_map.c:3138 sys_mprotect(ffff80002a4b0298,ffff80003767d120,ffff80003767d070) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff80003767d120) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5358b8fded0, count: -11