kernel: page fault trap, code=3 Stopped at copyout+0x57: repe movsq (%rsi),%es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND * 65651 79913 0 0 0x4000000 0 syz-executor copyout() at copyout+0x57 syscall(ffff800035d13760) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800035d13760) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe8ecfd33900, 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 0x200000000ab0 in supervisor mode ddb> trace copyout() at copyout+0x57 syscall(ffff800035d13760) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800035d13760) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe8ecfd33900, count: -3 ddb> show registers rdi 0x200000000ab0 rsi 0xffff800035d135a0 rbp 0xffff800035d13680 rbx 0x200000000ab0 rdx 0xffff800035d0e000 rcx 0x7 rax 0x38 r8 0x7f7fffffc000 r9 0 r10 0xce2acf677b430336 r11 0xffffffff819d29a0 copy_fault r12 0xa r13 0 r14 0xa r15 0 rip 0xffffffff819d28c7 copyout+0x57 cs 0x8 rflags 0x50202 acpi_pdirpa+0x3c073 rsp 0xffff800035d13500 ss 0x10 copyout+0x57: repe movsq (%rsi),%es:(%rdi) ddb> show proc PROC (syz-executor) tid=65651 pid=79913 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=24, usrpri=82, slppri=24, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c9527e8,0xffff80002a7f1220 process=0xffff800035d15b48 user=0xffff800035d0e000, vmspace=0xfffffd806c0f85b8 estcpu=32, cpticks=1, pctcpu=0.1, user=0, sys=1, intr=1 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 24185 201387 91377 0 2 0 syz-executor 24185 174278 91377 0 3 0x4000080 fsleep syz-executor 14151 430877 8486 0 2 0 syz-executor 14151 356862 8486 0 3 0x4000080 ttyout syz-executor 14151 17869 8486 0 3 0x4000080 fsleep syz-executor 86126 150686 54366 0 2 0 syz-executor 86126 192114 54366 0 2 0x4000080 syz-executor 86126 381755 54366 0 3 0x4000080 fsleep syz-executor 47575 191261 7430 0 2 0xc80 syz-executor 47575 492272 7430 0 3 0x4000080 kqread syz-executor 47575 399884 7430 0 3 0x4000080 fsleep syz-executor 79913 243578 25127 0 2 0 syz-executor *79913 65651 25127 0 7 0x4000000 syz-executor 79913 344910 25127 0 2 0x4000080 syz-executor 79913 105127 25127 0 2 0x4000000 syz-executor 54366 212080 93671 0 2 0xc82 syz-executor 63837 352368 0 0 3 0x14280 nfsidl nfsio 73181 219776 0 0 3 0x14280 nfsidl nfsio 17204 64326 0 0 3 0x14280 nfsidl nfsio 81784 168274 0 0 3 0x14280 nfsidl nfsio 6001 412084 0 0 3 0x14280 nfsidl nfsio 89625 94216 0 0 3 0x14280 nfsidl nfsio 20866 143859 0 0 3 0x14280 nfsidl nfsio 87858 210106 0 0 3 0x14280 nfsidl nfsio 79969 302203 0 0 3 0x14280 nfsidl nfsio 88378 462530 0 0 3 0x14280 nfsidl nfsio 41171 447603 0 0 3 0x14280 nfsidl nfsio 13103 353755 0 0 3 0x14280 nfsidl nfsio 4020 204286 0 0 3 0x14280 nfsidl nfsio 91153 69810 0 0 3 0x14280 nfsidl nfsio 51961 412733 0 0 3 0x14280 nfsidl nfsio 21496 385840 0 0 3 0x14280 nfsidl nfsio 62066 387712 0 0 3 0x14280 nfsidl nfsio 54846 54662 0 0 3 0x14280 nfsidl nfsio 7471 256510 0 0 3 0x14280 nfsidl nfsio 27789 309819 0 0 3 0x14280 nfsidl nfsio 8481 202142 0 0 3 0x14200 bored sosplice 8486 396106 93671 0 2 0xc82 syz-executor 25127 189395 93671 0 2 0xc82 syz-executor 7430 188660 93671 0 2 0xc82 syz-executor 91377 153581 93671 0 2 0xc82 syz-executor 35860 63869 93671 0 3 0x82 wait syz-executor 99625 314210 93671 0 2 0xc82 syz-executor 23490 297997 93671 0 2 0x2 syz-executor 93671 42540 88947 0 3 0x82 kqread syz-executor 88947 437119 62585 0 3 0x10008a sigsusp ksh 62585 196783 78981 0 3 0x98 kqread sshd-session 78981 17441 1861 0 3 0x92 kqread sshd-session 52026 92356 1 0 3 0x100083 ttyin getty 1861 25824 1 0 3 0x88 kqread sshd 88276 71633 4415 73 3 0x1100090 kqread syslogd 4415 413145 1 0 3 0x100082 sbwait syslogd 45051 332745 1 0 3 0x100080 kqread resolvd 86960 287725 16607 77 3 0x100092 kqread dhcpleased 22926 285320 16607 77 3 0x100092 kqread dhcpleased 16607 499021 1 0 3 0x80 kqread dhcpleased 79915 164406 0 0 3 0x14200 bored smr 9354 42668 0 0 2 0x14200 zerothread 74244 72637 0 0 3 0x14200 aiodoned aiodoned 70492 305919 0 0 3 0x14200 syncer update 10283 483254 0 0 3 0x14200 cleaner cleaner 97160 353606 0 0 3 0x14200 reaper reaper 39200 317639 0 0 3 0x14200 pgdaemon pagedaemon 74107 150664 0 0 3 0x14200 bored viomb 98006 417690 0 0 3 0x40014200 acpi0 acpi0 77435 380123 0 0 3 0x14200 bored softnet3 43314 21100 0 0 3 0x14200 bored softnet2 33105 477088 0 0 3 0x14200 bored softnet1 75250 500460 0 0 3 0x14200 bored softnet0 20459 436224 0 0 3 0x14200 bored systqmp 27082 442437 0 0 3 0x14200 bored systq 98891 495362 0 0 3 0x40014200 tmoslp softclock 72584 148277 0 0 3 0x40014200 idle0 1 160506 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 10231 11410K 11451K 166960K 12107 0 pcb 17 16K 17K 166960K 244 0 rtable 244 8K 8K 166960K 544 0 pf 31 13K 17K 166960K 353 0 ifaddr 44 8K 9K 166960K 86 0 ifgroup 50 2K 2K 166960K 123 0 sysctl 3 1K 9K 166960K 10 0 counters 32 17K 18K 166960K 66 0 ioctlops 0 0K 4K 166960K 136 0 iov 2 4K 36K 166960K 39 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1437 90K 90K 166960K 2123 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 14 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 129 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 85K 166960K 670 0 sigio 0 0K 0K 166960K 5 0 proc 60 59K 100K 166960K 591 0 subproc 72 4K 4K 166960K 91 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 67 0 in_multi 99 7K 7K 166960K 135 0 ether_multi 1 0K 0K 166960K 3 0 mrt 2 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 217 970K 970K 166960K 217 0 exec 0 0K 2K 166960K 435 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 234 143K 161K 166960K 7259 0 UVM aobj 20 2K 4K 166960K 22 0 pinsyscall 38 76K 90K 166960K 1774 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 21 0 NDP 11 0K 2K 166960K 56 0 temp 48 8681K 8765K 166960K 26981 0 kqueue 14 22K 33K 166960K 143 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 76 0 73 1 0 1 1 0 8 0 rtentry 136 149 0 38 4 0 4 4 0 8 0 unpcb 144 747 0 730 10 1 9 10 0 8 8 syncache 336 7 0 7 1 0 1 1 0 8 1 tcpqe 32 13 0 13 1 0 1 1 0 8 1 tcpcb 736 183 0 176 7 0 7 7 0 8 6 arp 88 24 0 6 1 0 1 1 0 8 0 ipq 40 4 0 0 1 0 1 1 0 8 0 ipqe 40 5 0 1 1 0 1 1 0 8 0 inpcb 328 744 0 734 12 2 10 12 0 8 8 ip6q 72 18 0 17 1 0 1 1 0 8 0 ip6af 40 37 0 36 1 0 1 1 0 8 0 nd6 104 34 0 9 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 mppekey 1024 2 0 2 1 0 1 1 0 8 1 ppxss 1072 25 0 25 1 0 1 1 0 8 1 pppxif 1384 3 0 3 1 0 1 1 0 8 1 pfrktable 1344 33 0 33 1 0 1 1 0 8 1 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pftag 88 67 0 66 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 2 0 0 1 0 1 1 0 8 0 pfstate 384 1 0 0 1 0 1 1 0 8 0 pfrule 1344 36 0 35 1 0 1 1 0 8 0 rttmr 136 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 652 0 180 32 0 32 32 0 8 1 art_table 32 653 0 180 5 0 5 5 0 8 1 art_node 16 147 0 49 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 3 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 125 0 115 1 0 1 1 0 8 0 shmpl 112 19 0 2 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2784 0 1279 95 0 95 95 0 8 0 ffsino 248 2784 0 1279 95 0 95 95 0 8 0 nchpl 144 3714 0 2021 63 0 63 63 0 8 0 rtmask 32 3 0 3 1 0 1 1 0 8 1 uvmvnodes 80 3005 0 0 62 0 62 62 0 8 0 vnodes 216 3005 0 0 167 0 167 167 0 8 0 namei 1024 14090 0 14089 2 0 2 2 0 8 1 kstatmem 264 72 0 50 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 12994 0 12994 8 0 8 8 1 8 8 plimitpl 152 427 0 409 1 0 1 1 0 8 0 sigapl 424 972 0 906 8 0 8 8 0 8 0 knotepl 120 31142 0 30845 16 5 11 16 0 8 1 kqueuepl 184 437 0 427 4 0 4 4 0 8 3 pipepl 296 218 0 191 5 0 5 5 0 8 2 fdescpl 440 934 0 905 4 0 4 4 0 8 0 filepl 120 7284 0 7059 16 0 16 16 0 8 8 lockfpl 104 190 0 188 1 0 1 1 0 8 0 lockfspl 48 83 0 81 1 0 1 1 0 8 0 sessionpl 144 27 0 19 1 0 1 1 0 8 0 pgrppl 48 67 0 51 1 0 1 1 0 8 0 ucredpl 104 1381 0 1368 1 0 1 1 0 8 0 zombiepl 144 908 0 906 1 0 1 1 0 8 0 processpl 1160 972 0 906 5 0 5 5 0 8 0 procpl 656 1751 0 1675 8 0 8 8 0 8 0 sosppl 168 5 0 5 1 0 1 1 0 8 1 sockpl 528 1584 0 1554 18 7 11 18 0 8 8 mcl64k 65536 83 0 83 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 10 0 10 1 0 1 1 0 8 1 mcl4k 4096 3089 0 3032 14 0 14 14 0 8 6 mcl2k 2048 725 0 719 4 0 4 4 0 8 3 mtagpl 96 64 0 9 2 0 2 2 0 8 0 mbufpl 256 10033 0 9805 28 3 25 28 0 8 8 bufpl 280 4459 0 186 306 0 306 306 0 8 0 anonpl 24 132804 0 129557 45 0 45 45 0 187 6 amapchunkpl 152 22766 0 22255 25 0 25 25 0 158 4 amappl16 200 2226 0 2191 15 0 15 15 0 8 7 amappl15 192 3 0 3 1 0 1 1 0 8 1 amappl14 184 113 0 103 1 0 1 1 0 8 0 amappl13 176 1 0 1 1 0 1 1 0 8 1 amappl12 168 1584 0 1555 3 0 3 3 0 8 1 amappl11 160 44 0 34 1 0 1 1 0 8 0 amappl10 152 5 0 5 1 0 1 1 0 8 1 amappl9 144 257 0 257 1 0 1 1 0 8 1 amappl8 136 17 0 16 1 0 1 1 0 8 0 amappl7 128 104 0 94 1 0 1 1 0 8 0 amappl6 120 190 0 187 1 0 1 1 0 8 0 amappl5 112 117 0 111 1 0 1 1 0 8 0 amappl4 104 307 0 289 1 0 1 1 0 8 0 amappl3 96 4596 0 4481 4 0 4 4 0 8 1 amappl2 88 662 0 606 2 0 2 2 0 8 0 amappl1 80 11217 0 10672 14 0 14 14 0 8 1 amappl 88 6468 0 6297 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 7 0 7 1 0 1 1 0 8 1 dma128 128 254 0 254 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 21 0 2 1 0 1 1 0 8 0 uaddrrnd 24 934 0 905 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 934 0 905 1 0 1 1 0 8 0 vmmpekpl 168 9153 0 9118 3 0 3 3 0 8 0 vmmpepl 168 64155 0 62281 95 0 95 95 0 357 8 vmsppl 360 933 0 905 4 0 4 4 0 8 1 rwobjpl 32 21438 0 17550 34 0 34 34 0 8 2 pdppl 4096 1875 0 1810 101 34 67 77 0 8 2 pvpl 32 398140 0 389296 118 0 118 118 0 265 19 pmappl 216 933 0 905 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 295 0 37 8 0 8 8 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace copyout() at copyout+0x57 syscall(ffff800035d13760) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800035d13760) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe8ecfd33900, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace copyout() at copyout+0x57 syscall(ffff800035d13760) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800035d13760) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe8ecfd33900, count: -3