panic: assertwaitok: non-zero mutex count: 1 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *182956 69673 0 0 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82ffbc3a) 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(ffffffff834ca820,1) at pool_get+0x1e9 sys/kern/subr_pool.c:589 uvm_mapent_alloc(fffffd806c20f170,0) at uvm_mapent_alloc+0x35a uvm_map_protect(fffffd806c20f170,d574dbc000,d574dbd000,0,0,0,f75273bffab8bdef) at uvm_map_protect+0x888 sys/uvm/uvm_map.c:3136 sys_mprotect(ffff800037616ce0,ffff8000376839f0,ffff800037683940) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000376839f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7995a8440060, 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(ffffffff82ffbc3a) 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(ffffffff834ca820,1) at pool_get+0x1e9 sys/kern/subr_pool.c:589 uvm_mapent_alloc(fffffd806c20f170,0) at uvm_mapent_alloc+0x35a uvm_map_protect(fffffd806c20f170,d574dbc000,d574dbd000,0,0,0,f75273bffab8bdef) at uvm_map_protect+0x888 sys/uvm/uvm_map.c:3136 sys_mprotect(ffff800037616ce0,ffff8000376839f0,ffff800037683940) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000376839f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7995a8440060, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000376835c0 rbx 0 rdx 0 rcx 0 rax 0xffff800037616ce0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xb3aaff62b013f05a r11 0x10a5fbe924dc4c06 r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff821bf475 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000376835b0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=182956 pid=69673 tcnt=2 stat=onproc flags process=0 proc=0 runpri=86, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800037617988,0xffff800037617710 process=0xffff8000376a9588 user=0xffff80003767e000, vmspace=0xfffffd806c20f170 estcpu=36, cpticks=3, pctcpu=0.0, user=2, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 18520 307946 70161 0 2 0 syz-executor 18520 198613 70161 0 3 0x4000080 fsleep syz-executor 62512 40396 76325 0 2 0 syz-executor 62512 321764 76325 0 2 0x4000000 syz-executor *69673 182956 29718 0 7 0 syz-executor 69673 500348 29718 0 3 0x4000080 piperd syz-executor 97363 308463 70286 0 2 0 syz-executor 97363 387202 70286 0 3 0x4000080 fsleep syz-executor 9855 330140 96234 0 3 0x80 nanoslp syz-executor 9855 474943 96234 0 3 0x4000080 ttyin syz-executor 38260 311843 37089 0 2 0 syz-executor 38260 469817 37089 0 3 0x4000080 fsleep syz-executor 38260 442131 37089 0 3 0x4000080 pipewr syz-executor 38260 289241 37089 0 3 0x4000080 fsleep syz-executor 38260 84312 37089 0 3 0x4000080 fsleep syz-executor 43606 282555 11489 60929 2 0x10 syz-executor 43606 44100 11489 60929 3 0x4000090 sbwait syz-executor 43606 187653 11489 60929 2 0x4000010 syz-executor 43606 289908 11489 60929 3 0x4000090 fsleep syz-executor 43606 425129 11489 60929 3 0x4000010 vmmaplk syz-executor 39438 137333 0 0 3 0x14200 acct acct 58421 377865 0 0 3 0x14280 nfsidl nfsio 39362 500020 0 0 3 0x14280 nfsidl nfsio 68137 57478 0 0 3 0x14280 nfsidl nfsio 60419 414239 0 0 3 0x14280 nfsidl nfsio 73936 342345 0 0 3 0x14280 nfsidl nfsio 90532 428674 0 0 3 0x14280 nfsidl nfsio 47294 373039 0 0 3 0x14280 nfsidl nfsio 89279 144248 0 0 3 0x14280 nfsidl nfsio 22680 146271 0 0 3 0x14280 nfsidl nfsio 666 199428 0 0 3 0x14280 nfsidl nfsio 76153 242103 0 0 3 0x14280 nfsidl nfsio 96045 512917 0 0 3 0x14280 nfsidl nfsio 96259 279196 0 0 3 0x14280 nfsidl nfsio 74845 269181 0 0 3 0x14280 nfsidl nfsio 20544 385687 0 0 3 0x14280 nfsidl nfsio 77470 279358 0 0 3 0x14280 nfsidl nfsio 80476 373950 0 0 3 0x14280 nfsidl nfsio 19869 421428 0 0 3 0x14280 nfsidl nfsio 7850 305990 0 0 3 0x14280 nfsidl nfsio 96846 519510 0 0 3 0x14280 nfsidl nfsio 99914 415042 0 0 3 0x14200 bored sosplice 74389 307491 79883 0 2 0x2 syz-executor 70161 266228 79883 0 3 0x82 nanoslp syz-executor 11489 485592 79883 0 3 0x82 nanoslp syz-executor 76325 168781 79883 0 3 0x82 nanoslp syz-executor 29718 364408 79883 0 3 0x82 nanoslp syz-executor 37089 179986 79883 0 3 0x82 nanoslp syz-executor 70286 357432 79883 0 3 0x82 nanoslp syz-executor 96234 399472 79883 0 3 0x82 nanoslp syz-executor 79883 401773 28839 0 3 0x82 kqread syz-executor 28839 301618 73395 0 3 0x10008a sigsusp ksh 73395 314754 83193 0 3 0x98 kqread sshd-session 83193 16684 43560 0 3 0x92 kqread sshd-session 12519 360434 1 0 3 0x100083 ttyin getty 43560 42105 1 0 3 0x88 kqread sshd 62250 469517 44094 73 3 0x1100090 kqread syslogd 44094 132438 1 0 3 0x100082 sbwait syslogd 21601 96735 1 0 3 0x100080 kqread resolvd 63413 130669 98313 77 3 0x100092 kqread dhcpleased 22744 286336 98313 77 3 0x100092 kqread dhcpleased 98313 237395 1 0 3 0x80 kqread dhcpleased 73887 251836 0 0 3 0x14200 bored smr 25283 459298 0 0 2 0x14200 zerothread 71996 357100 0 0 3 0x14200 aiodoned aiodoned 1811 473170 0 0 3 0x14200 syncer update 84979 170985 0 0 3 0x14200 cleaner cleaner 90674 19850 0 0 3 0x14200 reaper reaper 70039 146928 0 0 3 0x14200 pgdaemon pagedaemon 47799 133210 0 0 3 0x14200 bored viomb 78425 45237 0 0 3 0x40014200 acpi0 acpi0 61059 73924 0 0 3 0x14200 bored softnet3 43982 119705 0 0 3 0x14200 bored softnet2 24540 246626 0 0 3 0x14200 bored softnet1 66794 490785 0 0 3 0x14200 bored softnet0 44344 349250 0 0 3 0x14200 bored systqmp 24482 187940 0 0 3 0x14200 bored systq 83029 325094 0 0 3 0x40014200 tmoslp softclock 79355 516252 0 0 3 0x40014200 idle0 1 294764 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 10172 11047K 11372K 166960K 12040 0 pcb 17 17K 18K 166960K 170 0 rtable 221 10K 11K 166960K 444 0 pf 35 14K 16K 166960K 70 0 ifaddr 37 6K 8K 166960K 61 0 ifgroup 46 2K 2K 166960K 79 0 sysctl 2 0K 0K 166960K 4 0 counters 29 17K 17K 166960K 40 0 ioctlops 0 0K 4K 166960K 80 0 iov 2 5K 16K 166960K 80 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1408 88K 89K 166960K 1783 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 15 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 20 0 dirhash 12 2K 2K 166960K 36 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 97K 166960K 699 0 sigio 0 0K 0K 166960K 17 0 proc 60 59K 124K 166960K 544 0 subproc 104 6K 6K 166960K 106 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 67 0 in_multi 85 6K 7K 166960K 144 0 ether_multi 1 0K 0K 166960K 5 0 mrt 0 0K 0K 166960K 3 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 397 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 227 72K 77K 166960K 8067 0 UVM aobj 26 2K 2K 166960K 27 0 pinsyscall 38 76K 100K 166960K 1702 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 39 0 NDP 10 0K 2K 166960K 43 0 temp 73 6819K 6920K 166960K 43679 0 kqueue 13 20K 30K 166960K 142 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 171 0 167 4 1 3 3 0 8 2 rtentry 112 129 0 35 4 0 4 4 0 8 0 unpcb 144 591 0 574 5 0 5 5 0 8 4 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 303 0 299 17 8 9 14 0 8 8 arp 88 23 0 5 1 0 1 1 0 8 0 ipq 40 2 0 1 2 1 1 1 0 8 0 ipqe 40 54 0 51 2 1 1 1 0 8 0 inpcb 336 852 0 844 20 11 9 12 0 8 7 nd6 104 26 0 4 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 7 0 7 1 0 1 1 0 8 1 pfrktable 1344 8 0 2 1 0 1 1 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pftag 88 3 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 6 0 3 1 0 1 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 505 0 112 30 0 30 30 0 8 2 art_table 32 508 0 112 4 0 4 4 0 8 0 art_node 16 126 0 43 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 6 1 0 1 1 0 8 0 semapl 112 18 0 8 1 0 1 1 0 8 0 shmpl 112 24 0 1 1 0 1 1 0 8 0 dirhash 1024 34 0 17 3 0 3 3 0 8 0 dino2pl 256 2553 0 1065 95 0 95 95 0 8 0 ffsino 240 2553 0 1065 89 0 89 89 0 8 0 nchpl 144 3578 0 1908 63 0 63 63 0 8 0 uvmvnodes 80 2929 0 0 60 0 60 60 0 8 0 vnodes 216 2929 0 0 163 0 163 163 0 8 0 namei 1024 11490 0 11488 3 2 1 2 0 8 0 pfiaddrpl 120 2 0 0 1 0 1 1 0 8 0 kstatmem 264 42 0 22 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 0 1 1 0 8 1 scxspl 216 10758 0 10758 9 1 8 8 1 8 8 plimitpl 152 131 0 115 1 0 1 1 0 8 0 sigapl 424 998 0 931 9 1 8 8 0 8 0 futexpl 64 8999 0 8993 1 0 1 1 0 8 0 knotepl 120 25059 0 25012 26 16 10 17 0 8 7 kqueuepl 184 179 0 170 1 0 1 1 0 8 0 pipepl 288 222 0 192 8 1 7 7 0 8 4 fdescpl 432 957 0 928 5 1 4 5 0 8 0 filepl 120 5319 0 5072 13 1 12 12 0 8 3 lockfpl 104 213 0 211 1 0 1 1 0 8 0 lockfspl 48 89 0 87 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 39 0 23 1 0 1 1 0 8 0 ucredpl 104 613 0 601 1 0 1 1 0 8 0 zombiepl 144 1236 0 1236 3 2 1 1 0 8 1 processpl 1096 998 0 931 5 0 5 5 0 8 0 procpl 648 1986 0 1906 8 0 8 8 0 8 0 sosppl 168 4 0 4 2 1 1 1 0 8 1 sockpl 504 1631 0 1603 38 26 12 21 0 8 7 mcl64k 65536 7 0 7 3 2 1 1 0 8 1 mcl16k 16384 2 0 2 1 1 0 1 0 8 0 mcl8k 8192 15 0 15 3 2 1 1 0 8 1 mcl4k 4096 3404 0 3352 16 8 8 14 0 8 0 mcl2k 2048 829 0 824 5 3 2 3 0 8 1 mtagpl 96 20 0 7 1 0 1 1 0 8 0 mbufpl 256 11727 0 11555 116 86 30 105 0 8 3 bufpl 280 3553 0 110 246 0 246 246 0 8 0 anonpl 24 186949 0 183605 48 3 45 45 0 187 21 amapchunkpl 152 26621 0 26126 44 17 27 35 0 158 7 amappl16 200 4601 0 4570 21 11 10 14 0 8 8 amappl15 192 10 0 10 1 1 0 1 0 8 0 amappl14 184 124 0 114 1 0 1 1 0 8 0 amappl13 176 9 0 9 1 1 0 1 0 8 0 amappl12 168 1560 0 1530 3 1 2 3 0 8 0 amappl11 160 122 0 112 1 0 1 1 0 8 0 amappl10 152 16 0 16 2 1 1 1 0 8 1 amappl9 144 140 0 140 1 1 0 1 0 8 0 amappl8 136 18 0 17 1 0 1 1 0 8 0 amappl7 128 92 0 81 1 0 1 1 0 8 0 amappl6 120 161 0 160 1 0 1 1 0 8 0 amappl5 112 129 0 120 1 0 1 1 0 8 0 amappl4 104 278 0 264 1 0 1 1 0 8 0 amappl3 96 4913 0 4819 3 0 3 3 0 8 0 amappl2 88 1221 0 1144 2 0 2 2 0 8 0 amappl1 80 8796 0 8279 14 3 11 14 0 8 0 amappl 88 7680 0 7507 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 3 0 2 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 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 26 0 1 1 0 1 1 0 8 0 uaddrrnd 24 957 0 928 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 957 0 928 1 0 1 1 0 8 0 vmmpekpl 168 9071 0 9028 2 0 2 2 0 8 0 vmmpepl 168 64761 0 63011 96 7 89 89 0 357 10 vmsppl 352 956 0 928 4 1 3 4 0 8 0 rwobjpl 24 23500 0 19689 24 1 23 23 0 8 0 pdppl 4096 1920 0 1856 104 38 66 82 0 8 2 pvpl 32 440406 0 431513 114 5 109 109 0 265 31 pmappl 216 956 0 928 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 558 0 191 14 1 13 13 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(ffffffff82ffbc3a) 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(ffffffff834ca820,1) at pool_get+0x1e9 sys/kern/subr_pool.c:589 uvm_mapent_alloc(fffffd806c20f170,0) at uvm_mapent_alloc+0x35a uvm_map_protect(fffffd806c20f170,d574dbc000,d574dbd000,0,0,0,f75273bffab8bdef) at uvm_map_protect+0x888 sys/uvm/uvm_map.c:3136 sys_mprotect(ffff800037616ce0,ffff8000376839f0,ffff800037683940) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000376839f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7995a8440060, 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(ffffffff82ffbc3a) 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(ffffffff834ca820,1) at pool_get+0x1e9 sys/kern/subr_pool.c:589 uvm_mapent_alloc(fffffd806c20f170,0) at uvm_mapent_alloc+0x35a uvm_map_protect(fffffd806c20f170,d574dbc000,d574dbd000,0,0,0,f75273bffab8bdef) at uvm_map_protect+0x888 sys/uvm/uvm_map.c:3136 sys_mprotect(ffff800037616ce0,ffff8000376839f0,ffff800037683940) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000376839f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7995a8440060, count: -11