kernel: page fault trap, code=3 Stopped at copyout+0x62: repe movsl (%rsi),%es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *521358 57909 -1 0x10 0x4000000 0 syz-executor copyout() at copyout+0x62 kern_sysctl(ffff80003c9417d4,5,200000000100,ffff80003c941808,0,37,511295649067183e) at kern_sysctl+0x167 sys/kern/kern_sysctl.c:526 sys_sysctl(ffff80003411d218,ffff80003c941940,ffff80003c941890) at sys_sysctl+0x3f2 sys/kern/kern_sysctl.c:-1 syscall(ffff80003c941940) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c941940) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfdce599eeb0, count: 10 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 0x200000000100 in supervisor mode ddb> trace copyout() at copyout+0x62 kern_sysctl(ffff80003c9417d4,5,200000000100,ffff80003c941808,0,37,511295649067183e) at kern_sysctl+0x167 sys/kern/kern_sysctl.c:526 sys_sysctl(ffff80003411d218,ffff80003c941940,ffff80003c941890) at sys_sysctl+0x3f2 sys/kern/kern_sysctl.c:-1 syscall(ffff80003c941940) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c941940) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfdce599eeb0, count: -5 ddb> show registers rdi 0x200000000100 rsi 0xffff80000150e800 rbp 0xffff80003c9415b0 rbx 0xfffffd806c2b62d0 rdx 0xffff80003c93c000 rcx 0x1 rax 0x5 r8 0x7f7fffffc000 r9 0xffff8000ffff4db0 r10 0x1f3d69930290d7ce r11 0xffffffff82405080 copy_fault r12 0x915 r13 0x5 r14 0x7fffffff r15 0xda rip 0xffffffff82404fb2 copyout+0x62 cs 0x8 rflags 0x50202 acpi_pdirpa+0x3c073 rsp 0xffff80003c9414b0 ss 0x10 copyout+0x62: repe movsl (%rsi),%es:(%rdi) ddb> show proc PROC (syz-executor) tid=521358 pid=57909 tcnt=3 stat=onproc flags process=10 proc=4000000 runpri=86, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003411dc58,0xffff80002a7ad218 process=0xffff8000ffff7b00 user=0xffff80003c93c000, vmspace=0xfffffd806c239720 estcpu=36, cpticks=7, pctcpu=0.0, user=0, sys=7, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 57909 345385 49715 -1 2 0x10 syz-executor *57909 521358 49715 -1 7 0x4000010 syz-executor 57909 411609 49715 -1 3 0x4000090 fsleep syz-executor 29761 136215 39676 0 2 0 syz-executor 29761 150846 39676 0 3 0x4000080 sbwait syz-executor 29761 477582 39676 0 3 0x4000080 fsleep syz-executor 97248 378728 44512 0 2 0 syz-executor 97248 48785 44512 0 3 0x4000080 fsleep syz-executor 97248 273699 44512 0 3 0x4000080 fsleep syz-executor 97248 500412 44512 0 2 0x4000000 syz-executor 44512 251146 40259 0 2 0xc82 syz-executor 14083 125404 42698 0 2 0xc80 syz-executor 14083 159398 42698 0 3 0x4000080 kqsel syz-executor 33079 248952 11383 0 2 0xc80 syz-executor 33079 88073 11383 0 3 0x4000080 fsleep syz-executor 33079 2042 11383 0 3 0x4000080 ttyin syz-executor 33079 305410 11383 0 3 0x4000080 fsleep syz-executor 9337 270390 92260 0 3 0x80 nanoslp syz-executor 9337 481962 92260 0 3 0x4000080 fsleep syz-executor 9337 497733 92260 0 3 0x4000080 lockf syz-executor 9337 91835 92260 0 3 0x4000080 fsleep syz-executor 25563 450697 0 0 3 0x14200 bored sosplice 49715 512854 40259 0 3 0x82 nanoslp syz-executor 11383 317090 40259 0 3 0x82 nanoslp syz-executor 92260 258076 40259 0 3 0x82 nanoslp syz-executor 39676 351761 40259 0 3 0x82 nanoslp syz-executor 42698 62805 40259 0 3 0x82 nanoslp syz-executor 91539 360537 40259 0 3 0x82 nanoslp syz-executor 93822 224574 40259 0 2 0x2 syz-executor 40259 122454 97941 0 3 0x82 kqread syz-executor 97941 231821 10365 0 3 0x10008a sigsusp ksh 10365 211157 5232 0 3 0x98 kqread sshd-session 5232 299401 76107 0 3 0x92 kqread sshd-session 54483 123754 1 0 3 0x100083 ttyopn getty 76107 88282 1 0 3 0x88 kqread sshd 99828 95935 95297 73 3 0x1100090 kqread syslogd 95297 190879 1 0 3 0x100082 sbwait syslogd 21509 22741 1 0 3 0x100080 kqread resolvd 67350 323922 64542 77 3 0x100092 kqread dhcpleased 83430 10579 64542 77 3 0x100092 kqread dhcpleased 64542 197159 1 0 3 0x80 kqread dhcpleased 84842 272529 0 0 3 0x14200 bored smr 75717 16021 0 0 2 0x14200 zerothread 71385 474445 0 0 3 0x14200 aiodoned aiodoned 35476 442115 0 0 3 0x14200 syncer update 99419 8160 0 0 3 0x14200 cleaner cleaner 6129 488855 0 0 3 0x14200 reaper reaper 79056 58711 0 0 3 0x14200 pgdaemon pagedaemon 74829 351093 0 0 3 0x14200 bored viomb 44501 252881 0 0 3 0x40014200 acpi0 acpi0 82486 46497 0 0 3 0x14200 bored softnet3 57010 288013 0 0 3 0x14200 bored softnet2 26792 81143 0 0 3 0x14200 bored softnet1 56597 322405 0 0 3 0x14200 bored softnet0 57272 295844 0 0 3 0x14200 bored systqmp 19086 118941 0 0 3 0x14200 bored systq 39916 381306 0 0 2 0x40014200 softclock 52133 109937 0 0 3 0x40014200 idle0 1 110493 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 10184 11128K 11576K 166960K 11654 0 pcb 19 16K 17K 166960K 139 0 rtable 194 5K 7K 166960K 389 0 pf 29 12K 13K 166960K 43 0 ifaddr 37 6K 7K 166960K 51 0 ifgroup 46 2K 2K 166960K 63 0 sysctl 3 1K 9K 166960K 9 0 counters 31 17K 17K 166960K 36 0 ioctlops 0 0K 4K 166960K 54 0 iov 1 2K 12K 166960K 18 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1469 92K 93K 166960K 1713 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 9 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 85K 166960K 325 0 sigio 0 0K 0K 166960K 2 0 proc 60 59K 83K 166960K 530 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 24 0 in_multi 85 6K 7K 166960K 112 0 ether_multi 1 0K 0K 166960K 2 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 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 437 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 235 143K 158K 166960K 4414 0 UVM aobj 14 2K 2K 166960K 14 0 pinsyscall 38 76K 88K 166960K 1383 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 24 0 NDP 12 0K 1K 166960K 33 0 temp 42 8680K 8745K 166960K 5248 0 kqueue 14 22K 28K 166960K 55 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 55 0 52 1 0 1 1 0 8 0 rtentry 136 124 0 34 4 0 4 4 0 8 0 unpcb 144 329 0 309 4 0 4 4 0 8 3 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 115 0 45 7 0 7 7 0 8 0 arp 88 20 0 4 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 2 1 0 1 1 0 8 0 inpcb 328 443 0 365 7 0 7 7 0 8 0 nd6 104 29 0 6 1 0 1 1 0 8 0 pkpcb 40 2 0 0 1 0 1 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 500 0 129 29 0 29 29 0 8 5 art_table 32 501 0 129 4 0 4 4 0 8 0 art_node 16 123 0 42 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 5 1 0 1 1 0 8 0 semapl 112 5 0 1 1 0 1 1 0 8 0 shmpl 112 11 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1928 0 426 95 0 95 95 0 8 0 ffsino 248 1928 0 426 95 0 95 95 0 8 0 nchpl 144 2367 0 687 63 0 63 63 0 8 0 uvmvnodes 80 2250 0 0 46 0 46 46 0 8 0 vnodes 216 2250 0 0 125 0 125 125 0 8 0 namei 1024 8177 0 8177 2 0 2 2 0 8 2 kstatmem 264 30 0 10 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 7869 0 7869 8 0 8 8 1 8 8 plimitpl 152 56 0 37 1 0 1 1 0 8 0 sigapl 424 604 0 558 6 0 6 6 0 8 0 knotepl 120 11021 0 10972 17 1 16 17 0 8 12 kqueuepl 184 77 0 65 1 0 1 1 0 8 0 pipepl 296 118 0 91 3 0 3 3 0 8 0 fdescpl 440 587 0 558 4 0 4 4 0 8 0 filepl 120 3443 0 3146 12 0 12 12 0 8 2 lockfpl 104 48 0 44 1 0 1 1 0 8 0 lockfspl 48 22 0 19 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 35 0 19 1 0 1 1 0 8 0 ucredpl 104 496 0 484 1 0 1 1 0 8 0 zombiepl 144 559 0 558 1 0 1 1 0 8 0 processpl 1160 604 0 558 4 0 4 4 0 8 0 procpl 656 875 0 815 6 0 6 6 0 8 0 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 528 834 0 730 8 0 8 8 0 8 0 mcl64k 65536 9 0 8 1 0 1 1 0 8 0 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 6 0 6 1 0 1 1 0 8 1 mcl4k 4096 2609 0 2558 12 0 12 12 0 8 5 mcl2k 2048 499 0 496 3 0 3 3 0 8 2 mtagpl 96 12 0 5 1 0 1 1 0 8 0 mbufpl 256 6217 0 6062 16 0 16 16 0 8 3 bufpl 280 2569 0 116 176 0 176 176 0 8 0 anonpl 24 109905 0 106664 45 0 45 45 0 187 22 amapchunkpl 152 14067 0 13568 32 0 32 32 0 158 9 amappl16 200 1852 0 1823 11 2 9 11 0 8 7 amappl15 192 5 0 5 1 0 1 1 0 8 1 amappl14 184 102 0 92 1 0 1 1 0 8 0 amappl13 176 3 0 3 1 0 1 1 0 8 1 amappl12 168 1217 0 1188 2 0 2 2 0 8 0 amappl11 160 103 0 93 1 0 1 1 0 8 0 amappl10 152 5 0 4 1 0 1 1 0 8 0 amappl9 144 241 0 241 1 0 1 1 0 8 1 amappl8 136 37 0 36 1 0 1 1 0 8 0 amappl7 128 111 0 101 1 0 1 1 0 8 0 amappl6 120 179 0 176 1 0 1 1 0 8 0 amappl5 112 116 0 109 1 0 1 1 0 8 0 amappl4 104 284 0 269 1 0 1 1 0 8 0 amappl3 96 2371 0 2261 3 0 3 3 0 8 0 amappl2 88 618 0 563 2 0 2 2 0 8 0 amappl1 80 8762 0 8219 13 0 13 13 0 8 1 amappl 88 3718 0 3546 5 0 5 5 0 92 0 dma16384 16384 1 0 1 1 0 1 1 0 8 1 dma4096 4096 2 0 2 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 255 0 255 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 13 0 0 1 0 1 1 0 8 0 uaddrrnd 24 587 0 558 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 587 0 558 1 0 1 1 0 8 0 vmmpekpl 168 6148 0 6108 2 0 2 2 0 8 0 vmmpepl 168 42950 0 41099 85 0 85 85 0 357 1 vmsppl 360 586 0 558 4 0 4 4 0 8 1 rwobjpl 32 16052 0 12938 26 0 26 26 0 8 0 pdppl 4096 1181 0 1116 93 24 69 77 0 8 4 pvpl 32 274783 0 265918 114 0 114 114 0 265 32 pmappl 216 586 0 558 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 268 0 24 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace copyout() at copyout+0x62 kern_sysctl(ffff80003c9417d4,5,200000000100,ffff80003c941808,0,37,511295649067183e) at kern_sysctl+0x167 sys/kern/kern_sysctl.c:526 sys_sysctl(ffff80003411d218,ffff80003c941940,ffff80003c941890) at sys_sysctl+0x3f2 sys/kern/kern_sysctl.c:-1 syscall(ffff80003c941940) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c941940) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfdce599eeb0, count: -5 ddb> machine ddbcpu 1 No such command ddb> trace copyout() at copyout+0x62 kern_sysctl(ffff80003c9417d4,5,200000000100,ffff80003c941808,0,37,511295649067183e) at kern_sysctl+0x167 sys/kern/kern_sysctl.c:526 sys_sysctl(ffff80003411d218,ffff80003c941940,ffff80003c941890) at sys_sysctl+0x3f2 sys/kern/kern_sysctl.c:-1 syscall(ffff80003c941940) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c941940) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfdce599eeb0, count: -5