panic: mutex 0xfffffd806be7b138 not held in mtx_leave Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 393272 28785 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830777cb) at panic+0x1e5 sys/kern/subr_prf.c:198 mtx_leave(fffffd806be7b138) at mtx_leave+0x17c sys/kern/kern_lock.c:335 msleep(fffffd806be7b050,fffffd806be7b138,4,ffffffff832017c0,0) at msleep+0x125 sys/kern/kern_synch.c:249 vm_map_lock_ln(fffffd806be7b020,31433651000,0) at vm_map_lock_ln+0xd4 sys/uvm/uvm_map.c:5250 uvm_map_protect(fffffd806be7b020,31433452000,31433651000,1,0,0,b4268bc9c8f93e00) at uvm_map_protect+0xe1 sys/uvm/uvm_map.c:3059 sys_mprotect(ffff800030b7ecd8,ffff8000371e0bd0,ffff8000371e0b20) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000371e0bd0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371e0bd0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e3e488f7d20, 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 0xfffffd806be7b138 not held in mtx_leave ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830777cb) at panic+0x1e5 sys/kern/subr_prf.c:198 mtx_leave(fffffd806be7b138) at mtx_leave+0x17c sys/kern/kern_lock.c:335 msleep(fffffd806be7b050,fffffd806be7b138,4,ffffffff832017c0,0) at msleep+0x125 sys/kern/kern_synch.c:249 vm_map_lock_ln(fffffd806be7b020,31433651000,0) at vm_map_lock_ln+0xd4 sys/uvm/uvm_map.c:5250 uvm_map_protect(fffffd806be7b020,31433452000,31433651000,1,0,0,b4268bc9c8f93e00) at uvm_map_protect+0xe1 sys/uvm/uvm_map.c:3059 sys_mprotect(ffff800030b7ecd8,ffff8000371e0bd0,ffff8000371e0b20) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000371e0bd0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371e0bd0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e3e488f7d20, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff8000371e07d0 rbx 0xffff800029b7cdbf rdx 0 rcx 0xffff800030b7ecd8 rax 0xffff800029b7bff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5e0973d10f6efeba r11 0x3b45e16c2aae87fa r12 0xffff800029b7cbc0 r13 0 r14 0 r15 0x1 rip 0xffffffff813e7875 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000371e07c0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=141742 pid=86428 tcnt=3 stat=sleep flags process=0 proc=20 runpri=50, usrpri=50, slppri=4, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003727dc18,0xffff800030b7f990 process=0xffff8000fffeed58 user=0xffff8000371db000, vmspace=0xfffffd806be7b020 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *86428 141742 51011 0 3 0x20 syz-executor 86428 65986 51011 0 3 0x4000080 fsleep syz-executor 86428 72646 51011 0 3 0x4000080 fsleep syz-executor 48717 158949 19860 0 2 0 syz-executor 34861 454337 67764 0 2 0 syz-executor 34861 4443 67764 0 3 0x4000080 fsleep syz-executor 26259 410968 46295 0 2 0 syz-executor 26259 234794 46295 0 3 0x4000080 kqread syz-executor 26259 459320 46295 0 3 0x4000080 fsleep syz-executor 28785 50285 87635 0 2 0 syz-executor 28785 166905 87635 0 2 0x4000000 syz-executor 28785 393272 87635 0 7 0x4000000 syz-executor 5164 172874 44018 0 2 0 syz-executor 5164 331634 44018 0 3 0x4000080 netcon syz-executor 5164 19462 44018 0 3 0x4000080 fsleep syz-executor 56450 30756 0 0 3 0x14280 nfsidl nfsio 10118 365779 0 0 3 0x14280 nfsidl nfsio 81418 456199 0 0 3 0x14280 nfsidl nfsio 2877 222704 0 0 3 0x14280 nfsidl nfsio 39657 150552 0 0 3 0x14280 nfsidl nfsio 40545 464940 0 0 3 0x14280 nfsidl nfsio 82057 80540 0 0 3 0x14280 nfsidl nfsio 11878 304066 0 0 3 0x14280 nfsidl nfsio 94812 179815 0 0 3 0x14280 nfsidl nfsio 61474 95606 0 0 3 0x14280 nfsidl nfsio 81729 376378 0 0 3 0x14280 nfsidl nfsio 44186 224977 0 0 3 0x14280 nfsidl nfsio 53969 281106 0 0 3 0x14280 nfsidl nfsio 7429 138854 0 0 3 0x14280 nfsidl nfsio 91364 266220 0 0 3 0x14280 nfsidl nfsio 77841 197476 0 0 3 0x14280 nfsidl nfsio 44424 239518 0 0 3 0x14280 nfsidl nfsio 58990 15059 0 0 3 0x14280 nfsidl nfsio 39695 351457 0 0 3 0x14280 nfsidl nfsio 19348 352731 0 0 3 0x14280 nfsidl nfsio 72457 133781 0 0 3 0x14200 bored sosplice 38860 393600 72537 0 2 0x2 syz-executor 51011 255868 72537 0 3 0x82 nanoslp syz-executor 26172 155279 72537 0 3 0x82 nanoslp syz-executor 67764 276646 72537 0 3 0x82 nanoslp syz-executor 19860 108720 72537 0 3 0x82 nanoslp syz-executor 87635 76365 72537 0 3 0x82 nanoslp syz-executor 46295 420931 72537 0 2 0x2 syz-executor 44018 58857 72537 0 3 0x82 nanoslp syz-executor 72537 269569 80244 0 3 0x82 kqread syz-executor 80244 11365 75520 0 3 0x10008a sigsusp ksh 75520 311118 1103 0 3 0x98 kqread sshd-session 1103 515224 95612 0 3 0x92 kqread sshd-session 73264 454705 1 0 3 0x100083 ttyopn getty 95612 117577 1 0 3 0x88 kqread sshd 36414 400622 41150 74 3 0x1100092 bpf pflogd 41150 224881 1 0 3 0x80 sbwait pflogd 84596 298071 91110 73 3 0x1100090 kqread syslogd 91110 350030 1 0 3 0x100082 sbwait syslogd 27070 98866 1 0 3 0x100080 kqread resolvd 56502 523743 65978 77 3 0x100092 kqread dhcpleased 16281 162582 65978 77 3 0x100092 kqread dhcpleased 65978 437097 1 0 3 0x80 kqread dhcpleased 88122 1924 0 0 3 0x14200 bored smr 62687 66398 0 0 2 0x14200 zerothread 18543 512342 0 0 3 0x14200 aiodoned aiodoned 2523 184825 0 0 3 0x14200 syncer update 10125 12372 0 0 3 0x14200 cleaner cleaner 73366 498763 0 0 3 0x14200 reaper reaper 65555 310283 0 0 3 0x14200 pgdaemon pagedaemon 78390 130252 0 0 3 0x14200 bored viomb 29117 178022 0 0 3 0x40014200 acpi0 acpi0 84215 229665 0 0 3 0x40014200 idle1 4746 246430 0 0 3 0x14200 bored softnet3 26348 101744 0 0 3 0x14200 bored softnet2 63653 447621 0 0 3 0x14200 bored softnet1 79099 500013 0 0 3 0x14200 bored softnet0 11588 77328 0 0 3 0x14200 bored systqmp 13475 157925 0 0 3 0x14200 bored systq 75694 492303 0 0 3 0x14200 tmoslp softclockmp 98920 470055 0 0 3 0x40014200 tmoslp softclock 51411 302345 0 0 3 0x40014200 idle0 1 329305 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex &map->flags_lock r = 0 (0xfffffd806be7b178) #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 86428 (syz-executor) thread 0xffff800030b7f980 (65986) shared rwlock vmmaplk r = 0 (0xfffffd806be7b118) #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 uvm_fault_wire+0x73 sys/uvm/uvm_fault.c:1602 #5 uvm_map_pageable_wire+0x40f sys/uvm/uvm_map.c:2127 #6 sys_mlock+0x23d sys/uvm/uvm_mmap.c:837 #7 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #7 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #8 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83592d78) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #1 syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10226 11194K 11317K 166960K 11584 0 pcb 18 12K 12K 166960K 55 0 rtable 242 6K 7K 166960K 378 0 pf 39 18K 20K 166960K 67 0 ifaddr 46 8K 8K 166960K 57 0 ifgroup 63 2K 2K 166960K 81 0 counters 66 36K 36K 166960K 78 0 ioctlops 0 0K 4K 166960K 1507 0 iov 0 0K 32K 166960K 20 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1366 86K 86K 166960K 1580 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 7 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 13 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 93K 166960K 373 0 sigio 0 0K 0K 166960K 4 0 proc 72 91K 140K 166960K 542 0 subproc 104 6K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 155 0 in_multi 103 7K 7K 166960K 111 0 ether_multi 1 0K 0K 166960K 1 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 223 996K 996K 166960K 223 0 exec 0 0K 1K 166960K 392 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 234 73K 77K 166960K 5114 0 UVM aobj 15 2K 2K 166960K 15 0 pinsyscall 42 84K 105K 166960K 1492 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 17 0 NDP 13 0K 2K 166960K 36 0 temp 48 6816K 6880K 166960K 7500 0 kqueue 13 20K 28K 166960K 67 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 51 0 47 1 0 1 1 0 8 0 rtentry 112 118 0 4 4 0 4 4 0 8 0 unpcb 144 547 0 530 9 5 4 6 0 8 3 syncache 336 6 0 6 3 2 1 1 0 8 1 tcpqe 32 3 0 3 2 1 1 1 0 8 1 tcpcb 808 234 0 225 14 6 8 8 0 8 6 arp 120 20 0 1 1 0 1 1 0 8 0 inpcb 336 502 0 489 17 10 7 12 0 8 5 nd6 136 24 0 0 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1168 4 0 4 1 0 1 1 0 8 1 pfstscr 40 1 0 1 1 0 1 1 0 8 1 pffrag 232 1 0 1 1 0 1 1 0 482 1 pffrnode 88 1 0 1 1 0 1 1 0 8 1 pffrent 40 4 0 4 2 1 1 1 0 8 1 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 45 0 1 1 0 1 1 0 8 0 pfstkey 128 47 0 3 2 0 2 2 0 8 0 pfstate 376 45 0 2 5 0 5 5 0 8 0 pfrule 1344 22 0 16 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 485 0 2 31 0 31 31 0 8 0 art_table 32 486 0 2 4 0 4 4 0 8 0 art_node 16 117 0 16 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semapl 112 11 0 1 1 0 1 1 0 8 0 shmpl 112 12 0 0 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2041 0 535 95 0 95 95 0 8 0 ffsino 272 2041 0 535 101 0 101 101 0 8 0 nchpl 144 2572 0 885 63 0 63 63 0 8 0 uvmvnodes 80 2231 0 0 46 0 46 46 0 8 0 vnodes 216 2231 0 0 124 0 124 124 0 8 0 namei 1024 8791 0 8791 3 1 2 2 0 8 2 percpumem 16 53 0 6 1 0 1 1 0 8 0 kstatmem 264 38 0 12 2 0 2 2 0 8 0 scsiplug 72 4 0 4 2 1 1 1 0 8 1 scxspl 216 7269 0 7269 5 2 3 3 1 8 3 plimitpl 152 255 0 238 1 0 1 1 0 8 0 sigapl 424 706 0 636 10 2 8 8 0 8 0 futexpl 64 3591 0 3586 1 0 1 1 0 8 0 knotepl 120 392 0 0 12 0 12 12 0 8 0 kqueuepl 216 150 0 140 5 0 5 5 0 8 4 pipepl 320 131 0 104 3 0 3 3 0 8 0 fdescpl 496 667 0 636 5 0 5 5 0 8 0 filepl 152 4142 0 3887 22 5 17 17 0 8 6 lockfpl 104 104 0 101 1 0 1 1 0 8 0 lockfspl 48 44 0 41 1 0 1 1 0 8 0 sessionpl 144 24 0 15 1 0 1 1 0 8 0 pgrppl 48 35 0 18 1 0 1 1 0 8 0 ucredpl 104 683 0 670 1 0 1 1 0 8 0 zombiepl 144 637 0 636 1 0 1 1 0 8 0 processpl 1160 706 0 636 7 1 6 6 0 8 0 procpl 648 1110 0 1031 9 1 8 8 0 8 0 sosppl 168 3 0 3 1 0 1 1 0 8 1 sockpl 664 1103 0 1069 24 12 12 14 0 8 8 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 129 0 0 17 0 17 17 0 8 0 mcl2k 2048 31 0 0 4 0 4 4 0 8 0 mtagpl 96 7 0 0 1 0 1 1 0 8 0 mbufpl 256 209 0 0 14 0 14 14 0 8 0 bufpl 280 2608 0 99 180 0 180 180 0 8 0 anonpl 24 168929 0 165550 49 2 47 47 0 185 22 amapchunkpl 152 16443 0 15959 25 2 23 24 0 158 3 amappl16 200 4509 0 4485 18 8 10 15 0 8 8 amappl15 192 24 0 24 1 1 0 1 0 8 0 amappl14 184 121 0 109 1 0 1 1 0 8 0 amappl13 176 22 0 22 1 1 0 1 0 8 0 amappl12 168 1336 0 1306 4 1 3 3 0 8 0 amappl11 160 67 0 53 1 0 1 1 0 8 0 amappl10 152 29 0 29 1 1 0 1 0 8 0 amappl9 144 143 0 143 1 1 0 1 0 8 0 amappl8 136 23 0 20 1 0 1 1 0 8 0 amappl7 128 110 0 98 1 0 1 1 0 8 0 amappl6 120 204 0 202 1 0 1 1 0 8 0 amappl5 112 159 0 147 1 0 1 1 0 8 0 amappl4 104 338 0 320 1 0 1 1 0 8 0 amappl3 96 3311 0 3203 4 0 4 4 0 8 0 amappl2 88 726 0 656 2 0 2 2 0 8 0 amappl1 80 8863 0 8296 14 0 14 14 0 8 0 amappl 88 4704 0 4533 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 0 1 1 0 8 1 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 255 0 255 3 2 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 14 0 0 1 0 1 1 0 8 0 uaddrrnd 24 667 0 636 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 667 0 636 1 0 1 1 0 8 0 vmmpekpl 168 6723 0 6689 2 0 2 2 0 8 0 vmmpepl 168 50199 0 48341 97 2 95 95 0 357 8 vmsppl 448 666 0 636 6 2 4 5 0 8 0 rwobjpl 56 20405 0 17234 48 1 47 47 0 8 2 pdppl 4096 1341 0 1272 97 26 71 85 0 8 2 pvpl 32 14585 0 0 120 2 118 119 0 265 0 pmappl 248 666 0 636 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 413 0 49 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff834a1ff0) 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 __mp_lock(ffffffff83592b70) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83592b70) at __mp_lock+0x192 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff83592b70) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83592b70) at __mp_lock+0x192 sys/kern/kern_lock.c:144 syscall(ffff8000371da7b0) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371da7b0) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xba5fe02abe0, count: 6 ddb{0}> trace x86_ipi_db(ffffffff834a1ff0) 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 __mp_lock(ffffffff83592b70) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83592b70) at __mp_lock+0x192 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff83592b70) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83592b70) at __mp_lock+0x192 sys/kern/kern_lock.c:144 syscall(ffff8000371da7b0) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371da7b0) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xba5fe02abe0, count: -9 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(ffffffff830777cb) at panic+0x1e5 sys/kern/subr_prf.c:198 mtx_leave(fffffd806be7b138) at mtx_leave+0x17c sys/kern/kern_lock.c:335 msleep(fffffd806be7b050,fffffd806be7b138,4,ffffffff832017c0,0) at msleep+0x125 sys/kern/kern_synch.c:249 vm_map_lock_ln(fffffd806be7b020,31433651000,0) at vm_map_lock_ln+0xd4 sys/uvm/uvm_map.c:5250 uvm_map_protect(fffffd806be7b020,31433452000,31433651000,1,0,0,b4268bc9c8f93e00) at uvm_map_protect+0xe1 sys/uvm/uvm_map.c:3059 sys_mprotect(ffff800030b7ecd8,ffff8000371e0bd0,ffff8000371e0b20) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000371e0bd0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371e0bd0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e3e488f7d20, count: 6 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830777cb) at panic+0x1e5 sys/kern/subr_prf.c:198 mtx_leave(fffffd806be7b138) at mtx_leave+0x17c sys/kern/kern_lock.c:335 msleep(fffffd806be7b050,fffffd806be7b138,4,ffffffff832017c0,0) at msleep+0x125 sys/kern/kern_synch.c:249 vm_map_lock_ln(fffffd806be7b020,31433651000,0) at vm_map_lock_ln+0xd4 sys/uvm/uvm_map.c:5250 uvm_map_protect(fffffd806be7b020,31433452000,31433651000,1,0,0,b4268bc9c8f93e00) at uvm_map_protect+0xe1 sys/uvm/uvm_map.c:3059 sys_mprotect(ffff800030b7ecd8,ffff8000371e0bd0,ffff8000371e0b20) at sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 syscall(ffff8000371e0bd0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371e0bd0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e3e488f7d20, count: -9