panic: uvm_fault_unwire_locked: address not in map Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *391946 76512 0 0 0x4000000 0 syz-executor.1 276945 37243 0 0x2 0x4000000 1 syz-fuzzer 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(fffffd807effdb40,214628000,214628000) at uvm_fault_unwire_locked+0x332 uvm_map_pageable_wire(fffffd807effdb40,fffffd80683f4c28,fffffd8064770300,ffff800022e22000,3,3) at uvm_map_pageable_wire+0x5e0 sys/uvm/uvm_map.c:2306 uvm_map_protect(fffffd807effdb40,20ffc000,21000000,1,0) at uvm_map_protect+0x6d6 sys/uvm/uvm_map.c:3312 syscall(ffff800021c41aa0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800021c41aa0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff97,0,3,14868010) at Xsyscall+0x128 end of kernel end trace frame: 0x2c05c8860, count: 8 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic uvm_fault_unwire_locked: address not in map ddb{0}> 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(fffffd807effdb40,214628000,214628000) at uvm_fault_unwire_locked+0x332 uvm_map_pageable_wire(fffffd807effdb40,fffffd80683f4c28,fffffd8064770300,ffff800022e22000,3,3) at uvm_map_pageable_wire+0x5e0 sys/uvm/uvm_map.c:2306 uvm_map_protect(fffffd807effdb40,20ffc000,21000000,1,0) at uvm_map_protect+0x6d6 sys/uvm/uvm_map.c:3312 syscall(ffff800021c41aa0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800021c41aa0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff97,0,3,14868010) at Xsyscall+0x128 end of kernel end trace frame: 0x2c05c8860, count: -7 ddb{0}> show registers rdi 0xffffffff81470857 db_enter+0x17 rsi 0x1aa3 __ALIGN_SIZE+0xaa3 rbp 0xffff800021c41710 rbx 0xffff800021c417c0 rdx 0x1aa4 __ALIGN_SIZE+0xaa4 rcx 0xffff800022e22000 rax 0xffff800022e22000 r8 0xffffffff81492cf3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x2f71a4af88130ed4 r12 0x3000000008 r13 0xffff800021c41720 r14 0x100 r15 0x1 rip 0xffffffff81470858 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021c41700 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=391946 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b75530,0xffffffff8236a010 process=0xffff800020b8c9f0 user=0xffff800021c3c000, vmspace=0xfffffd807effdb40 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 76512 301015 45133 0 2 0 syz-executor.1 *76512 391946 45133 0 7 0x4000000 syz-executor.1 45133 475539 37243 0 3 0x82 nanosleep syz-executor.1 70328 103676 0 0 3 0x14200 bored sosplice 57579 396944 37243 0 3 0x82 piperd syz-executor.0 37243 420356 20642 0 3 0x82 thrsleep syz-fuzzer 37243 129852 20642 0 2 0x4000482 syz-fuzzer 37243 102399 20642 0 3 0x4000082 thrsleep syz-fuzzer 37243 276945 20642 0 7 0x4000002 syz-fuzzer 37243 446505 20642 0 3 0x4000082 thrsleep syz-fuzzer 37243 98403 20642 0 3 0x4000082 kqread syz-fuzzer 37243 293182 20642 0 3 0x4000082 thrsleep syz-fuzzer 37243 487361 20642 0 3 0x4000082 thrsleep syz-fuzzer 37243 152582 20642 0 3 0x4000082 thrsleep syz-fuzzer 37243 205737 20642 0 3 0x4000082 thrsleep syz-fuzzer 20642 425688 5012 0 3 0x10008a pause ksh 5012 308853 44684 0 3 0x92 select sshd 76021 66888 1 0 3 0x100083 ttyin getty 44684 324050 1 0 3 0x80 select sshd 16534 77795 39519 74 3 0x100092 bpf pflogd 39519 158122 1 0 3 0x80 netio pflogd 16458 265630 71866 73 3 0x100090 kqread syslogd 71866 52589 1 0 3 0x100082 netio syslogd 70722 293004 1 77 3 0x100090 poll dhclient 23569 32599 1 0 3 0x80 poll dhclient 91478 134614 0 0 3 0x14200 pgzero zerothread 52965 267954 0 0 3 0x14200 aiodoned aiodoned 48764 328784 0 0 3 0x14200 syncer update 7553 165816 0 0 3 0x14200 cleaner cleaner 10885 174286 0 0 3 0x14200 reaper reaper 19182 356900 0 0 3 0x14200 pgdaemon pagedaemon 15929 471776 0 0 3 0x14200 bored crynlk 23273 204522 0 0 3 0x14200 bored crypto 48778 37383 0 0 3 0x40014200 acpi0 acpi0 23764 279231 0 0 3 0x40014200 idle1 52794 236288 0 0 3 0x14200 bored softnet 47783 452718 0 0 3 0x14200 bored systqmp 68634 464144 0 0 3 0x14200 bored systq 57560 451849 0 0 3 0x40014200 bored softclock 9849 262335 0 0 3 0x40014200 idle0 16201 171610 0 0 3 0x14200 bored smr 1 3345 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &uvm.pageqlock r = 0 (0xffffffff8238f800) #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_map_protect+0x6d6 sys/uvm/uvm_map.c:3312 #6 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #6 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #7 Xsyscall+0x128 Process 76512 (syz-executor.1) thread 0xffff800020b75080 (391946) exclusive rwlock vmmaplk r = 0 (0xfffffd807effdb58) #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_map_protect+0x6d6 sys/uvm/uvm_map.c:3312 #3 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #3 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #4 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82396cc8) #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 (0xffffffff8238f800) #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_map_protect+0x6d6 sys/uvm/uvm_map.c:3312 #6 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #6 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9503 6415K 6779K 78643K 11439 0 0 pcb 25 9K 11K 78643K 400 0 0 rtable 112 4K 5K 78643K 1145 0 0 ifaddr 53 13K 13K 78643K 212 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1506 0 0 iov 0 0K 24K 78643K 67 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 2002 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 13 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 81 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 5 13K 25K 78643K 956 0 0 proc 54 51K 83K 78643K 1189 0 0 subproc 32 2K 2K 78643K 361 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 62 0 0 in_multi 33 2K 2K 78643K 259 0 0 ether_multi 1 0K 0K 78643K 3 0 0 mrt 0 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 488 0 0 pfkey data 0 0K 0K 78643K 2 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 87 20K 29K 78643K 4011 0 0 UVM aobj 31 2K 3K 78643K 38 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 30 0 0 NDP 12 0K 0K 78643K 83 0 0 temp 142 2723K 2800K 78643K 7728 0 0 kqueue 0 0K 0K 78643K 4 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 44 0 38 1 0 1 1 0 8 0 inpcbpl 280 370 0 363 1 0 1 1 0 8 0 plimitpl 152 49 0 41 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 256 0 212 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 5 0 5 1 1 0 1 0 8 0 tcpcb 544 99 0 95 1 0 1 1 0 8 0 nd6 48 63 0 57 1 0 1 1 0 8 0 ppxss 1128 6 0 6 3 3 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 14 0 9 1 0 1 1 0 8 0 pfstkey 112 14 0 9 1 0 1 1 0 8 0 pfstate 328 14 0 9 1 0 1 1 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1081 0 890 12 0 12 12 0 8 0 art_table 32 1082 0 890 2 0 2 2 0 8 0 art_node 16 253 0 213 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 77 0 67 1 0 1 1 0 8 0 shmpl 112 36 0 7 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2552 0 1123 47 0 47 47 0 8 0 ffsino 272 2552 0 1123 96 0 96 96 0 8 0 nchpl 144 3767 0 2140 61 0 61 61 0 8 0 uvmvnodes 72 3141 0 0 58 0 58 58 0 8 0 vnodes 200 3141 0 0 166 0 166 166 0 8 0 namei 1024 12333 0 12333 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 11429 0 11429 14 13 1 6 0 8 1 sigapl 432 1099 0 1084 3 1 2 3 0 8 0 futexpl 56 6775 0 6775 1 0 1 1 0 8 1 knotepl 112 545 0 526 1 0 1 1 0 8 0 kqueuepl 104 140 0 138 1 0 1 1 0 8 0 pipepl 112 678 0 659 4 3 1 2 0 8 0 fdescpl 488 1100 0 1084 3 0 3 3 0 8 0 filepl 152 5588 0 5488 10 6 4 7 0 8 0 lockfpl 104 263 0 263 3 3 0 1 0 8 0 lockfspl 48 89 0 89 3 3 0 1 0 8 0 sessionpl 112 37 0 26 1 0 1 1 0 8 0 pgrppl 48 44 0 33 1 0 1 1 0 8 0 ucredpl 96 941 0 932 1 0 1 1 0 8 0 zombiepl 144 1084 0 1084 3 2 1 1 0 8 1 processpl 840 1116 0 1084 4 0 4 4 0 8 0 procpl 600 2472 0 2430 4 0 4 4 0 8 0 srpgc 64 114 0 114 1 0 1 1 0 8 1 sosppl 128 3 0 3 2 2 0 1 0 8 0 sockpl 384 722 0 703 5 2 3 4 0 8 1 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 129 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 202 0 0 11 1 10 10 0 8 0 bufpl 256 8623 0 1615 439 0 439 439 0 8 0 anonpl 16 106361 0 99387 70 32 38 53 0 125 0 amapchunkpl 152 7973 0 7876 13 8 5 10 0 158 0 amappl16 192 4303 0 3842 56 32 24 36 0 8 0 amappl15 184 589 0 589 1 1 0 1 0 8 0 amappl14 176 165 0 161 2 1 1 1 0 8 0 amappl13 168 45 0 44 1 0 1 1 0 8 0 amappl12 160 50 0 47 1 0 1 1 0 8 0 amappl11 152 129 0 110 1 0 1 1 0 8 0 amappl10 144 142 0 138 1 0 1 1 0 8 0 amappl9 136 849 0 846 1 0 1 1 0 8 0 amappl8 128 357 0 340 1 0 1 1 0 8 0 amappl7 120 122 0 114 1 0 1 1 0 8 0 amappl6 112 76 0 70 1 0 1 1 0 8 0 amappl5 104 258 0 244 1 0 1 1 0 8 0 amappl4 96 1182 0 1158 1 0 1 1 0 8 0 amappl3 88 240 0 229 1 0 1 1 0 8 0 amappl2 80 7020 0 6951 4 1 3 3 0 8 0 amappl1 72 36398 0 35960 25 15 10 20 0 8 0 amappl 80 3005 0 2968 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 37 0 7 1 0 1 1 0 8 0 uaddrrnd 24 1100 0 1084 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1100 0 1084 1 0 1 1 0 8 0 vmmpekpl 168 12271 0 12245 3 1 2 2 0 8 0 vmmpepl 168 130025 0 128528 114 32 82 82 0 357 15 vmsppl 360 1099 0 1084 2 0 2 2 0 8 0 pdppl 4096 2208 0 2168 6 0 6 6 0 8 0 pvpl 32 348176 0 337996 165 49 116 140 0 265 16 pmappl 232 1099 0 1084 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 595 0 6 17 0 17 17 0 8 0