kernel: page fault trap, code=3 Stopped at copyout+0x57: repe movsq (%rsi),%es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *185063 49998 -1 0x10 0x4000000 0 syz-executor copyout() at copyout+0x57 syscall(ffff800038161e80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038161e80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa7d2cfb1bf0, 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 0x200000000220 in supervisor mode ddb> trace copyout() at copyout+0x57 syscall(ffff800038161e80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038161e80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa7d2cfb1bf0, count: -3 ddb> show registers rdi 0x200000000220 rsi 0xffff800038161b70 rbp 0xffff800038161db0 rbx 0x12 rdx 0xffff80003815c000 rcx 0x4 rax 0x20 r8 0x7f7fffffc000 r9 0 r10 0x7275fdddeab4be83 r11 0xffffffff817f0790 copy_fault r12 0x4 r13 0x16 r14 0xffff800038161b70 r15 0xffff800038161e80 rip 0xffffffff817f06b7 copyout+0x57 cs 0x8 rflags 0x50202 acpi_pdirpa+0x3c073 rsp 0xffff800038161b00 ss 0x10 copyout+0x57: repe movsq (%rsi),%es:(%rdi) ddb> show proc PROC (syz-executor) tid=185063 pid=49998 tcnt=2 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a822fa8,0xffff80002a7f94f0 process=0xffff80002ed30928 user=0xffff80003815c000, vmspace=0xfffffd806ba42b90 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 1911 410665 61773 0 2 0 syz-executor 1911 254777 61773 0 3 0x4000080 fsleep syz-executor 95141 341270 7176 0 2 0 syz-executor 95141 378441 7176 0 3 0x4000080 fsleep syz-executor 49998 195403 3026 -1 2 0x10 syz-executor *49998 185063 3026 -1 7 0x4000010 syz-executor 96224 19856 52135 0 2 0 syz-executor 96224 433612 52135 0 2 0x4000000 syz-executor 79457 210666 0 0 3 0x14200 bored sosplice 35624 205090 18102 0 3 0x80 nanoslp syz-executor 35624 426189 18102 0 3 0x4000080 kqsel syz-executor 35624 99193 18102 0 3 0x4000080 fsleep syz-executor 71263 482355 74788 0 2 0xc80 syz-executor 71263 301650 74788 0 3 0x4000080 msgwait syz-executor 71263 163177 74788 0 3 0x4000080 msgwait syz-executor 71263 187766 74788 0 3 0x4000080 fsleep syz-executor 33567 158169 78182 0 2 0x4000c80 syz-executor 33567 364323 78182 0 3 0x4000080 nanoslp syz-executor 33567 89273 78182 0 3 0x4000080 fsleep syz-executor 18102 486416 5255 0 3 0x82 nanoslp syz-executor 74788 266682 5255 0 2 0xc82 syz-executor 52135 382274 5255 0 2 0xc82 syz-executor 61773 215672 5255 0 2 0xc82 syz-executor 3026 21713 5255 0 3 0x82 nanoslp syz-executor 7176 496602 5255 0 2 0xc82 syz-executor 78182 63269 5255 0 2 0xc82 syz-executor 46758 520780 5255 0 2 0x2 syz-executor 5255 436797 4287 0 3 0x82 kqread syz-executor 4287 431288 27922 0 3 0x10008a sigsusp ksh 27922 22550 46009 0 3 0x98 kqread sshd-session 46009 483406 41042 0 3 0x92 kqread sshd-session 28517 486373 1 0 3 0x100083 ttyopn getty 41042 78906 1 0 3 0x88 kqread sshd 38210 491260 11885 73 3 0x1100090 kqread syslogd 11885 69310 1 0 3 0x100082 sbwait syslogd 64935 347449 1 0 3 0x100080 kqread resolvd 71628 19919 63669 77 3 0x100092 kqread dhcpleased 5405 433552 63669 77 3 0x100092 kqread dhcpleased 63669 104352 1 0 3 0x80 kqread dhcpleased 48796 339198 0 0 3 0x14200 bored smr 17685 386675 0 0 2 0x14200 zerothread 86882 118594 0 0 3 0x14200 aiodoned aiodoned 94633 71813 0 0 3 0x14200 syncer update 74521 59600 0 0 3 0x14200 cleaner cleaner 55392 70792 0 0 3 0x14200 reaper reaper 97527 134027 0 0 3 0x14200 pgdaemon pagedaemon 76917 108776 0 0 3 0x14200 bored viomb 66062 491689 0 0 3 0x40014200 acpi0 acpi0 58258 90989 0 0 3 0x14200 bored softnet7 61201 431326 0 0 3 0x14200 bored softnet6 84648 323228 0 0 3 0x14200 bored softnet5 16152 162328 0 0 3 0x14200 bored softnet4 89293 196503 0 0 3 0x14200 bored softnet3 64393 462016 0 0 3 0x14200 bored softnet2 61518 434982 0 0 3 0x14200 bored softnet1 50871 452556 0 0 3 0x14200 bored softnet0 36723 252300 0 0 3 0x14200 smrbar systqmp 60316 292159 0 0 3 0x14200 bored systq 33630 187829 0 0 3 0x40014200 tmoslp softclock 78699 158742 0 0 3 0x40014200 idle0 1 439907 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 10212 11382K 11382K 166960K 11379 0 pcb 19 12K 12K 166960K 28 0 rtable 208 6K 6K 166960K 265 0 pf 30 12K 13K 166960K 35 0 ifaddr 42 7K 7K 166960K 47 0 ifgroup 50 2K 2K 166960K 57 0 sysctl 1 1K 9K 166960K 5 0 counters 32 17K 18K 166960K 37 0 ioctlops 0 0K 2K 166960K 32 0 iov 0 0K 4K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1344 85K 85K 166960K 1376 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 97K 166960K 166 0 proc 58 59K 116K 166960K 479 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 1 0K 0K 166960K 5 0 in_multi 99 7K 7K 166960K 103 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 37 175K 175K 166960K 37 0 exec 0 0K 1K 166960K 358 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 233 159K 168K 166960K 3031 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 38 76K 96K 166960K 1198 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 2 0 NDP 27 2K 2K 166960K 29 0 temp 35 8630K 8694K 166960K 3795 0 kqueue 15 24K 26K 166960K 26 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 39 0 36 1 0 1 1 0 8 0 rtentry 136 96 0 2 4 0 4 4 0 8 0 unpcb 144 41 0 24 1 0 1 1 0 8 0 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 736 87 0 80 2 0 2 2 0 8 1 arp 88 10 0 0 1 0 1 1 0 8 0 inpcb 328 157 0 142 2 0 2 2 0 8 0 nd6 104 16 0 0 1 0 1 1 0 8 0 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 4 0 4 1 0 1 1 0 8 1 pppxif 1384 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 443 0 0 28 0 28 28 0 8 0 art_table 40 444 0 0 5 0 5 5 0 8 0 art_node 32 96 0 11 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1597 0 92 95 0 95 95 0 8 0 ffsino 256 1597 0 92 95 0 95 95 0 8 0 nchpl 144 1828 0 146 63 0 63 63 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 uvmvnodes 80 1694 0 0 35 0 35 35 0 8 0 vnodes 216 1694 0 0 95 0 95 95 0 8 0 namei 1024 5410 0 5409 2 0 2 2 0 8 1 kstatmem 264 26 0 4 2 0 2 2 0 8 0 scxspl 216 6359 0 6359 8 0 8 8 1 8 8 plimitpl 152 31 0 14 1 0 1 1 0 8 0 sigapl 424 451 0 401 7 0 7 7 0 8 1 knotepl 120 3998 0 3941 9 0 9 9 0 8 6 kqueuepl 184 31 0 17 1 0 1 1 0 8 0 pipepl 304 99 0 72 3 0 3 3 0 8 0 fdescpl 448 430 0 401 5 0 5 5 0 8 1 filepl 120 1460 0 1240 8 0 8 8 0 8 1 lockfpl 104 83 0 81 1 0 1 1 0 8 0 lockfspl 48 10 0 8 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 29 0 13 1 0 1 1 0 8 0 ucredpl 104 102 0 90 1 0 1 1 0 8 0 zombiepl 144 401 0 401 1 0 1 1 0 8 1 processpl 1168 451 0 401 5 0 5 5 0 8 1 procpl 664 503 0 442 6 0 6 6 0 8 0 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 552 239 0 204 3 0 3 3 0 8 0 mcl64k 65536 5 0 5 1 0 1 1 0 8 1 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 2464 0 2414 13 0 13 13 0 8 6 mcl2k 2048 188 0 187 1 0 1 1 0 8 0 mtagpl 96 5 0 4 1 0 1 1 0 8 0 mbufpl 256 4052 0 3927 10 0 10 10 0 8 1 bufpl 280 2854 0 117 196 0 196 196 0 8 0 anonpl 24 98837 0 95759 23 0 23 23 0 187 3 amapchunkpl 152 8853 0 8361 21 0 21 21 0 158 1 amappl16 200 1861 0 1840 5 0 5 5 0 8 3 amappl15 192 5 0 5 1 0 1 1 0 8 1 amappl14 184 104 0 94 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 0 1 1 0 8 1 amappl12 168 1038 0 1009 3 0 3 3 0 8 1 amappl11 160 53 0 43 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 0 1 1 0 8 1 amappl9 144 258 0 257 1 0 1 1 0 8 0 amappl8 136 17 0 16 1 0 1 1 0 8 0 amappl7 128 112 0 101 1 0 1 1 0 8 0 amappl6 120 170 0 167 1 0 1 1 0 8 0 amappl5 112 118 0 112 1 0 1 1 0 8 0 amappl4 104 274 0 260 1 0 1 1 0 8 0 amappl3 96 1391 0 1282 3 0 3 3 0 8 0 amappl2 88 613 0 559 2 0 2 2 0 8 0 amappl1 80 8019 0 7477 13 0 13 13 0 8 0 amappl 88 2391 0 2224 5 0 5 5 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 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 430 0 401 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 430 0 401 1 0 1 1 0 8 0 vmmpekpl 168 4970 0 4946 2 0 2 2 0 8 0 vmmpepl 168 34244 0 32421 82 0 82 82 0 357 0 vmsppl 368 429 0 401 4 0 4 4 0 8 1 rwobjpl 40 13935 0 11403 26 0 26 26 0 8 0 pdppl 4096 866 0 802 96 14 82 82 0 8 18 pvpl 32 214314 0 206209 71 0 71 71 0 265 1 pmappl 216 429 0 401 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 367 0 14 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace copyout() at copyout+0x57 syscall(ffff800038161e80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038161e80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa7d2cfb1bf0, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace copyout() at copyout+0x57 syscall(ffff800038161e80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038161e80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa7d2cfb1bf0, count: -3