panic: assertwaitok: non-zero mutex count: 1 Starting stack trace... panic(ffffffff82ff28db) at panic+0x1ba sys/kern/subr_prf.c:229 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(ffffffff8354a730,1) at pool_get+0x1e9 sys/kern/subr_pool.c:589 uvm_mapent_alloc(fffffd806c2319b0,0) at uvm_mapent_alloc+0x35a uvm_map_protect(fffffd806c2319b0,20000000,20800000,5,0,0,7819eea1926a8abf) at uvm_map_protect+0x888 sys/uvm/uvm_map.c:3138 sys_mprotect(ffff80002a4d0cf8,ffff80002a52d4d0,ffff80002a52d420) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff80002a52d4d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbc51c591810, count: 247 End of stack trace.