panic: mutex 0xfffffd806c076130 not held in mtx_leave Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 484739 94163 32767 0x10 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83078e14) at panic+0x1e5 sys/kern/subr_prf.c:198 mtx_leave(fffffd806c076130) at mtx_leave+0x17c sys/kern/kern_lock.c:335 msleep(fffffd806c076048,fffffd806c076130,4,ffffffff832a21d0,0) at msleep+0x125 sys/kern/kern_synch.c:249 vm_map_lock_ln(fffffd806c076018,54351ec7000,0) at vm_map_lock_ln+0xd4 sys/uvm/uvm_map.c:5250 uvm_map_protect(fffffd806c076018,54351cc8000,54351ec7000,1,0,0,749570e7ece66af2) at uvm_map_protect+0xe1 sys/uvm/uvm_map.c:3059 sys_mprotect(ffff800035faaa48,ffff8000335879f0,ffff800033587940) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000335879f0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000335879f0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70c634bb55b0, count: 6 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: mutex 0xfffffd806c076130 not held in mtx_leave ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83078e14) at panic+0x1e5 sys/kern/subr_prf.c:198 mtx_leave(fffffd806c076130) at mtx_leave+0x17c sys/kern/kern_lock.c:335 msleep(fffffd806c076048,fffffd806c076130,4,ffffffff832a21d0,0) at msleep+0x125 sys/kern/kern_synch.c:249 vm_map_lock_ln(fffffd806c076018,54351ec7000,0) at vm_map_lock_ln+0xd4 sys/uvm/uvm_map.c:5250 uvm_map_protect(fffffd806c076018,54351cc8000,54351ec7000,1,0,0,749570e7ece66af2) at uvm_map_protect+0xe1 sys/uvm/uvm_map.c:3059 sys_mprotect(ffff800035faaa48,ffff8000335879f0,ffff800033587940) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000335879f0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000335879f0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70c634bb55b0, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff8000335875f0 rbx 0xffff800029b7cdbf rdx 0 rcx 0xffff800035faaa48 rax 0xffff800029b7bff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xf42e78fb1d8d9882 r11 0x7fa07ae18ffe340e r12 0xffff800029b7cbc0 r13 0 r14 0 r15 0x1 rip 0xffffffff816a99e5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000335875e0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=100048 pid=94163 tcnt=3 stat=sleep flags process=10 proc=20 runpri=77, usrpri=77, slppri=4, nice=20 wchan=0xfffffd806c076048, wmesg=vmmapbsy, ps_single=0x0 scnt=0 ecnt=0 forw=0x0, list=0xffff800035faa538,0xffff800035faa7d0 process=0xffff80002ada8000 user=0xffff800033582000, vmspace=0xfffffd806c076018 estcpu=27, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 3016 128905 58704 32767 2 0x10 syz-executor 49808 249916 40934 32767 2 0x10 syz-executor 49808 382205 40934 32767 3 0x4000090 fsleep syz-executor 49808 443975 40934 32767 3 0x4000090 fsleep syz-executor 40021 261177 73424 32767 2 0x10 syz-executor *94163 100048 7146 32767 3 0x30 vmmapbsy syz-executor 94163 484739 7146 32767 7 0x4000010 syz-executor 94163 523287 7146 32767 3 0x4000090 fsleep syz-executor 62281 338534 91997 32767 2 0x81010 syz-executor 62281 148001 91997 32767 3 0x4003010 suspend syz-executor 65780 72275 43525 32767 3 0x3010 suspend syz-executor 65780 473374 43525 32767 2 0x4081010 syz-executor 91997 470793 7996 32767 2 0x10 syz-executor 7996 150870 38128 0 3 0x82 wait syz-executor 43525 212065 79539 32767 3 0x90 wait syz-executor 79539 50831 38128 0 3 0x82 wait syz-executor 30082 40833 20334 32767 2 0x10 syz-executor 20334 292759 38128 0 3 0x82 wait syz-executor 40934 275783 3215 32767 2 0x10 syz-executor 3215 69606 38128 0 3 0x82 wait syz-executor 73424 421631 32189 32767 3 0x90 nanoslp syz-executor 58704 15300 71918 32767 3 0x90 nanoslp syz-executor 71918 26345 38128 0 3 0x82 wait syz-executor 32189 181709 38128 0 3 0x82 wait syz-executor 7146 64906 58528 32767 3 0x90 nanoslp syz-executor 58528 133715 38128 0 3 0x82 wait syz-executor 66286 148166 28640 0 3 0x82 netio sshd-session 54757 218509 85518 0 3 0x100082 sbwait ndp 85518 71720 58619 0 3 0x10008a sigsusp sh 58619 338154 47565 0 3 0x80 wait syz-executor 47565 148634 38128 0 3 0x82 wait syz-executor 95934 273642 0 0 3 0x14200 bored sosplice 38128 11880 28730 0 3 0x82 kqread syz-executor 28730 86454 19371 0 3 0x10008a sigsusp ksh 19371 351159 87602 0 3 0x98 kqread sshd-session 87602 10209 28640 0 3 0x92 kqread sshd-session 89049 89158 1 0 3 0x100083 ttyin getty 28640 226646 1 0 3 0x88 kqread sshd 44665 492590 17161 73 3 0x1100010 biowait syslogd 17161 323164 1 0 3 0x100082 sbwait syslogd 81736 223911 1 0 3 0x100080 kqread resolvd 99120 419432 70230 77 3 0x100092 kqread dhcpleased 45648 33990 70230 77 3 0x100092 kqread dhcpleased 70230 436414 1 0 3 0x80 kqread dhcpleased 84233 249581 0 0 3 0x14200 bored smr 71537 282160 0 0 2 0x14200 zerothread 91076 24392 0 0 3 0x14200 aiodoned aiodoned 39464 21627 0 0 3 0x14200 syncer update 10125 321136 0 0 3 0x14200 cleaner cleaner 31008 68243 0 0 3 0x14200 reaper reaper 65299 215994 0 0 3 0x14200 pgdaemon pagedaemon 81064 277026 0 0 3 0x14200 bored viomb 36787 43149 0 0 3 0x40014200 acpi0 acpi0 89550 32653 0 0 3 0x40014200 idle1 91444 382990 0 0 3 0x14200 bored softnet3 40161 276599 0 0 3 0x14200 bored softnet2 66062 25249 0 0 3 0x14200 bored softnet1 96730 498212 0 0 3 0x14200 bored softnet0 70963 444936 0 0 3 0x14200 bored systqmp 96749 34367 0 0 3 0x14200 bored systq 24449 93679 0 0 3 0x14200 tmoslp softclockmp 784 508437 0 0 3 0x40014200 tmoslp softclock 7256 490157 0 0 3 0x40014200 idle0 1 487119 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive mutex &pmap->pm_mtx r = 0 (0xfffffd806c8b9bc0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 pmap_enter+0x246 rcr3 machine/cpufunc.h:139 [inline] #3 pmap_enter+0x246 pmap_map_ptes sys/arch/amd64/amd64/pmap.c:437 [inline] #3 pmap_enter+0x246 sys/arch/amd64/amd64/pmap.c:2791 #4 uvm_fault_lower+0xa2d sys/uvm/uvm_fault.c:1518 #5 uvm_fault+0x301 sys/uvm/uvm_fault.c:637 #6 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 #7 usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 #8 recall_trap+0x8 CPU 1: exclusive mutex &map->flags_lock r = 0 (0xfffffd806c076170) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 vm_map_lock_ln+0x6b sys/uvm/uvm_map.c:5244 #4 uvm_map_protect+0xe1 sys/uvm/uvm_map.c:3059 #5 sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 #6 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #6 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 Process 3016 (syz-executor) thread 0xffff8000ffffc010 (128905) exclusive rwlock uobjlk r = 0 (0xfffffd806cfa7f60) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 uvm_fault_lower_lookup+0x54 sys/uvm/uvm_fault.c:1126 #3 uvm_fault_lower+0x74 sys/uvm/uvm_fault.c:1227 #4 uvm_fault+0x301 sys/uvm/uvm_fault.c:637 #5 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 #6 usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 #7 recall_trap+0x8 shared rwlock vmmaplk r = 0 (0xfffffd806c076d50) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 uvmfault_lookup+0x122 sys/uvm/uvm_fault.c:1785 #2 uvm_fault_check+0x47 sys/uvm/uvm_fault.c:672 #3 uvm_fault+0x112 sys/uvm/uvm_fault.c:600 #4 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 #5 usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 #6 recall_trap+0x8 Process 44665 (syslogd) thread 0xffff8000ffffd1c8 (492590) exclusive rrwlock inode r = 0 (0xfffffd806e6ba920) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 sys_fsync+0x152 sys/kern/vfs_syscalls.c:2926 #6 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #6 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10209 11051K 11059K 166960K 11370 0 pcb 17 14K 16K 166960K 19 0 rtable 234 6K 7K 166960K 1262 0 pf 31 16K 16K 166960K 87 0 ifaddr 42 7K 7K 166960K 156 0 ifgroup 50 2K 2K 166960K 160 0 counters 64 36K 36K 166960K 118 0 ioctlops 0 0K 2K 166960K 60 0 iov 0 0K 13K 166960K 55 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1461 92K 92K 166960K 2037 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 17 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 26 97K 157K 166960K 1032 0 sigio 0 0K 0K 166960K 10 0 proc 58 79K 176K 166960K 1288 0 subproc 104 6K 12K 166960K 572 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 82 0 in_multi 99 7K 7K 166960K 410 0 ether_multi 1 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 223 996K 996K 166960K 223 0 exec 0 0K 1K 166960K 876 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 258 74K 130K 166960K 9153 0 UVM aobj 49 2K 4K 166960K 51 0 pinsyscall 50 100K 126K 166960K 2807 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 53 0 NDP 11 0K 2K 166960K 108 0 temp 46 6816K 6882K 166960K 9956 0 kqueue 14 22K 28K 166960K 96 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 136 0 130 1 0 1 1 0 8 0 rtentry 112 418 0 308 4 0 4 4 0 8 0 unpcb 144 678 0 663 8 2 6 6 0 8 5 syncache 336 13 0 13 4 3 1 1 0 8 1 tcpqe 32 8 0 8 2 2 0 1 0 8 0 tcpcb 808 379 0 370 14 3 11 12 0 8 8 arp 120 73 0 55 1 0 1 1 0 8 0 ipq 40 3 0 0 1 0 1 1 0 8 0 ipqe 40 4 0 1 1 0 1 1 0 8 0 inpcb 336 950 0 938 19 9 10 10 0 8 7 nd6 136 114 0 90 1 0 1 1 0 8 0 kcovpl 48 44 0 36 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1700 0 1241 41 11 30 30 0 8 1 art_table 32 1701 0 1241 4 0 4 4 0 8 0 art_node 16 417 0 317 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 48 0 2 2 0 2 2 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2387 0 799 100 0 100 100 0 8 0 ffsino 272 2387 0 799 107 0 107 107 0 8 0 nchpl 144 3205 0 1473 65 0 65 65 0 8 0 uvmvnodes 80 2968 0 0 61 0 61 61 0 8 0 vnodes 216 2968 0 0 165 0 165 165 0 8 0 namei 1024 13847 0 13847 4 3 1 2 0 8 1 percpumem 16 73 0 27 1 0 1 1 0 8 0 kstatmem 264 76 0 54 2 0 2 2 0 8 0 scxspl 216 20926 0 20925 11 10 1 8 1 8 0 plimitpl 152 289 0 264 3 1 2 2 0 8 0 sigapl 424 1253 0 1195 10 2 8 9 0 8 0 futexpl 64 6909 0 6906 2 1 1 1 0 8 0 knotepl 120 344 0 0 10 0 10 10 0 8 0 kqueuepl 216 229 0 218 1 0 1 1 0 8 0 pipepl 320 275 0 247 5 1 4 4 0 8 0 fdescpl 496 1234 0 1195 8 1 7 7 0 8 0 filepl 152 6697 0 6450 22 7 15 15 0 8 3 lockfpl 104 114 0 112 1 0 1 1 0 8 0 lockfspl 48 44 0 42 1 0 1 1 0 8 0 sessionpl 144 58 0 41 1 0 1 1 0 8 0 pgrppl 48 108 0 83 1 0 1 1 0 8 0 ucredpl 104 1353 0 1335 1 0 1 1 0 8 0 zombiepl 144 1196 0 1195 1 0 1 1 0 8 0 processpl 1160 1253 0 1195 6 0 6 6 0 8 0 procpl 648 2014 0 1950 7 0 7 7 0 8 0 sockpl 664 1772 0 1739 25 12 13 15 0 8 8 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 142 0 0 18 0 18 18 0 8 0 mcl2k 2048 41 0 0 4 0 4 4 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 380 0 0 22 0 22 22 0 8 0 bufpl 280 6571 0 397 442 0 442 442 0 8 0 anonpl 24 262768 0 258230 76 18 58 76 0 185 24 amapchunkpl 152 29903 0 29307 38 7 31 37 0 158 5 amappl16 200 6204 0 6192 41 38 3 23 0 8 2 amappl15 192 11 0 11 1 1 0 1 0 8 0 amappl14 184 216 0 204 1 0 1 1 0 8 0 amappl13 176 9 0 9 1 1 0 1 0 8 0 amappl12 168 2331 0 2292 6 4 2 3 0 8 0 amappl11 160 57 0 47 1 0 1 1 0 8 0 amappl10 152 26 0 26 1 1 0 1 0 8 0 amappl9 144 138 0 138 1 1 0 1 0 8 0 amappl8 136 62 0 60 1 0 1 1 0 8 0 amappl7 128 163 0 151 1 0 1 1 0 8 0 amappl6 120 445 0 442 1 0 1 1 0 8 0 amappl5 112 246 0 236 1 0 1 1 0 8 0 amappl4 104 407 0 391 1 0 1 1 0 8 0 amappl3 96 5606 0 5484 4 0 4 4 0 8 0 amappl2 88 1151 0 1079 2 0 2 2 0 8 0 amappl1 80 14155 0 13508 18 2 16 16 0 8 0 amappl 88 8531 0 8337 7 1 6 6 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 50 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1234 0 1195 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1234 0 1195 1 0 1 1 0 8 0 vmmpekpl 168 12061 0 11993 5 1 4 5 0 8 0 vmmpepl 168 86627 0 84495 111 12 99 108 0 357 2 vmsppl 448 1233 0 1195 6 0 6 6 0 8 0 rwobjpl 56 32239 0 28249 60 2 58 58 0 8 1 pdppl 4096 2475 0 2390 191 104 87 113 0 8 2 pvpl 32 33675 0 0 272 0 272 272 0 265 0 pmappl 248 1233 0 1195 5 1 4 4 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 540 0 135 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff834adff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c kd_curproc sys/dev/kcov.c:589 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:158 __mp_lock(ffffffff835a1ff8) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835a1ff8) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 __mp_acquire_count(ffffffff835a1ff8,1) at __mp_acquire_count+0x58 mi_switch() at mi_switch+0x4b7 sys/kern/sched_bsd.c:441 sleep_finish(0,1) at sleep_finish+0x21e sys/kern/kern_synch.c:416 rw_enter(fffffd806c076100,1) at rw_enter+0x348 sys/kern/kern_rwlock.c:285 vm_map_lock_ln(fffffd806c076018,0,0) at vm_map_lock_ln+0x142 sys/uvm/uvm_map.c:5257 uvm_map_pageable_wire(fffffd806c076018,fffffd80547729a0,fffffd806bee2ae0,ffff8000ffffdbe8,0,0) at uvm_map_pageable_wire+0x4a3 sys/uvm/uvm_map.c:2132 sys_mlock(ffff8000ffffdbe8,ffff8000371ff630,ffff8000371ff580) at sys_mlock+0x23d sys/uvm/uvm_mmap.c:837 syscall(ffff8000371ff630) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371ff630) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x54335194240, count: 1 ddb{0}> trace x86_ipi_db(ffffffff834adff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c kd_curproc sys/dev/kcov.c:589 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:158 __mp_lock(ffffffff835a1ff8) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835a1ff8) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 __mp_acquire_count(ffffffff835a1ff8,1) at __mp_acquire_count+0x58 mi_switch() at mi_switch+0x4b7 sys/kern/sched_bsd.c:441 sleep_finish(0,1) at sleep_finish+0x21e sys/kern/kern_synch.c:416 rw_enter(fffffd806c076100,1) at rw_enter+0x348 sys/kern/kern_rwlock.c:285 vm_map_lock_ln(fffffd806c076018,0,0) at vm_map_lock_ln+0x142 sys/uvm/uvm_map.c:5257 uvm_map_pageable_wire(fffffd806c076018,fffffd80547729a0,fffffd806bee2ae0,ffff8000ffffdbe8,0,0) at uvm_map_pageable_wire+0x4a3 sys/uvm/uvm_map.c:2132 sys_mlock(ffff8000ffffdbe8,ffff8000371ff630,ffff8000371ff580) at sys_mlock+0x23d sys/uvm/uvm_mmap.c:837 syscall(ffff8000371ff630) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371ff630) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x54335194240, count: -14 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83078e14) at panic+0x1e5 sys/kern/subr_prf.c:198 mtx_leave(fffffd806c076130) at mtx_leave+0x17c sys/kern/kern_lock.c:335 msleep(fffffd806c076048,fffffd806c076130,4,ffffffff832a21d0,0) at msleep+0x125 sys/kern/kern_synch.c:249 vm_map_lock_ln(fffffd806c076018,54351ec7000,0) at vm_map_lock_ln+0xd4 sys/uvm/uvm_map.c:5250 uvm_map_protect(fffffd806c076018,54351cc8000,54351ec7000,1,0,0,749570e7ece66af2) at uvm_map_protect+0xe1 sys/uvm/uvm_map.c:3059 sys_mprotect(ffff800035faaa48,ffff8000335879f0,ffff800033587940) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000335879f0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000335879f0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70c634bb55b0, count: 6 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83078e14) at panic+0x1e5 sys/kern/subr_prf.c:198 mtx_leave(fffffd806c076130) at mtx_leave+0x17c sys/kern/kern_lock.c:335 msleep(fffffd806c076048,fffffd806c076130,4,ffffffff832a21d0,0) at msleep+0x125 sys/kern/kern_synch.c:249 vm_map_lock_ln(fffffd806c076018,54351ec7000,0) at vm_map_lock_ln+0xd4 sys/uvm/uvm_map.c:5250 uvm_map_protect(fffffd806c076018,54351cc8000,54351ec7000,1,0,0,749570e7ece66af2) at uvm_map_protect+0xe1 sys/uvm/uvm_map.c:3059 sys_mprotect(ffff800035faaa48,ffff8000335879f0,ffff800033587940) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000335879f0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000335879f0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70c634bb55b0, count: -9