uvm_fault(0xfffffd807efffcf0, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at uvm_fault_lower+0xbb1: movq 0(%rbx),%rdi TID PID UID PRFLAGS PFLAGS CPU COMMAND *428969 1722 32767 0x10 0 1K syz-executor.1 71641 1722 32767 0x10 0x4000000 0 syz-executor.1 uvm_fault_lower(ffff800022c740e0,ffff800022c74118,ffff800022c74060,0) at uvm_fault_lower+0xbb1 sys/uvm/uvm_fault.c:1325 uvm_fault(fffffd807efffcf0,20000000,0,2) at uvm_fault+0x24f sys/uvm/uvm_fault.c:640 upageflttrap(ffff800022c74250,20000000) at upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 usertrap(ffff800022c74250) at usertrap+0x214 sys/arch/amd64/amd64/trap.c:403 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffbdd10, count: 10 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: uvm_fault(0xfffffd807efffcf0, 0x0, 0, 1) -> e ddb{1}> trace uvm_fault_lower(ffff800022c740e0,ffff800022c74118,ffff800022c74060,0) at uvm_fault_lower+0xbb1 sys/uvm/uvm_fault.c:1325 uvm_fault(fffffd807efffcf0,20000000,0,2) at uvm_fault+0x24f sys/uvm/uvm_fault.c:640 upageflttrap(ffff800022c74250,20000000) at upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 usertrap(ffff800022c74250) at usertrap+0x214 sys/arch/amd64/amd64/trap.c:403 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffbdd10, count: -5 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff800022c73fd0 rbx 0 rdx 0 rcx 0 rax 0xffff8000211dea90 r8 0xffffffff81a8edde witness_assert+0x1fe r9 0x5 r10 0x9ad13573dd8a64d r11 0x45f16444b4c4e344 r12 0xffff800022c740e0 r13 0xfffffd806f9bd2a0 r14 0 r15 0xffffffff81b25d00 uvn_flush+0x950 rip 0xffffffff817b9101 uvm_fault_lower+0xbb1 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800022c73f40 ss 0 uvm_fault_lower+0xbb1: movq 0(%rbx),%rdi ddb{1}> show proc PROC (syz-executor.1) pid=428969 stat=onproc flags process=10 proc=0 pri=36, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000211defd0,0xffff8000211ded40 process=0xffff8000ffff0440 user=0xffff800022c6f000, vmspace=0xfffffd807efffcf0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND * 1722 428969 27200 32767 7 0x10 syz-executor.1 1722 235367 27200 32767 3 0x4000090 fsleep syz-executor.1 1722 71641 27200 32767 7 0x4000010 syz-executor.1 86384 237288 16995 32767 3 0x90 nanoslp syz-executor.0 16995 331164 73279 0 3 0x82 wait syz-executor.0 27200 222968 54933 32767 3 0x90 nanoslp syz-executor.1 54933 195440 73279 0 3 0x82 wait syz-executor.1 51777 516911 0 0 3 0x14200 bored sosplice 73279 373509 2515 0 3 0x82 thrsleep syz-fuzzer 73279 463224 2515 0 3 0x4000082 nanoslp syz-fuzzer 73279 126847 2515 0 3 0x4000082 kqread syz-fuzzer 73279 23816 2515 0 3 0x4000082 thrsleep syz-fuzzer 73279 502554 2515 0 3 0x4000082 thrsleep syz-fuzzer 73279 512931 2515 0 3 0x4000082 thrsleep syz-fuzzer 73279 410155 2515 0 3 0x4000082 nanoslp syz-fuzzer 73279 464018 2515 0 3 0x4000082 thrsleep syz-fuzzer 2515 468200 92473 0 3 0x10008a sigsusp ksh 92473 48182 98548 0 3 0x9a kqread sshd 8599 29918 1 0 3 0x100083 ttyin getty 98548 56414 1 0 3 0x88 kqread sshd 62481 12294 54032 73 3 0x100090 kqread syslogd 54032 501393 1 0 3 0x100082 netio syslogd 16969 32270 1 0 3 0x100080 kqread resolvd 41966 456312 19499 77 3 0x100092 kqread dhcpleased 5618 1850 19499 77 3 0x100092 kqread dhcpleased 19499 123794 1 0 3 0x80 kqread dhcpleased 76476 458754 0 0 3 0x14200 bored smr 46442 26615 0 0 3 0x14200 pgzero zerothread 10678 422 0 0 3 0x14200 aiodoned aiodoned 10790 31490 0 0 3 0x14200 syncer update 99635 335338 0 0 3 0x14200 cleaner cleaner 16635 482081 0 0 3 0x14200 reaper reaper 46024 228810 0 0 3 0x14200 pgdaemon pagedaemon 34415 491804 0 0 3 0x14200 bored viomb 98029 469374 0 0 3 0x40014200 acpi0 acpi0 63586 346534 0 0 3 0x40014200 idle1 90175 313433 0 0 3 0x14200 bored softnet 2690 322361 0 0 3 0x14200 bored systqmp 86694 277245 0 0 3 0x14200 bored systq 51796 88656 0 0 3 0x40014200 bored softclock 7721 309040 0 0 3 0x40014200 idle0 1 400537 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 1722 (syz-executor.1) thread 0xffff8000211dea90 (428969) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff828b70b8) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182 #1 __mp_acquire_count+0x4c sys/kern/kern_lock.c:227 #2 mi_switch+0x3d3 sys/kern/sched_bsd.c:416 #3 sleep_finish+0x1b2 sys/kern/kern_synch.c:433 #4 rw_enter+0x35b sys/kern/kern_rwlock.c:286 #5 uvmfault_relock+0x6f sys/uvm/uvm_fault.c:1801 #6 uvm_fault_lower+0x931 sys/uvm/uvm_fault.c:1288 #7 uvm_fault+0x24f sys/uvm/uvm_fault.c:640 #8 upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 #9 usertrap+0x214 sys/arch/amd64/amd64/trap.c:403 #10 recall_trap+0x8 Process 1722 (syz-executor.1) thread 0xffff8000211de2b0 (71641) shared rwlock vmmaplk r = 0 (0xfffffd807efffd08) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182 #1 uvm_map_inentry_fix+0xa7 vm_map_lock_read_ln sys/uvm/uvm_map.c:5480 [inline] #1 uvm_map_inentry_fix+0xa7 sys/uvm/uvm_map.c:1886 #2 uvm_map_inentry+0xc5 sys/uvm/uvm_map.c:1917 #3 syscall+0x3d1 mi_syscall sys/sys/syscall_mi.h:87 [inline] #3 syscall+0x3d1 sys/arch/amd64/amd64/trap.c:585 #4 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10140 6393K 6416K 78643K 11303 0 pcb 13 12K 14K 78643K 17 0 rtable 110 3K 4K 78643K 2309 0 ifaddr 39 10K 10K 78643K 209 0 sysctl 3 1K 1K 78643K 8 0 counters 44 34K 34K 78643K 92 0 ioctlops 0 0K 2K 78643K 134 0 iov 0 0K 20K 78643K 2193 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1209 76K 76K 78643K 4963 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 121 0 VM map 2 1K 1K 78643K 2 0 sem 10 1K 1K 78643K 12 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 7 21K 33K 78643K 16901 0 sigio 0 0K 0K 78643K 220 0 proc 56 74K 99K 78643K 1868 0 subproc 26 1K 1K 78643K 338 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1364 0 in_multi 33 2K 2K 78643K 552 0 ether_multi 1 0K 0K 78643K 74 0 mrt 1 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 157 705K 705K 78643K 157 0 exec 0 0K 2K 78643K 3163 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 263 36K 50K 78643K 224202 0 UVM aobj 131 4K 5K 78643K 152 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 389 0 NDP 5 0K 0K 78643K 81 0 temp 76 4195K 4323K 78643K 41787 0 kqueue 14 19K 25K 78643K 2170 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 1408 0 1405 20 19 1 3 0 8 0 rtentry 112 338 0 292 2 0 2 2 0 8 0 unpcb 128 30002 0 29989 178 175 3 9 0 8 2 syncache 296 230 0 230 43 42 1 1 0 8 1 tcpqe 32 583 0 583 23 23 0 1 0 8 0 tcpcb 736 7233 0 7228 267 265 2 19 0 8 1 arp 120 59 0 53 1 0 1 1 0 8 0 ipq 40 83 0 82 21 20 1 1 0 8 0 ipqe 40 688 0 687 21 20 1 1 0 8 0 inpcb 304 13480 0 13473 257 255 2 12 0 8 1 ip6q 72 63 0 62 11 10 1 1 0 8 0 ip6af 40 122 0 121 10 9 1 1 0 8 0 nd6 48 102 0 94 1 0 1 1 0 8 0 kcovpl 48 26 0 24 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1451 0 1249 25 11 14 18 0 8 0 art_table 32 1452 0 1249 3 1 2 3 0 8 0 art_node 16 337 0 295 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 16 1 0 1 1 0 8 0 semupl 112 4 0 4 2 2 0 1 0 8 0 semapl 112 8 0 0 1 0 1 1 0 8 0 shmpl 112 149 0 21 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 23749 0 22335 90 1 89 89 0 8 0 ffsino 272 23749 0 22335 95 0 95 95 0 8 0 nchpl 144 46162 0 44561 60 0 60 60 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 152624 0 152624 6 5 1 1 0 8 1 percpumem 16 58 0 24 1 0 1 1 0 8 0 scxspl 216 142967 0 142967 56 55 1 8 0 8 1 plimitpl 152 2987 0 2977 1 0 1 1 0 8 0 sigapl 424 17051 0 17018 4 0 4 4 0 8 0 futexpl 64 138422 0 138421 6 5 1 1 0 8 0 knotepl 112 230 0 0 3 0 3 3 0 8 0 kqueuepl 216 7375 0 7354 116 114 2 9 0 8 0 pipepl 336 3030 0 3020 120 118 2 11 0 8 1 fdescpl 496 17036 0 17018 4 1 3 3 0 8 0 filepl 152 124478 0 124376 257 250 7 14 0 8 3 lockfpl 104 6510 0 6507 3 2 1 2 0 8 0 lockfspl 48 1707 0 1704 1 0 1 1 0 8 0 sessionpl 144 41 0 31 1 0 1 1 0 8 0 pgrppl 48 187 0 177 1 0 1 1 0 8 0 ucredpl 96 20596 0 20584 1 0 1 1 0 8 0 zombiepl 144 17018 0 17017 1 0 1 1 0 8 0 processpl 1064 17051 0 17017 4 1 3 3 0 8 0 procpl 672 53406 0 53363 29 24 5 6 0 8 1 srpgc 96 2 0 2 1 1 0 1 0 8 0 sosppl 168 326 0 326 30 30 0 1 0 8 0 sockpl 480 45470 0 45447 912 901 11 34 0 8 8 mcl64k 65536 58 0 0 5 2 3 3 0 8 0 mcl16k 16384 25 0 0 3 0 3 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 26 0 0 2 1 1 2 0 8 0 mcl8k 8192 43 0 0 5 3 2 3 0 8 0 mcl4k 4096 65 0 0 4 2 2 3 0 8 0 mcl2k2 2112 16 0 0 2 0 2 2 0 8 0 mcl2k 2048 445 0 0 27 9 18 26 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 3822 0 0 212 0 212 212 0 8 0 bufpl 288 35771 0 29446 454 1 453 453 0 8 0 anonpl 24 7135697 0 7123818 466 369 97 125 0 186 5 amapchunkpl 152 574666 0 574091 167 138 29 37 0 158 5 amappl16 200 167069 0 166716 322 297 25 45 0 8 6 amappl15 192 3481 0 3475 1 0 1 1 0 8 0 amappl14 184 1641 0 1638 4 3 1 1 0 8 0 amappl13 176 2138 0 2137 1 0 1 1 0 8 0 amappl12 168 1146 0 1142 1 0 1 1 0 8 0 amappl11 160 104 0 90 1 0 1 1 0 8 0 amappl10 152 5125 0 5123 1 0 1 1 0 8 0 amappl9 144 2585 0 2582 1 0 1 1 0 8 0 amappl8 136 2329 0 2246 4 1 3 3 0 8 0 amappl7 128 1533 0 1523 1 0 1 1 0 8 0 amappl6 120 2473 0 2462 1 0 1 1 0 8 0 amappl5 112 22260 0 22242 1 0 1 1 0 8 0 amappl4 104 1629 0 1599 1 0 1 1 0 8 0 amappl3 96 2512 0 2495 1 0 1 1 0 8 0 amappl2 88 20058 0 20013 3 1 2 3 0 8 0 amappl1 80 300527 0 300099 12 2 10 12 0 8 0 amappl 88 222905 0 222738 5 0 5 5 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 151 0 21 4 1 3 3 0 8 0 uaddrrnd 24 17036 0 17018 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 17036 0 17018 1 0 1 1 0 8 0 vmmpekpl 168 132116 0 132092 2 0 2 2 0 8 0 vmmpepl 168 1691933 0 1690256 323 238 85 98 0 357 1 vmsppl 368 17035 0 17018 2 0 2 2 0 8 0 rwobjpl 56 516438 0 509267 142 37 105 109 0 8 0 pdppl 4096 34080 0 34036 64 18 46 50 0 8 2 pvpl 32 10837557 0 10822020 775 614 161 207 0 265 12 pmappl 248 17035 0 17018 2 0 2 2 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 1386 0 437 28 0 28 28 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff827adff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828b6eb0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b6eb0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:90 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff828b6eb0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b6eb0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002449a4b0) at syscall+0x3ef mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff80002449a4b0) at syscall+0x3ef sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc7b4c8d3100, count: 6 ddb{0}> trace x86_ipi_db(ffffffff827adff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828b6eb0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b6eb0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:90 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff828b6eb0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b6eb0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002449a4b0) at syscall+0x3ef mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff80002449a4b0) at syscall+0x3ef sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc7b4c8d3100, count: -9 ddb{0}> machine ddbcpu 1 Stopped at uvm_fault_lower+0xbb1: movq 0(%rbx),%rdi uvm_fault_lower(ffff800022c740e0,ffff800022c74118,ffff800022c74060,0) at uvm_fault_lower+0xbb1 sys/uvm/uvm_fault.c:1325 uvm_fault(fffffd807efffcf0,20000000,0,2) at uvm_fault+0x24f sys/uvm/uvm_fault.c:640 upageflttrap(ffff800022c74250,20000000) at upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 usertrap(ffff800022c74250) at usertrap+0x214 sys/arch/amd64/amd64/trap.c:403 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffbdd10, count: 10 ddb{1}> trace uvm_fault_lower(ffff800022c740e0,ffff800022c74118,ffff800022c74060,0) at uvm_fault_lower+0xbb1 sys/uvm/uvm_fault.c:1325 uvm_fault(fffffd807efffcf0,20000000,0,2) at uvm_fault+0x24f sys/uvm/uvm_fault.c:640 upageflttrap(ffff800022c74250,20000000) at upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 usertrap(ffff800022c74250) at usertrap+0x214 sys/arch/amd64/amd64/trap.c:403 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffbdd10, count: -5