panic: uvm_fault_unwire_locked: address not in map Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 88834 22057 32767 0x10 0 0 syz-executor.0 * 9683 22057 32767 0x10 0x4000000 1K syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 uvm_fault_unwire_locked(fffffd806e8d5b48,20fbee000,20fbee000) at uvm_fault_unwire_locked+0x332 uvm_map_pageable_wire(fffffd806e8d5b48,fffffd806b214968,fffffd806cd36360,ffff800022e22000,1,1) at uvm_map_pageable_wire+0x5e0 sys/uvm/uvm_map.c:2306 uvm_mmaplock(fffffd806e8d5b48,ffff80002502ceb0,4000,2,800000) at uvm_mmaplock+0x181 sys/uvm/uvm_mmap.c:859 sys_mmap(ffff800020b39530,ffff80002502cf68,ffff80002502cfd0) at sys_mmap+0xc77 sys/uvm/uvm_mmap.c:394 syscall(ffff80002502d040) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff80002502d040) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff96,0,7,fe2e010) at Xsyscall+0x128 end of kernel end trace frame: 0x30cb65040, count: 7 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 uvm_fault_unwire_locked: address not in map ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 uvm_fault_unwire_locked(fffffd806e8d5b48,20fbee000,20fbee000) at uvm_fault_unwire_locked+0x332 uvm_map_pageable_wire(fffffd806e8d5b48,fffffd806b214968,fffffd806cd36360,ffff800022e22000,1,1) at uvm_map_pageable_wire+0x5e0 sys/uvm/uvm_map.c:2306 uvm_mmaplock(fffffd806e8d5b48,ffff80002502ceb0,4000,2,800000) at uvm_mmaplock+0x181 sys/uvm/uvm_mmap.c:859 sys_mmap(ffff800020b39530,ffff80002502cf68,ffff80002502cfd0) at sys_mmap+0xc77 sys/uvm/uvm_mmap.c:394 syscall(ffff80002502d040) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff80002502d040) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff96,0,7,fe2e010) at Xsyscall+0x128 end of kernel end trace frame: 0x30cb65040, count: -8 ddb{1}> show registers rdi 0xffffffff8115d297 db_enter+0x17 rsi 0x1b91 __ALIGN_SIZE+0xb91 rbp 0xffff80002502cb70 rbx 0xffff80002502cc20 rdx 0x1b92 __ALIGN_SIZE+0xb92 rcx 0xffff800022e22000 rax 0xffff800022e22000 r8 0xffffffff81b13633 kprintf+0x173 r9 0x1 r10 0x25 r11 0x89a7cf0d5acdde89 r12 0x3000000008 r13 0xffff80002502cb80 r14 0x100 r15 0x1 rip 0xffffffff8115d298 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002502cb60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=9683 stat=onproc flags process=10 proc=4000000 pri=54, usrpri=54, nice=20 forw=0xffffffffffffffff, list=0xffff800020b39788,0xffffffff8235d838 process=0xffff800020b3b078 user=0xffff800025028000, vmspace=0xfffffd806e8d5b48 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 22057 88834 34925 32767 7 0x10 syz-executor.0 *22057 9683 34925 32767 7 0x4000010 syz-executor.0 34925 307707 34387 32767 3 0x90 nanosleep syz-executor.0 34387 119896 25485 0 3 0x82 wait syz-executor.0 49588 438333 11146 32767 3 0x90 piperd syz-executor.1 11146 119606 25485 0 3 0x82 wait syz-executor.1 50816 43165 0 0 3 0x14200 bored sosplice 25485 275981 42035 0 3 0x82 thrsleep syz-fuzzer 25485 388300 42035 0 3 0x4000082 nanosleep syz-fuzzer 25485 190976 42035 0 3 0x4000082 thrsleep syz-fuzzer 25485 307085 42035 0 3 0x4000082 thrsleep syz-fuzzer 25485 122375 42035 0 3 0x4000082 thrsleep syz-fuzzer 25485 407757 42035 0 3 0x4000082 thrsleep syz-fuzzer 25485 464595 42035 0 3 0x4000082 nanosleep syz-fuzzer 25485 476670 42035 0 3 0x4000082 thrsleep syz-fuzzer 25485 21787 42035 0 3 0x4000082 kqread syz-fuzzer 25485 15984 42035 0 3 0x4000082 thrsleep syz-fuzzer 42035 122222 58842 0 3 0x10008a pause ksh 58842 75712 51692 0 3 0x92 select sshd 89711 499093 1 0 3 0x100083 ttyin getty 51692 411524 1 0 3 0x80 select sshd 4291 94320 18429 73 3 0x100090 kqread syslogd 18429 120476 1 0 3 0x100082 netio syslogd 8163 523511 1 77 3 0x100090 poll dhclient 17971 170522 1 0 3 0x80 poll dhclient 52800 270231 0 0 3 0x14200 pgzero zerothread 76597 71650 0 0 3 0x14200 aiodoned aiodoned 93870 324932 0 0 3 0x14200 syncer update 38501 251829 0 0 3 0x14200 cleaner cleaner 39343 305411 0 0 3 0x14200 reaper reaper 52460 312581 0 0 3 0x14200 pgdaemon pagedaemon 77620 519590 0 0 3 0x14200 bored crynlk 34945 316607 0 0 3 0x14200 bored crypto 62454 129227 0 0 3 0x40014200 acpi0 acpi0 74451 300529 0 0 3 0x40014200 idle1 17015 51351 0 0 3 0x14200 bored softnet 30513 217549 0 0 3 0x14200 bored systqmp 55868 361645 0 0 3 0x14200 bored systq 368 248957 0 0 3 0x40014200 bored softclock 52019 178711 0 0 3 0x40014200 idle0 43454 180055 0 0 3 0x14200 bored smr 1 321144 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex &uvm.pageqlock r = 0 (0xffffffff8234dcc0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 uvm_fault_unwire_locked+0x61 sys/uvm/uvm_fault.c:1344 #4 uvm_map_pageable_wire+0x5e0 sys/uvm/uvm_map.c:2306 #5 uvm_mmaplock+0x181 sys/uvm/uvm_mmap.c:859 #6 sys_mmap+0xc77 sys/uvm/uvm_mmap.c:394 #7 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #7 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #8 Xsyscall+0x128 Process 22057 (syz-executor.0) thread 0xffff800020b39530 (9683) exclusive rwlock vmmaplk r = 0 (0xfffffd806e8d5b60) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 uvm_map_pageable_wire+0x35a vm_map_unbusy_ln sys/uvm/uvm_map.c:5365 [inline] #1 uvm_map_pageable_wire+0x35a sys/uvm/uvm_map.c:2287 #2 uvm_mmaplock+0x181 sys/uvm/uvm_mmap.c:859 #3 sys_mmap+0xc77 sys/uvm/uvm_mmap.c:394 #4 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #4 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #5 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 2 (0xffffffff823964f8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 syscall+0x43a mi_syscall sys/sys/syscall_mi.h:91 [inline] #1 syscall+0x43a sys/arch/amd64/amd64/trap.c:574 #2 Xsyscall+0x128 exclusive mutex &uvm.pageqlock r = 0 (0xffffffff8234dcc0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 uvm_fault_unwire_locked+0x61 sys/uvm/uvm_fault.c:1344 #4 uvm_map_pageable_wire+0x5e0 sys/uvm/uvm_map.c:2306 #5 uvm_mmaplock+0x181 sys/uvm/uvm_mmap.c:859 #6 sys_mmap+0xc77 sys/uvm/uvm_mmap.c:394 #7 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #7 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #8 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9459 6321K 6321K 78643K 10976 0 0 pcb 23 9K 10K 78643K 1529 0 0 rtable 105 3K 3K 78643K 4005 0 0 ifaddr 36 12K 12K 78643K 569 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 151 0 0 iov 0 0K 28K 78643K 237 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1209 76K 76K 78643K 3302 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 40 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 173 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 7 21K 33K 78643K 4062 0 0 sigio 0 0K 0K 78643K 48 0 0 proc 41 38K 70K 78643K 4086 0 0 subproc 34 2K 2K 78643K 1496 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 354 0 0 in_multi 33 2K 2K 78643K 1041 0 0 ether_multi 1 0K 0K 78643K 14 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 1431 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 92 21K 30K 78643K 13786 0 0 UVM aobj 130 5K 5K 78643K 147 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 177 0 0 NDP 7 0K 0K 78643K 267 0 0 temp 121 2734K 2802K 78643K 21175 0 0 kqueue 0 0K 0K 78643K 45 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 178 0 172 1 0 1 1 0 8 0 inpcbpl 280 1749 0 1742 1 0 1 1 0 8 0 plimitpl 152 301 0 292 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 991 0 947 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpcb 544 609 0 605 1 0 1 1 0 8 0 nd6 48 264 0 258 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 4075 0 3884 15 3 12 13 0 8 0 art_table 32 4076 0 3884 2 0 2 2 0 8 0 art_node 16 990 0 950 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 8 2 1 1 1 0 8 0 semapl 112 171 0 161 1 0 1 1 0 8 0 shmpl 112 145 0 17 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5248 0 3781 48 0 48 48 0 8 0 ffsino 272 5248 0 3781 100 2 98 98 0 8 0 nchpl 144 9752 0 8129 61 0 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 38058 0 38058 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 26539 0 26539 15 14 1 6 0 8 1 sigapl 432 3975 0 3960 7 5 2 3 0 8 0 futexpl 56 27428 0 27428 1 0 1 1 0 8 1 knotepl 112 2462 0 2443 1 0 1 1 0 8 0 kqueuepl 104 721 0 719 1 0 1 1 0 8 0 pipepl 112 2514 0 2495 6 5 1 2 0 8 0 fdescpl 488 3976 0 3960 3 0 3 3 0 8 0 filepl 152 21134 0 21037 9 4 5 6 0 8 1 lockfpl 104 520 0 520 7 6 1 1 0 8 1 lockfspl 48 169 0 169 7 6 1 1 0 8 1 sessionpl 112 103 0 93 1 0 1 1 0 8 0 pgrppl 48 130 0 120 1 0 1 1 0 8 0 ucredpl 96 5806 0 5797 1 0 1 1 0 8 0 zombiepl 144 3960 0 3960 2 1 1 1 0 8 1 processpl 840 3992 0 3960 4 0 4 4 0 8 0 procpl 600 9493 0 9451 4 0 4 4 0 8 0 srpgc 64 516 0 516 8 7 1 1 0 8 1 sosppl 128 70 0 70 14 14 0 1 0 8 0 sockpl 384 3322 0 3305 4 1 3 3 0 8 1 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 13 0 0 1 0 1 1 0 8 0 mcl8k 8192 10 0 0 2 0 2 2 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 132 0 0 14 0 14 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 335 0 0 15 0 15 15 0 8 0 bufpl 256 10528 0 3523 438 0 438 438 0 8 0 anonpl 16 366579 0 361625 121 80 41 42 0 125 12 amapchunkpl 152 32451 0 32359 58 47 11 18 0 158 6 amappl16 192 14769 0 14461 104 80 24 28 0 8 8 amappl15 184 446 0 444 1 0 1 1 0 8 0 amappl14 176 969 0 962 2 1 1 1 0 8 0 amappl13 168 606 0 604 6 5 1 1 0 8 0 amappl12 160 501 0 498 1 0 1 1 0 8 0 amappl11 152 700 0 686 1 0 1 1 0 8 0 amappl10 144 480 0 477 2 1 1 1 0 8 0 amappl9 136 2245 0 2241 1 0 1 1 0 8 0 amappl8 128 1548 0 1526 1 0 1 1 0 8 0 amappl7 120 514 0 505 1 0 1 1 0 8 0 amappl6 112 498 0 490 1 0 1 1 0 8 0 amappl5 104 1138 0 1126 1 0 1 1 0 8 0 amappl4 96 3368 0 3344 1 0 1 1 0 8 0 amappl3 88 924 0 914 1 0 1 1 0 8 0 amappl2 80 23978 0 23906 4 2 2 3 0 8 0 amappl1 72 114251 0 113806 23 13 10 19 0 8 0 amappl 80 11092 0 11054 1 0 1 1 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 146 0 17 3 0 3 3 0 8 0 uaddrrnd 24 3976 0 3960 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3976 0 3960 1 0 1 1 0 8 0 vmmpekpl 168 34873 0 34844 2 0 2 2 0 8 0 vmmpepl 168 441453 0 440055 142 65 77 77 0 357 13 vmsppl 360 3975 0 3960 2 0 2 2 0 8 0 pdppl 4096 7960 0 7920 6 0 6 6 0 8 1 pvpl 32 1088753 0 1080572 267 156 111 114 0 265 31 pmappl 232 3975 0 3960 10 8 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 604 0 8 18 0 18 18 0 8 0