kernel: page fault trap, code=3 Stopped at copyout+0x57: repe movsq (%rsi),%es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *481077 21693 0 0 0x4000000 0 syz-executor copyout() at copyout+0x57 syscall(ffff80003153be10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003153be10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdf3486d7e50, 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 0x2000000007e0 in supervisor mode ddb> trace copyout() at copyout+0x57 syscall(ffff80003153be10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003153be10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdf3486d7e50, count: -3 ddb> show registers rdi 0x2000000007e0 rsi 0xffff80003153bb80 rbp 0xffff80003153bd40 rbx 0xfffb413a rdx 0xffff800031536000 rcx 0x4 rax 0x20 r8 0x7f7fffffc000 r9 0 r10 0x3997515c8b51125f r11 0xffffffff81abd2d0 copy_fault r12 0 r13 0x16 r14 0xffff80003153bb80 r15 0xffff80003153be10 rip 0xffffffff81abd1f7 copyout+0x57 cs 0x8 rflags 0x50202 acpi_pdirpa+0x3c073 rsp 0xffff80003153ba90 ss 0x10 copyout+0x57: repe movsq (%rsi),%es:(%rdi) ddb> show proc PROC (syz-executor) tid=481077 pid=21693 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c97d260,0xffff80003c97d7a0 process=0xffff80003c972000 user=0xffff800031536000, vmspace=0xfffffd806ba47740 estcpu=22, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 87485 452757 85792 0 2 0 syz-executor 87485 383355 85792 0 2 0x4000000 syz-executor 62545 213068 35261 0 2 0 syz-executor 62545 516685 35261 0 3 0x4000080 fsleep syz-executor 21693 12905 11245 0 2 0xc80 syz-executor *21693 481077 11245 0 7 0x4000000 syz-executor 21693 25648 11245 0 3 0x4000080 fsleep syz-executor 21693 511248 11245 0 3 0x4000080 fsleep syz-executor 84297 330843 23115 0 2 0 syz-executor 84297 386478 23115 0 3 0x4000080 fsleep syz-executor 91380 196118 65638 0 2 0 syz-executor 17700 352684 13357 0 4 0x82000 syz-executor 17700 250678 13357 0 2 0x4082000 syz-executor 17700 469825 13357 0 3 0x4002000 suspend syz-executor 86009 170999 42129 0 3 0x3000 suspend syz-executor 86009 251747 42129 0 2 0x4081000 syz-executor 86009 11432 42129 0 2 0x4081c00 syz-executor 86516 19726 0 0 3 0x14200 acct acct 42409 430061 0 0 3 0x14280 nfsidl nfsio 44318 200385 0 0 3 0x14280 nfsidl nfsio 91548 366567 0 0 3 0x14280 nfsidl nfsio 88832 146450 0 0 3 0x14280 nfsidl nfsio 2314 164941 0 0 3 0x14280 nfsidl nfsio 49168 300753 0 0 3 0x14280 nfsidl nfsio 22987 224731 0 0 3 0x14280 nfsidl nfsio 91473 295766 0 0 3 0x14280 nfsidl nfsio 33873 510773 0 0 3 0x14280 nfsidl nfsio 51319 384749 0 0 3 0x14280 nfsidl nfsio 31089 213792 0 0 3 0x14280 nfsidl nfsio 39504 385385 0 0 3 0x14280 nfsidl nfsio 68359 31948 0 0 3 0x14280 nfsidl nfsio 25355 298244 0 0 3 0x14280 nfsidl nfsio 49877 175534 0 0 3 0x14280 nfsidl nfsio 71685 483105 0 0 3 0x14280 nfsidl nfsio 45530 205447 0 0 3 0x14280 nfsidl nfsio 82130 420726 0 0 3 0x14280 nfsidl nfsio 9278 454073 0 0 3 0x14280 nfsidl nfsio 52992 170292 0 0 3 0x14280 nfsidl nfsio 62238 484442 0 0 3 0x14200 bored sosplice 42129 19218 85968 0 2 0xc82 syz-executor 35261 295876 85968 0 2 0xc82 syz-executor 23115 513903 85968 0 2 0xc82 syz-executor 11245 227766 85968 0 2 0xc82 syz-executor 85792 488934 85968 0 3 0x82 nanoslp syz-executor 13357 291224 85968 0 3 0x82 nanoslp syz-executor 65638 67664 85968 0 2 0xc82 syz-executor 20335 183788 85968 0 2 0x2 syz-executor 85968 316607 3305 0 3 0x82 kqread syz-executor 3305 360355 12512 0 3 0x10008a sigsusp ksh 12512 386242 55646 0 3 0x98 kqread sshd-session 55646 40110 89631 0 3 0x92 kqread sshd-session 47991 482459 1 0 3 0x100083 ttyin getty 89631 333426 1 0 3 0x88 kqread sshd 28829 42255 74078 73 3 0x1100090 kqread syslogd 74078 182604 1 0 3 0x100082 sbwait syslogd 33681 516132 1 0 3 0x100080 kqread resolvd 6629 275721 35090 77 3 0x100092 kqread dhcpleased 74623 205622 35090 77 3 0x100092 kqread dhcpleased 35090 480038 1 0 3 0x80 kqread dhcpleased 97922 330846 0 0 3 0x14200 bored smr 26205 15730 0 0 2 0x14200 zerothread 59210 251439 0 0 3 0x14200 aiodoned aiodoned 62664 117652 0 0 3 0x14200 syncer update 76143 408818 0 0 3 0x14200 cleaner cleaner 52253 132186 0 0 3 0x14200 reaper reaper 33736 291988 0 0 3 0x14200 pgdaemon pagedaemon 89858 516097 0 0 3 0x14200 bored viomb 44672 88660 0 0 3 0x40014200 acpi0 acpi0 49851 441386 0 0 3 0x14200 bored softnet7 15674 13046 0 0 3 0x14200 bored softnet6 41639 122658 0 0 3 0x14200 bored softnet5 75019 290629 0 0 3 0x14200 bored softnet4 96934 90982 0 0 3 0x14200 bored softnet3 41138 108569 0 0 3 0x14200 bored softnet2 45077 212381 0 0 3 0x14200 bored softnet1 61365 307261 0 0 3 0x14200 bored softnet0 56281 114602 0 0 3 0x14200 bored systqmp 88703 86413 0 0 3 0x14200 bored systq 64197 258505 0 0 2 0x40014200 softclock 71488 87747 0 0 3 0x40014200 idle0 1 381021 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10195 11254K 12203K 166960K 11793 0 pcb 18 14K 16K 166960K 191 0 rtable 197 6K 6K 166960K 289 0 pf 31 13K 19K 166960K 45 0 ifaddr 42 7K 7K 166960K 49 0 ifgroup 50 2K 2K 166960K 58 0 sysctl 4 1K 9K 166960K 8 0 counters 32 17K 17K 166960K 37 0 ioctlops 0 0K 2K 166960K 117 0 iov 0 0K 12K 166960K 7 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1402 88K 89K 166960K 1616 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 6 0K 0K 166960K 7 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 97K 166960K 305 0 sigio 0 0K 0K 166960K 3 0 proc 60 59K 124K 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 0 0K 0K 166960K 23 0 in_multi 99 7K 7K 166960K 108 0 ether_multi 1 0K 0K 166960K 4 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 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 366 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 224 159K 168K 166960K 4273 0 UVM aobj 12 2K 4K 166960K 13 0 pinsyscall 38 76K 96K 166960K 1327 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 9 0 NDP 11 0K 2K 166960K 31 0 temp 71 8639K 8703K 166960K 13529 0 kqueue 14 22K 31K 166960K 59 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 48 0 45 1 0 1 1 0 8 0 rtentry 136 101 0 15 4 0 4 4 0 8 0 unpcb 144 274 0 256 3 0 3 3 0 8 2 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 736 99 0 61 4 0 4 4 0 8 0 arp 88 12 0 1 1 0 1 1 0 8 0 inpcb 328 357 0 314 7 0 7 7 0 8 3 nd6 104 17 0 0 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 5 0 5 1 0 1 1 0 8 1 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 478 0 44 28 0 28 28 0 8 0 art_table 40 479 0 44 5 0 5 5 0 8 0 art_node 32 101 0 25 1 0 1 1 0 8 0 semapl 112 5 0 1 1 0 1 1 0 8 0 shmpl 112 10 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1936 0 437 95 0 95 95 0 8 0 ffsino 256 1936 0 437 95 0 95 95 0 8 0 nchpl 144 2392 0 712 63 0 63 63 0 8 0 uvmvnodes 80 2153 0 0 44 0 44 44 0 8 0 vnodes 216 2153 0 0 120 0 120 120 0 8 0 namei 1024 7759 0 7759 2 0 2 2 0 8 2 kstatmem 264 30 0 8 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 9133 0 9133 8 0 8 8 1 8 8 plimitpl 152 111 0 94 1 0 1 1 0 8 0 sigapl 424 608 0 537 9 0 9 9 0 8 0 knotepl 120 9204 0 9155 9 0 9 9 0 8 7 kqueuepl 184 133 0 121 4 0 4 4 0 8 3 pipepl 304 146 0 118 5 0 5 5 0 8 2 fdescpl 448 566 0 537 5 0 5 5 0 8 1 filepl 120 3324 0 3040 12 0 12 12 0 8 3 lockfpl 104 153 0 150 1 0 1 1 0 8 0 lockfspl 48 43 0 40 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 31 0 15 1 0 1 1 0 8 0 ucredpl 104 464 0 453 1 0 1 1 0 8 0 zombiepl 144 538 0 537 1 0 1 1 0 8 0 processpl 1168 608 0 537 6 0 6 6 0 8 0 procpl 664 879 0 798 8 0 8 8 0 8 0 sosppl 168 1 0 1 1 0 1 1 0 8 1 sockpl 552 722 0 658 12 1 11 12 0 8 6 mcl64k 65536 45 0 45 1 0 1 1 0 8 1 mcl8k 8192 6 0 6 1 0 1 1 0 8 1 mcl4k 4096 2637 0 2582 14 0 14 14 0 8 6 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 428 0 423 1 0 1 1 0 8 0 mtagpl 96 5 0 4 1 0 1 1 0 8 0 mbufpl 256 5555 0 5392 12 0 12 12 0 8 0 bufpl 280 4428 0 117 308 0 308 308 0 8 0 anonpl 24 115105 0 111262 45 0 45 45 0 187 18 amapchunkpl 152 13033 0 12566 23 0 23 23 0 158 4 amappl16 200 2251 0 2177 14 4 10 14 0 8 6 amappl15 192 5 0 5 1 0 1 1 0 8 1 amappl14 184 103 0 93 1 0 1 1 0 8 0 amappl13 176 9 0 9 1 0 1 1 0 8 1 amappl12 168 1170 0 1142 3 0 3 3 0 8 1 amappl11 160 51 0 40 1 0 1 1 0 8 0 amappl10 152 18 0 17 1 0 1 1 0 8 0 amappl9 144 253 0 253 1 0 1 1 0 8 1 amappl8 136 21 0 20 1 0 1 1 0 8 0 amappl7 128 108 0 98 1 0 1 1 0 8 0 amappl6 120 191 0 188 1 0 1 1 0 8 0 amappl5 112 122 0 116 1 0 1 1 0 8 0 amappl4 104 271 0 257 1 0 1 1 0 8 0 amappl3 96 2324 0 2220 3 0 3 3 0 8 0 amappl2 88 609 0 556 2 0 2 2 0 8 0 amappl1 80 8568 0 8022 13 0 13 13 0 8 1 amappl 88 3602 0 3444 4 0 4 4 0 92 0 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 254 0 254 1 0 1 1 0 8 1 dma64 64 7 0 7 1 0 1 1 0 8 1 dma32 32 8 0 8 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 12 0 1 1 0 1 1 0 8 0 uaddrrnd 24 566 0 537 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 566 0 537 1 0 1 1 0 8 0 vmmpekpl 168 6041 0 6013 2 0 2 2 0 8 0 vmmpepl 168 42053 0 40180 92 0 92 92 0 357 8 vmsppl 368 565 0 537 4 0 4 4 0 8 1 rwobjpl 40 16237 0 13189 32 0 32 32 0 8 0 pdppl 4096 1138 0 1074 94 28 66 82 0 8 2 pvpl 32 265978 0 256972 114 0 114 114 0 265 27 pmappl 216 565 0 537 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 370 0 28 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace copyout() at copyout+0x57 syscall(ffff80003153be10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003153be10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdf3486d7e50, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace copyout() at copyout+0x57 syscall(ffff80003153be10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003153be10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdf3486d7e50, count: -3