uvm_fault(0xfffffd800cbaf208, 0xfc0, 0, 2) -> e kernel: page fault trap, code=2 Stopped at copyout+0x57: repe movsq (%rsi),%es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *403272 35294 0 0 0x4000000 0 syz-executor 342203 29244 60929 0x1010 0x4080000 1K syz-executor copyout() at copyout+0x57 syscall(ffff80002b7f77d0) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002b7f77d0) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6e418149bc0, count: 12 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 *cpu0: uvm_fault(0xfffffd800cbaf208, 0xfc0, 0, 2) -> e ddb{0}> trace copyout() at copyout+0x57 syscall(ffff80002b7f77d0) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002b7f77d0) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6e418149bc0, count: -3 ddb{0}> show registers rdi 0xfc0 rsi 0xffff80002b7f7600 rbp 0xffff80002b7f76f0 rbx 0x8000782 __kernel_phys_end+0x4400782 rdx 0xffff80002b7f2000 rcx 0x4 rax 0x20 r8 0x7f7fffffc000 r9 0 r10 0x6f98a612c202186 r11 0xffffffff8330dba0 copy_fault r12 0x1 r13 0x16 r14 0xffff80002b7f77d0 r15 0xffff80002b7f7600 rip 0xffffffff8330dac7 copyout+0x57 cs 0x8 rflags 0x50202 acpi_pdirpa+0x3c073 rsp 0xffff80002b7f7430 ss 0x10 copyout+0x57: repe movsq (%rsi),%es:(%rdi) ddb{0}> show proc PROC (syz-executor) tid=403272 pid=35294 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=86, usrpri=86, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800039c1e028,0xffffffff83a08c18 process=0xffff800037c14020 user=0xffff80002b7f2000, vmspace=0xfffffd800cbaf208 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 81799 503924 89419 -1 2 0x10 syz-executor 81799 384295 89419 -1 3 0x4000090 fsleep syz-executor 32153 435471 85297 0 2 0 syz-executor 32153 356164 85297 0 3 0x4000080 fsleep syz-executor 32153 378751 85297 0 2 0x4000000 syz-executor 10876 481918 90031 0 2 0x1000000 syz-executor 10876 511301 90031 0 3 0x5000080 fsleep syz-executor 10876 454394 90031 0 3 0x5000080 fsleep syz-executor 10876 301768 90031 0 3 0x5000080 fsleep syz-executor 35294 252594 91740 0 2 0 syz-executor 35294 305115 91740 0 3 0x4000080 kqsel syz-executor 35294 300811 91740 0 3 0x4000080 kqread syz-executor *35294 403272 91740 0 7 0x4000000 syz-executor 13 406491 83046 0 2 0xc80 syz-executor 13 252753 83046 0 3 0x4000080 kqpoll syz-executor 13 56739 83046 0 3 0x4000080 fsleep syz-executor 49097 414357 0 0 3 0x14200 acct acct 91740 114150 40135 0 2 0xc82 syz-executor 29244 130601 44458 60929 3 0x3010 suspend syz-executor 29244 342203 44458 60929 7 0x4081010 syz-executor 29244 484745 44458 60929 3 0x4081010 inode syz-executor 35038 45181 1 0 3 0x80 nanoslp init 18351 314345 0 0 3 0x14200 bored sosplice 5738 44304 40135 0 2 0xc82 syz-executor 89419 46269 40135 0 2 0xc82 syz-executor 90031 284556 40135 0 2 0xc82 syz-executor 30904 129748 40135 0 3 0x82 wait syz-executor 85297 177398 40135 0 2 0xc82 syz-executor 44458 433701 40135 0 3 0x82 wait syz-executor 83046 31718 40135 0 2 0xc82 syz-executor 40135 211374 21812 0 3 0x82 kqread syz-executor 21812 54654 82261 0 3 0x10008a sigsusp ksh 82261 262348 70554 0 3 0x98 kqread sshd-session 70554 44345 39399 0 3 0x92 kqread sshd-session 39399 274698 1 0 3 0x88 kqread sshd 61316 270922 32183 74 3 0x1100092 bpf pflogd 32183 134981 1 0 3 0x80 sbwait pflogd 8078 42673 49524 73 3 0x1100090 kqread syslogd 49524 474586 1 0 3 0x100082 sbwait syslogd 19847 216089 1 0 3 0x100080 kqread resolvd 95447 485411 33371 77 3 0x100092 kqread dhcpleased 20747 109819 33371 77 3 0x100092 kqread dhcpleased 33371 265514 1 0 3 0x80 kqread dhcpleased 98311 431411 0 0 3 0x14200 bored smr 92497 291545 0 0 2 0x14200 zerothread 597 239491 0 0 3 0x14200 aiodoned aiodoned 86068 409039 0 0 3 0x14200 syncer update 22523 344546 0 0 3 0x14200 cleaner cleaner 72506 356470 0 0 3 0x14200 reaper reaper 29385 366847 0 0 3 0x14200 pgdaemon pagedaemon 29334 440795 0 0 3 0x14200 bored viomb 40748 91837 0 0 3 0x40014200 acpi0 acpi0 5199 83195 0 0 3 0x40014200 idle1 46014 487212 0 0 3 0x14200 bored softnet7 34141 240685 0 0 3 0x14200 bored softnet6 89003 378508 0 0 3 0x14200 bored softnet5 7725 149117 0 0 3 0x14200 bored softnet4 62564 510639 0 0 3 0x14200 bored softnet3 45735 326034 0 0 3 0x14200 bored softnet2 72702 517870 0 0 3 0x14200 bored softnet1 50216 260547 0 0 3 0x14200 bored softnet0 17877 137019 0 0 3 0x14200 bored systqmp 52084 146814 0 0 3 0x14200 bored systq 89569 150582 0 0 3 0x14200 tmoslp softclockmp 10528 470466 0 0 2 0x40014200 softclock 4407 434698 0 0 3 0x40014200 idle0 1 266796 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 29244 (syz-executor) thread 0xffff8000327f8540 (342203) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff838dfba0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 sleep_finish+0x2da sys/kern/kern_synch.c:366 #3 biowait+0xc1 sys/kern/vfs_bio.c:1242 #4 bwrite+0x2e5 sys/kern/vfs_bio.c:754 #5 ffs_write+0x830 sys/ufs/ffs/ffs_vnops.c:-1 #6 VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 #7 vn_write+0x1d4 sys/kern/vfs_vnops.c:408 #8 dofilewritev+0x23c sys/kern/sys_generic.c:380 #9 sys_write+0xa2 sys/kern/sys_generic.c:300 #10 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #10 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:748 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806f51dd78) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x42b sys/kern/kern_rwlock.c:319 #2 rrw_enter+0xc6 sys/kern/kern_rwlock.c:621 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:527 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:570 #5 vn_write+0x190 sys/kern/vfs_vnops.c:405 #6 dofilewritev+0x23c sys/kern/sys_generic.c:380 #7 sys_write+0xa2 sys/kern/sys_generic.c:300 #8 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #8 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:748 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10208 11114K 11756K 166960K 11784 0 pcb 17 18K 21K 166960K 195 0 rtable 201 7K 7K 166960K 316 0 pf 34 17K 81K 166960K 75 0 ifaddr 43 7K 8K 166960K 65 0 ifgroup 55 2K 2K 166960K 89 0 sysctl 2 1K 9K 166960K 6 0 counters 68 36K 37K 166960K 110 0 ioctlops 0 0K 4K 166960K 1532 0 iov 0 0K 16K 166960K 23 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1372 86K 86K 166960K 1757 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 14 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 106K 166960K 464 0 sigio 0 0K 0K 166960K 8 0 proc 63 99K 164K 166960K 610 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 30 0 in_multi 99 7K 7K 166960K 118 0 ether_multi 1 0K 0K 166960K 2 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 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 472 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 246 160K 169K 166960K 5806 0 UVM aobj 13 2K 2K 166960K 16 0 pinsyscall 42 84K 102K 166960K 1576 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 18 0 NDP 12 0K 2K 166960K 42 0 temp 52 8678K 8803K 166960K 22192 0 kqueue 13 20K 28K 166960K 104 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 59 0 56 1 0 1 1 0 8 0 rtentry 176 111 0 25 5 0 5 5 0 8 0 unpcb 144 213 0 195 2 0 2 2 0 8 1 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 157 0 149 7 0 7 7 0 8 6 arp 128 12 0 1 1 0 1 1 0 8 0 inpcb 328 540 0 525 10 0 10 10 0 8 8 nd6 144 20 0 2 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1192 18 0 18 1 0 1 1 0 8 1 pppxif 1504 1 0 1 1 0 1 1 0 8 1 pffrag 232 5 0 2 1 0 1 1 0 482 0 pffrnode 88 5 0 2 1 0 1 1 0 8 0 pffrent 40 8 0 5 1 0 1 1 0 8 0 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 33 0 0 1 0 1 1 0 8 0 pfstkey 128 33 0 0 2 0 2 2 0 8 0 pfstate 384 33 0 0 4 0 4 4 0 8 0 pfrule 1344 24 0 18 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 530 0 95 28 0 28 28 0 8 0 art_table 40 532 0 95 5 0 5 5 0 8 0 art_node 32 111 0 35 1 0 1 1 0 8 0 sysvmsgpl 40 39 0 37 1 0 1 1 0 8 0 semapl 112 12 0 2 1 0 1 1 0 8 0 shmpl 112 13 0 3 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2268 0 756 96 0 96 96 0 8 0 ffsino 296 2268 0 756 117 0 117 117 0 8 0 nchpl 144 2904 0 1207 64 0 64 64 0 8 0 rtmask 32 5 0 5 1 0 1 1 0 8 1 uvmvnodes 80 2526 0 0 52 0 52 52 0 8 0 vnodes 216 2526 0 0 141 0 141 141 0 8 0 namei 1024 10648 0 10648 2 0 2 2 0 8 2 percpumem 16 70 0 21 1 0 1 1 0 8 0 kstatmem 264 50 0 24 3 0 3 3 0 8 1 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 17975 0 17974 9 1 8 8 1 8 7 plimitpl 152 197 0 178 1 0 1 1 0 8 0 sigapl 424 763 0 707 7 0 7 7 0 8 0 knotepl 120 317 0 0 10 0 10 10 0 8 0 kqueuepl 224 142 0 128 2 0 2 2 0 8 1 pipepl 344 131 0 104 3 0 3 3 0 8 0 fdescpl 528 739 0 707 3 0 3 3 0 8 0 filepl 160 3930 0 3635 17 0 17 17 0 8 4 lockfpl 104 130 0 128 1 0 1 1 0 8 0 lockfspl 48 61 0 59 1 0 1 1 0 8 0 sessionpl 144 26 0 18 1 0 1 1 0 8 0 pgrppl 48 38 0 22 1 0 1 1 0 8 0 ucredpl 104 770 0 754 1 0 1 1 0 8 0 zombiepl 144 709 0 707 1 0 1 1 0 8 0 processpl 1248 763 0 707 5 0 5 5 0 8 0 procpl 656 1311 0 1242 7 0 7 7 0 8 0 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 752 825 0 789 15 2 13 15 0 8 8 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 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 128 0 0 16 0 16 16 0 8 0 mcl2k 2048 26 0 0 4 0 4 4 0 8 0 mtagpl 96 12 0 0 1 0 1 1 0 8 0 mbufpl 256 188 0 0 12 0 12 12 0 8 0 bufpl 280 7783 0 1641 439 0 439 439 0 8 0 anonpl 32 10467 0 0 85 0 85 85 0 246 0 amapchunkpl 152 18799 0 18265 30 1 29 29 0 158 5 amappl16 200 3227 0 2956 34 13 21 21 0 8 0 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 122 0 110 1 0 1 1 0 8 0 amappl13 176 3 0 3 1 1 0 1 0 8 0 amappl12 168 1426 0 1395 4 2 2 3 0 8 0 amappl11 160 49 0 35 1 0 1 1 0 8 0 amappl10 152 20 0 20 1 1 0 1 0 8 0 amappl9 144 261 0 261 1 1 0 1 0 8 0 amappl8 136 26 0 24 1 0 1 1 0 8 0 amappl7 128 111 0 99 1 0 1 1 0 8 0 amappl6 120 189 0 185 1 0 1 1 0 8 0 amappl5 112 129 0 119 1 0 1 1 0 8 0 amappl4 104 319 0 298 1 0 1 1 0 8 0 amappl3 96 3373 0 3259 5 1 4 4 0 8 1 amappl2 88 674 0 614 2 0 2 2 0 8 0 amappl1 80 10069 0 9486 15 0 15 15 0 8 0 amappl 88 5036 0 4860 5 0 5 5 0 92 0 dma8192 8192 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 253 0 253 1 1 0 1 0 8 0 dma64 64 7 0 7 2 1 1 1 0 8 1 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 15 0 3 1 0 1 1 0 8 0 uaddrrnd 24 739 0 707 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 739 0 707 1 0 1 1 0 8 0 vmmpekpl 168 7678 0 7642 3 0 3 3 0 8 0 vmmpepl 168 53977 0 51729 109 0 109 109 0 357 6 vmsppl 488 738 0 707 5 0 5 5 0 8 0 rwobjpl 80 20089 0 16404 76 0 76 76 0 8 0 pdppl 4096 1485 0 1414 97 24 73 83 0 8 2 pvpl 32 18741 0 0 152 0 152 152 0 265 0 pmappl 256 738 0 707 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 278 0 26 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace copyout() at copyout+0x57 syscall(ffff80002b7f77d0) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002b7f77d0) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6e418149bc0, count: -3 ddb{0}> machine ddbcpu 1