kernel: page fault trap, code=3 Stopped at copyout+0x57: repe movsq (%rsi),%es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND * 5261 93110 0 0 0x4000000 0 syz-executor copyout() at copyout+0x57 syscall(ffff80003c4437d0) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4437d0) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x853004ff520, 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: attempt to access user address 0x200000000ab0 in supervisor mode ddb{0}> trace copyout() at copyout+0x57 syscall(ffff80003c4437d0) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4437d0) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x853004ff520, count: -3 ddb{0}> show registers rdi 0x200000000ab0 rsi 0xffff80003c443610 rbp 0xffff80003c4436f0 rbx 0x200000000ab0 rdx 0xffff80003c43e000 rcx 0x7 rax 0x38 r8 0x7f7fffffc000 r9 0 r10 0x3e0c0739578fd033 r11 0xffffffff82f33900 copy_fault r12 0xa r13 0 r14 0xa r15 0 rip 0xffffffff82f33827 copyout+0x57 cs 0x8 rflags 0x50202 acpi_pdirpa+0x3c073 rsp 0xffff80003c443570 ss 0x10 copyout+0x57: repe movsq (%rsi),%es:(%rdi) ddb{0}> show proc PROC (syz-executor) tid=5261 pid=93110 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=24, usrpri=50, slppri=24, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800039ff19e0,0xffff80003c01b4c0 process=0xffff80003c01f568 user=0xffff80003c43e000, vmspace=0xfffffd807194fd50 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 40019 353708 98992 0 2 0 syz-executor 40019 65594 98992 0 3 0x4000080 fsleep syz-executor 40019 380801 98992 0 3 0x4000080 fsleep syz-executor 73173 68581 36168 0 2 0 syz-executor 73173 59007 36168 0 3 0x4000080 fsleep syz-executor 69069 187346 0 0 3 0x14200 acct acct 93110 53829 43183 0 2 0 syz-executor *93110 5261 43183 0 7 0x4000000 syz-executor 93110 71878 43183 0 2 0x4000080 syz-executor 93110 305751 43183 0 2 0x4000000 syz-executor 7526 205673 3574 60929 2 0x10 syz-executor 7526 320568 3574 60929 3 0x4000090 fsleep syz-executor 62230 190905 0 0 3 0x14280 nfsidl nfsio 16403 91699 0 0 3 0x14280 nfsidl nfsio 75997 68043 0 0 3 0x14280 nfsidl nfsio 3396 90331 0 0 3 0x14280 nfsidl nfsio 89433 241090 0 0 3 0x14280 nfsidl nfsio 99620 400218 0 0 3 0x14280 nfsidl nfsio 54203 89490 0 0 3 0x14280 nfsidl nfsio 21679 391009 0 0 3 0x14280 nfsidl nfsio 3202 381137 0 0 3 0x14280 nfsidl nfsio 45385 79572 0 0 3 0x14280 nfsidl nfsio 36998 465297 0 0 3 0x14280 nfsidl nfsio 12421 408580 0 0 3 0x14280 nfsidl nfsio 26300 210320 0 0 3 0x14280 nfsidl nfsio 91592 244728 0 0 3 0x14280 nfsidl nfsio 48181 523808 0 0 3 0x14280 nfsidl nfsio 28536 512579 0 0 3 0x14280 nfsidl nfsio 18686 256354 0 0 3 0x14280 nfsidl nfsio 91015 175665 0 0 3 0x14280 nfsidl nfsio 65851 335863 0 0 3 0x14280 nfsidl nfsio 87876 217979 0 0 3 0x14280 nfsidl nfsio 5235 406614 1 0 3 0x100083 ttyin getty 3574 279414 10239 0 3 0x82 nanoslp syz-executor 43183 460243 10239 0 3 0x82 nanoslp syz-executor 56846 467440 10239 0 3 0x82 nanoslp syz-executor 73779 333389 10239 0 3 0x82 wait syz-executor 7198 166353 0 0 3 0x14200 bored sosplice 98992 50791 10239 0 3 0x82 nanoslp syz-executor 6302 194579 10239 0 2 0x2 syz-executor 62964 389317 10239 0 2 0x2 syz-executor 36168 150730 10239 0 3 0x82 nanoslp syz-executor 10239 163041 17665 0 3 0x82 kqread syz-executor 17665 126020 64836 0 3 0x10008a sigsusp ksh 64836 227919 95220 0 3 0x98 kqread sshd-session 95220 271179 52621 0 3 0x92 kqread sshd-session 52621 213697 1 0 3 0x88 kqread sshd 43456 516312 76799 74 3 0x1100092 bpf pflogd 76799 325020 1 0 3 0x80 sbwait pflogd 60171 470013 29652 73 3 0x1100090 kqread syslogd 29652 152700 1 0 3 0x100082 sbwait syslogd 22333 372941 1 0 3 0x100080 kqread resolvd 24463 201845 27243 77 3 0x100092 kqread dhcpleased 7665 242577 27243 77 3 0x100092 kqread dhcpleased 27243 325355 1 0 3 0x80 kqread dhcpleased 62402 135126 0 0 3 0x14200 bored smr 24425 490300 0 0 2 0x14200 zerothread 60829 388023 0 0 3 0x14200 aiodoned aiodoned 51284 40512 0 0 3 0x14200 syncer update 76567 206803 0 0 3 0x14200 cleaner cleaner 14682 399738 0 0 3 0x14200 reaper reaper 49948 355517 0 0 3 0x14200 pgdaemon pagedaemon 78282 457918 0 0 3 0x14200 bored viomb 68834 504574 0 0 3 0x40014200 acpi0 acpi0 16760 19949 0 0 7 0x40014200 idle1 51696 143887 0 0 3 0x14200 bored softnet3 46908 382730 0 0 3 0x14200 bored softnet2 93378 399942 0 0 3 0x14200 bored softnet1 16111 311611 0 0 3 0x14200 bored softnet0 93986 221323 0 0 3 0x14200 bored systqmp 60733 116769 0 0 3 0x14200 bored systq 15876 452119 0 0 3 0x14200 tmoslp softclockmp 75007 58408 0 0 3 0x40014200 tmoslp softclock 8962 314357 0 0 3 0x40014200 idle0 1 116309 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 6302 (syz-executor) thread 0xffff80002a297c50 (194579) Process 62964 (syz-executor) thread 0xffff8000ffff2a50 (389317) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10604 12935K 12935K 166960K 15394 0 pcb 17 18K 26K 166960K 848 0 rtable 243 14K 15K 166960K 841 0 pf 46 19K 83K 166960K 245 0 ifaddr 46 8K 8K 166960K 159 0 ifgroup 71 3K 3K 166960K 282 0 sysctl 3 1K 9K 166960K 22 0 counters 74 37K 38K 166960K 300 0 ioctlops 0 0K 4K 166960K 2052 0 iov 1 4K 24K 166960K 253 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1547 97K 97K 166960K 3834 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 80 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 186 0 dirhash 15 2K 3K 166960K 81 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 93K 166960K 3281 0 sigio 0 0K 0K 166960K 96 0 proc 77 103K 140K 166960K 989 0 subproc 72 4K 4K 166960K 119 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 495 0 in_multi 86 6K 7K 166960K 265 0 ether_multi 1 0K 0K 166960K 34 0 mrt 2 0K 0K 166960K 17 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 1104 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 6 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 242 160K 179K 166960K 30932 0 UVM aobj 64 4K 6K 166960K 70 0 pinsyscall 41 82K 103K 166960K 4520 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 3 0K 1K 166960K 257 0 NDP 15 0K 2K 166960K 113 0 temp 79 8696K 8808K 166960K 151377 0 kqueue 13 20K 39K 166960K 556 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 319 0 316 4 2 2 3 0 8 1 rtentry 176 234 0 138 6 0 6 6 0 8 0 unpcb 144 2353 0 2335 21 15 6 6 0 8 5 syncache 336 6 0 6 2 2 0 1 0 8 0 tcpcb 736 1341 0 1321 23 20 3 13 0 8 0 arp 128 41 0 25 1 0 1 1 0 8 0 inpcb 328 4256 0 4232 42 34 8 20 0 8 5 nd6 144 50 0 23 2 0 2 2 0 8 0 pkpcb 40 30 0 30 7 6 1 1 0 8 1 kcovpl 48 13 0 5 1 0 1 1 0 8 0 ppxss 1192 85 0 85 6 5 1 1 0 8 1 pppxif 1504 11 0 11 5 4 1 1 0 8 1 pfstscr 40 2 0 2 2 2 0 1 0 8 0 pffrag 232 26 0 13 1 0 1 1 0 482 0 pffrnode 88 25 0 13 1 0 1 1 0 8 0 pffrent 40 55 0 42 1 0 1 1 0 8 0 pfosfp 40 1429 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1429 0 714 21 0 21 21 0 8 0 pfrktable 1344 5 0 1 1 0 1 1 0 8 0 pfanchor 1288 7 0 0 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 265 0 100 1 0 1 1 0 8 0 pfstkey 128 269 0 104 6 0 6 6 0 8 0 pfstate 384 267 0 102 17 0 17 17 0 8 0 pfrule 1344 32 0 21 2 1 1 2 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 993 0 616 35 7 28 30 0 8 0 art_table 32 995 0 616 4 0 4 4 0 8 0 art_node 16 226 0 148 1 0 1 1 0 8 0 sysvmsgpl 40 56 0 18 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 180 0 170 1 0 1 1 0 8 0 shmpl 112 67 0 6 2 0 2 2 0 8 0 dirhash 1024 64 0 45 3 0 3 3 0 8 0 dino2pl 256 7218 0 5704 96 0 96 96 0 8 0 ffsino 288 7218 0 5704 109 0 109 109 0 8 0 nchpl 144 11703 0 11157 64 33 31 64 0 8 6 rtmask 32 18 0 18 4 3 1 1 0 8 1 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 42971 0 42970 6 5 1 2 0 8 0 percpumem 16 165 0 113 1 0 1 1 0 8 0 pfiaddrpl 120 1 0 0 1 0 1 1 0 8 0 kstatmem 264 178 0 142 5 2 3 3 0 8 0 acpiwqpl 32 3 0 3 1 0 1 1 1 8 1 scsiplug 72 12 0 12 6 5 1 1 0 8 1 scxspl 216 53743 0 53743 15 13 2 8 1 8 2 plimitpl 152 923 0 906 1 0 1 1 0 8 0 sigapl 424 3650 0 3580 11 2 9 10 0 8 0 knotepl 120 611 0 0 18 0 18 18 0 8 0 kqueuepl 224 1202 0 1192 14 9 5 5 0 8 4 pipepl 336 581 0 554 16 13 3 8 0 8 0 fdescpl 520 3558 0 3528 3 0 3 3 0 8 0 filepl 160 25737 0 25427 62 45 17 24 0 8 3 lockfpl 104 1542 0 1540 2 0 2 2 0 8 1 lockfspl 48 451 0 449 1 0 1 1 0 8 0 sessionpl 144 34 0 25 1 0 1 1 0 8 0 pgrppl 48 90 0 73 1 0 1 1 0 8 0 ucredpl 104 3267 0 3252 1 0 1 1 0 8 0 zombiepl 144 3582 0 3580 2 1 1 1 0 8 0 processpl 1240 3650 0 3580 7 0 7 7 0 8 1 procpl 656 8756 0 8679 11 2 9 9 0 8 1 srpgc 96 12 0 12 5 5 0 1 0 8 0 sosppl 168 14 0 14 3 2 1 1 0 8 1 sockpl 728 7211 0 7166 73 59 14 32 0 8 8 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 118 0 0 15 0 15 15 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 32 0 0 4 0 4 4 0 8 0 mtagpl 96 99 0 0 3 0 3 3 0 8 0 mbufpl 256 1315 0 0 81 0 81 81 0 8 0 bufpl 280 17939 0 11797 440 0 440 440 0 8 0 anonpl 32 17523 0 0 141 0 141 141 0 246 0 amapchunkpl 152 106531 0 105962 60 28 32 34 0 158 6 amappl16 200 7974 0 7906 68 52 16 34 0 8 8 amappl15 192 5 0 5 2 2 0 1 0 8 0 amappl14 184 179 0 167 1 0 1 1 0 8 0 amappl13 176 7 0 7 3 2 1 1 0 8 1 amappl12 168 4285 0 4254 4 2 2 3 0 8 0 amappl11 160 68 0 54 1 0 1 1 0 8 0 amappl10 152 5 0 4 2 1 1 1 0 8 0 amappl9 144 275 0 275 1 1 0 1 0 8 0 amappl8 136 20 0 17 1 0 1 1 0 8 0 amappl7 128 203 0 190 1 0 1 1 0 8 0 amappl6 120 238 0 234 1 0 1 1 0 8 0 amappl5 112 145 0 134 1 0 1 1 0 8 0 amappl4 104 349 0 325 1 0 1 1 0 8 0 amappl3 96 22173 0 22065 6 2 4 4 0 8 0 amappl2 88 738 0 675 2 0 2 2 0 8 0 amappl1 80 22546 0 21943 17 2 15 16 0 8 0 amappl 88 29580 0 29410 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 1 0 1 0 8 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 8 0 8 3 3 0 1 0 8 0 dma128 128 256 0 256 4 4 0 1 0 8 0 dma64 64 9 0 9 3 3 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 22 0 21 1 0 1 1 0 8 0 aobjpl 72 69 0 6 2 0 2 2 0 8 0 uaddrrnd 24 3558 0 3528 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3558 0 3528 1 0 1 1 0 8 0 vmmpekpl 168 28234 0 28178 3 0 3 3 0 8 0 vmmpepl 168 219998 0 217988 131 28 103 106 0 357 6 vmsppl 480 3557 0 3528 8 4 4 5 0 8 0 rwobjpl 72 57447 0 50469 139 5 134 137 0 8 2 pdppl 4096 7123 0 7056 127 56 71 85 0 8 4 pvpl 32 23839 0 0 192 0 192 192 0 265 0 pmappl 256 3557 0 3528 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 532 0 108 13 0 13 13 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace copyout() at copyout+0x57 syscall(ffff80003c4437d0) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4437d0) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x853004ff520, count: -3 ddb{0}> machine ddbcpu 1