kernel: page fault trap, code=3 Stopped at copyout+0x57: repe movsq (%rsi),%es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *484878 41126 0 0 0x4000000 0 syz-executor copyout() at copyout+0x57 syscall(ffff80003c9afec0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9afec0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8b00d6ebe60, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: attempt to access user address 0x2000000002c0 in supervisor mode ddb> trace copyout() at copyout+0x57 syscall(ffff80003c9afec0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9afec0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8b00d6ebe60, count: -3 ddb> show registers rdi 0x2000000002c0 rsi 0xffff80003c9afd20 rbp 0xffff80003c9afdf0 rbx 0xffff80003c962fb8 rdx 0xffff80003c9aa000 rcx 0x12 rax 0x90 r8 0x7f7fffffc000 r9 0 r10 0x59b375ad89763772 r11 0xffffffff82e445f0 copy_fault r12 0xffff80003c9afec0 r13 0x13 r14 0xffff80003c962fb8 r15 0 rip 0xffffffff82e44517 copyout+0x57 cs 0x8 rflags 0x50206 acpi_pdirpa+0x3c077 rsp 0xffff80003c9afd10 ss 0x10 copyout+0x57: repe movsq (%rsi),%es:(%rdi) ddb> show proc PROC (syz-executor) tid=484878 pid=41126 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c9634e8,0xffff80003c963260 process=0xffff80003c955b20 user=0xffff80003c9aa000, vmspace=0xfffffd806bbbcd00 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 41126 352073 95948 0 2 0 syz-executor *41126 484878 95948 0 7 0x4000000 syz-executor 65543 291526 17219 0 2 0 syz-executor 65543 292667 17219 0 3 0x4000080 kqread syz-executor 65543 475308 17219 0 3 0x4000080 fsleep syz-executor 15702 397567 97031 0 2 0 syz-executor 15702 370009 97031 0 3 0x4000080 fsleep syz-executor 15702 457742 97031 0 3 0x4000080 fsleep syz-executor 15702 26254 97031 0 3 0x4000080 fsleep syz-executor 62305 90133 11786 0 2 0xc80 syz-executor 62305 270446 11786 0 3 0x4000080 kqsel syz-executor 62305 176916 11786 0 3 0x4000080 fsleep syz-executor 30955 199686 43271 0 2 0xc80 syz-executor 30955 343080 43271 0 3 0x4000080 ttyopn syz-executor 30955 152109 43271 0 3 0x4000080 fsleep syz-executor 38144 359461 0 0 3 0x14200 bored sosplice 97031 352521 83596 0 2 0xc82 syz-executor 53904 115518 83596 0 3 0x82 wait syz-executor 37626 461341 83596 0 2 0x2 syz-executor 5583 124019 83596 0 3 0x82 wait syz-executor 17219 499388 83596 0 3 0x82 nanoslp syz-executor 95948 12679 83596 0 2 0xc82 syz-executor 43271 316223 83596 0 3 0x82 nanoslp syz-executor 11786 98738 83596 0 2 0xc82 syz-executor 83596 220791 11985 0 3 0x82 kqread syz-executor 11985 231118 76532 0 3 0x10008a sigsusp ksh 76532 3501 57675 0 3 0x98 kqread sshd-session 57675 165505 11892 0 3 0x92 kqread sshd-session 69258 81423 1 0 3 0x100083 ttyin getty 11892 384333 1 0 3 0x88 kqread sshd 852 61299 95133 73 3 0x1100090 kqread syslogd 95133 368028 1 0 3 0x100082 sbwait syslogd 76520 75881 1 0 3 0x100080 kqread resolvd 8625 119603 0 0 3 0x14200 bored smr 22158 282909 0 0 2 0x14200 zerothread 44274 445689 0 0 3 0x14200 aiodoned aiodoned 465 470127 0 0 3 0x14200 syncer update 99465 496515 0 0 3 0x14200 cleaner cleaner 62526 384976 0 0 3 0x14200 reaper reaper 37776 145007 0 0 3 0x14200 pgdaemon pagedaemon 75713 53560 0 0 3 0x14200 bored viomb 45254 482408 0 0 3 0x40014200 acpi0 acpi0 57528 347553 0 0 3 0x14200 bored softnet7 63730 266936 0 0 3 0x14200 bored softnet6 36548 396083 0 0 3 0x14200 bored softnet5 74394 341057 0 0 3 0x14200 bored softnet4 77319 332067 0 0 3 0x14200 bored softnet3 92484 472511 0 0 3 0x14200 bored softnet2 97586 279020 0 0 3 0x14200 bored softnet1 50575 171518 0 0 2 0x14200 softnet0 6688 476059 0 0 3 0x14200 smrbar systqmp 4163 410425 0 0 3 0x14200 bored systq 73362 464907 0 0 3 0x40014200 tmoslp softclock 25384 81290 0 0 3 0x40014200 idle0 1 281354 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10185 11121K 11600K 166960K 11974 0 pcb 19 14K 16K 166960K 146 0 rtable 225 8K 8K 166960K 319 0 pf 31 13K 13K 166960K 63 0 ifaddr 42 7K 7K 166960K 62 0 ifgroup 50 2K 2K 166960K 91 0 sysctl 1 1K 9K 166960K 6 0 counters 32 17K 18K 166960K 54 0 ioctlops 0 0K 4K 166960K 152 0 iov 0 0K 16K 166960K 56 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1432 90K 90K 166960K 1763 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 7 0K 0K 166960K 17 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 97K 166960K 463 0 sigio 0 0K 0K 166960K 1 0 proc 54 43K 91K 166960K 498 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 31 0 in_multi 99 7K 7K 166960K 107 0 ether_multi 1 0K 0K 166960K 4 0 mrt 0 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 636 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 209 126K 167K 166960K 5613 0 UVM aobj 13 2K 2K 166960K 13 0 pinsyscall 32 64K 92K 166960K 1500 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 23 0 NDP 11 0K 2K 166960K 40 0 temp 53 8637K 8703K 166960K 20766 0 kqueue 8 14K 28K 166960K 88 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 90 0 89 2 0 2 2 0 8 1 rtentry 136 101 0 7 4 0 4 4 0 8 0 unpcb 144 228 0 218 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 102 0 97 2 0 2 2 0 8 1 arp 88 11 0 1 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 8 0 5 1 0 1 1 0 8 0 inpcb 328 524 0 452 13 0 13 13 0 8 6 ip6q 72 2 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 104 16 0 0 1 0 1 1 0 8 0 pkpcb 40 8 0 8 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 17 0 17 1 0 1 1 0 8 1 pppxif 1384 3 0 3 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 456 0 21 28 0 28 28 0 8 0 art_table 40 458 0 21 5 0 5 5 0 8 0 art_node 32 101 0 17 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 14 0 9 1 0 1 1 0 8 0 shmpl 112 10 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2214 0 714 95 0 95 95 0 8 0 ffsino 256 2214 0 714 95 0 95 95 0 8 0 nchpl 144 2865 0 1181 63 0 63 63 0 8 0 rtmask 32 3 0 3 1 0 1 1 0 8 1 uvmvnodes 80 2562 0 0 53 0 53 53 0 8 0 vnodes 216 2562 0 0 143 0 143 143 0 8 0 namei 1024 9170 0 9170 2 0 2 2 0 8 2 kstatmem 264 48 0 26 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 10131 0 10131 8 0 8 8 1 8 8 plimitpl 152 135 0 120 1 0 1 1 0 8 0 sigapl 424 750 0 703 7 0 7 7 0 8 1 knotepl 120 16114 0 16080 17 7 10 17 0 8 8 kqueuepl 184 137 0 128 1 0 1 1 0 8 0 pipepl 304 252 0 225 8 0 8 8 0 8 5 fdescpl 448 728 0 702 5 0 5 5 0 8 1 filepl 120 4038 0 3769 15 0 15 15 0 8 5 lockfpl 104 367 0 366 2 0 2 2 0 8 1 lockfspl 48 112 0 111 1 0 1 1 0 8 0 sessionpl 144 22 0 15 1 0 1 1 0 8 0 pgrppl 48 98 0 83 1 0 1 1 0 8 0 ucredpl 104 424 0 415 1 0 1 1 0 8 0 zombiepl 144 705 0 703 1 0 1 1 0 8 0 processpl 1152 750 0 703 5 0 5 5 0 8 1 procpl 664 1261 0 1204 6 0 6 6 0 8 0 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 552 863 0 780 12 0 12 12 0 8 5 mcl64k 65536 89 0 88 1 0 1 1 0 8 0 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 9 0 9 1 0 1 1 0 8 1 mcl4k 4096 2926 0 2869 14 0 14 14 0 8 6 mcl2k2 2112 2 0 2 1 0 1 1 0 8 1 mcl2k 2048 589 0 585 2 0 2 2 0 8 1 mtagpl 96 5 0 4 1 0 1 1 0 8 0 mbufpl 256 7905 0 7727 17 0 17 17 0 8 3 bufpl 280 3739 0 119 259 0 259 259 0 8 0 anonpl 24 143054 0 140268 45 0 45 45 0 187 21 amapchunkpl 152 18330 0 17852 35 0 35 35 0 158 12 amappl16 200 2985 0 2960 20 10 10 15 0 8 8 amappl15 192 5 0 4 1 0 1 1 0 8 0 amappl14 184 106 0 99 1 0 1 1 0 8 0 amappl13 176 9 0 9 1 0 1 1 0 8 1 amappl12 168 1341 0 1315 3 0 3 3 0 8 1 amappl11 160 45 0 41 1 0 1 1 0 8 0 amappl10 152 6 0 5 1 0 1 1 0 8 0 amappl9 144 246 0 246 1 0 1 1 0 8 1 amappl8 136 24 0 22 1 0 1 1 0 8 0 amappl7 128 108 0 101 1 0 1 1 0 8 0 amappl6 120 175 0 171 1 0 1 1 0 8 0 amappl5 112 113 0 109 1 0 1 1 0 8 0 amappl4 104 271 0 256 1 0 1 1 0 8 0 amappl3 96 3372 0 3268 4 0 4 4 0 8 0 amappl2 88 686 0 649 2 0 2 2 0 8 0 amappl1 80 9535 0 9075 14 0 14 14 0 8 1 amappl 88 4908 0 4746 5 0 5 5 0 92 1 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 7 0 7 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 12 0 0 1 0 1 1 0 8 0 uaddrrnd 24 728 0 702 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 728 0 702 1 0 1 1 0 8 0 vmmpekpl 168 7529 0 7502 2 0 2 2 0 8 0 vmmpepl 168 51998 0 50422 94 0 94 94 0 357 15 vmsppl 368 727 0 702 4 0 4 4 0 8 1 rwobjpl 40 19192 0 15901 35 0 35 35 0 8 0 pdppl 4096 1462 0 1404 100 34 66 82 0 8 8 pvpl 32 348428 0 340813 123 0 123 123 0 265 48 pmappl 216 727 0 702 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 377 0 34 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace copyout() at copyout+0x57 syscall(ffff80003c9afec0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9afec0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8b00d6ebe60, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace copyout() at copyout+0x57 syscall(ffff80003c9afec0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9afec0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8b00d6ebe60, count: -3