uvm_fault(0xfffffd806ef89990, 0xfac0, 0, 2) -> e kernel: page fault trap, code=2 Stopped at copyout+0x57: repe movsq (%rsi),%es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *348592 40690 0 0 0x4000000 0 syz-executor 497297 602 0 0x2 0 1 syz-executor copyout() at copyout+0x57 syscall(ffff80003c46bd10) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c46bd10) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb8cd21e4540, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: uvm_fault(0xfffffd806ef89990, 0xfac0, 0, 2) -> e ddb{0}> trace copyout() at copyout+0x57 syscall(ffff80003c46bd10) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c46bd10) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb8cd21e4540, count: -3 ddb{0}> show registers rdi 0xfac0 __ALIGN_SIZE+0xeac0 rsi 0xffff80003c46ba50 rbp 0xffff80003c46bc30 rbx 0xa224 __ALIGN_SIZE+0x9224 rdx 0xffff80003c466000 rcx 0x4 rax 0x20 r8 0x7f7fffffc000 r9 0 r10 0x72afc9466846dd9d r11 0xffffffff811c5640 copy_fault r12 0x1 r13 0x16 r14 0xffff80003c46ba50 r15 0xffff80003c46bd10 rip 0xffffffff811c5567 copyout+0x57 cs 0x8 rflags 0x50202 acpi_pdirpa+0x3c073 rsp 0xffff80003c46b980 ss 0x10 copyout+0x57: repe movsq (%rsi),%es:(%rdi) ddb{0}> show proc PROC (syz-executor) tid=348592 pid=40690 tcnt=5 stat=onproc flags process=0 proc=4000000 runpri=4, usrpri=86, slppri=4, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c4defc0,0xffff8000ffff2020 process=0xffff800035835360 user=0xffff80003c466000, vmspace=0xfffffd806ef89990 estcpu=36, cpticks=3, pctcpu=0.0, user=0, sys=3, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 2348 176822 54827 0 2 0 syz-executor 2348 117141 54827 0 3 0x4000080 fsleep syz-executor 2348 520256 54827 0 3 0x4000080 fsleep syz-executor 51961 210880 12150 0 2 0 syz-executor 51961 32877 12150 0 3 0x4000080 fsleep syz-executor 22951 239686 90579 0 2 0x82000 syz-executor 22951 76818 90579 0 4 0x4082000 syz-executor 22951 236437 90579 0 3 0x4002000 suspend syz-executor 34166 313346 96743 0 2 0xc80 syz-executor 34166 417498 96743 0 3 0x4000080 nanoslp syz-executor 34166 258661 96743 0 3 0x4000080 fsleep syz-executor 40690 6177 11616 0 2 0 syz-executor 40690 383171 11616 0 2 0x4000000 syz-executor *40690 348592 11616 0 7 0x4000000 syz-executor 40690 262666 11616 0 3 0x4000080 fsleep syz-executor 40690 68794 11616 0 2 0x4000000 syz-executor 98354 180705 46872 0 2 0xc80 syz-executor 98354 197202 46872 0 3 0x4000080 kqread syz-executor 98354 34479 46872 0 3 0x4000080 fsleep syz-executor 98354 477073 46872 0 3 0x4000080 fsleep syz-executor 96743 308425 63282 0 2 0xc82 syz-executor 3211 119489 1 0 3 0x100083 ttyin getty 26536 395439 0 0 3 0x14280 nfsidl nfsio 78342 196151 0 0 3 0x14280 nfsidl nfsio 58777 514334 0 0 3 0x14280 nfsidl nfsio 20699 445292 0 0 3 0x14280 nfsidl nfsio 48137 448523 0 0 3 0x14280 nfsidl nfsio 50344 147840 0 0 3 0x14280 nfsidl nfsio 79596 390250 0 0 3 0x14280 nfsidl nfsio 11483 458172 0 0 3 0x14280 nfsidl nfsio 60789 259090 0 0 3 0x14280 nfsidl nfsio 56896 82689 0 0 3 0x14280 nfsidl nfsio 7714 285124 0 0 3 0x14280 nfsidl nfsio 18056 150190 0 0 3 0x14280 nfsidl nfsio 91011 226005 0 0 3 0x14280 nfsidl nfsio 22846 331687 0 0 3 0x14280 nfsidl nfsio 31544 220791 0 0 3 0x14280 nfsidl nfsio 30106 205080 0 0 3 0x14280 nfsidl nfsio 89727 32178 0 0 3 0x14280 nfsidl nfsio 82296 495297 0 0 3 0x14280 nfsidl nfsio 92562 494290 0 0 3 0x14280 nfsidl nfsio 63538 458082 0 0 3 0x14280 nfsidl nfsio 2784 199162 0 0 3 0x14200 bored sosplice 12150 12257 63282 0 2 0xc82 syz-executor 90579 502755 63282 0 2 0xc82 syz-executor 46872 519763 63282 0 2 0xc82 syz-executor 75452 493388 63282 0 3 0x82 wait syz-executor 54827 126609 63282 0 2 0xc82 syz-executor 602 497297 63282 0 7 0x2 syz-executor 11616 466270 63282 0 2 0xc82 syz-executor 63282 466330 41737 0 3 0x82 kqread syz-executor 41737 154391 48022 0 3 0x10008a sigsusp ksh 48022 265208 53154 0 3 0x98 kqread sshd-session 53154 150537 73197 0 3 0x92 kqread sshd-session 73197 466386 1 0 3 0x88 kqread sshd 61943 508950 58138 74 3 0x1100092 bpf pflogd 58138 265006 1 0 3 0x80 sbwait pflogd 96712 381473 57424 73 3 0x1100090 kqread syslogd 57424 55894 1 0 3 0x100082 sbwait syslogd 40743 73304 1 0 3 0x100080 kqread resolvd 52741 324150 61468 77 3 0x100092 kqread dhcpleased 92584 477053 61468 77 3 0x100092 kqread dhcpleased 61468 246837 1 0 3 0x80 kqread dhcpleased 54084 292825 0 0 2 0x40014200 smr 50615 441809 0 0 2 0x14200 zerothread 93879 297511 0 0 3 0x14200 aiodoned aiodoned 62875 350332 0 0 3 0x14200 syncer update 37380 306875 0 0 3 0x14200 cleaner cleaner 71325 213711 0 0 3 0x14200 reaper reaper 95407 305737 0 0 3 0x14200 pgdaemon pagedaemon 56091 443746 0 0 3 0x14200 bored viomb 33146 441737 0 0 3 0x40014200 acpi0 acpi0 40867 2651 0 0 3 0x40014200 idle1 7901 84801 0 0 3 0x14200 bored softnet7 70005 475776 0 0 3 0x14200 bored softnet6 95981 370320 0 0 3 0x14200 bored softnet5 46085 508030 0 0 3 0x14200 bored softnet4 8660 462395 0 0 3 0x14200 bored softnet3 20329 423470 0 0 3 0x14200 bored softnet2 68593 59769 0 0 3 0x14200 bored softnet1 27632 326337 0 0 3 0x14200 bored softnet0 31881 400977 0 0 3 0x14200 bored systqmp 90069 476603 0 0 3 0x14200 bored systq 87600 407603 0 0 3 0x14200 tmoslp softclockmp 88476 345471 0 0 2 0x40014200 softclock 97135 522044 0 0 3 0x40014200 idle0 1 436091 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 40690 (syz-executor) thread 0xffff800036039a18 (383171) exclusive rrwlock inode r = 0 (0xfffffd806e3dc240) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 rrw_enter+0xc6 sys/kern/kern_rwlock.c:621 #3 VOP_LOCK+0xa3 sys/kern/vfs_vops.c:527 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:570 #5 vn_write+0x18f sys/kern/vfs_vnops.c:405 #6 dofilewritev+0x242 sys/kern/sys_generic.c:380 #7 sys_write+0xa2 sys/kern/sys_generic.c:300 #8 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #8 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 #9 Xsyscall+0x128 Process 602 (syz-executor) thread 0xffff80002a2c8a78 (497297) exclusive rwlock uobjlk r = 0 (0xfffffd800bef5a40) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 uvm_vnp_setsize+0x61 sys/uvm/uvm_vnode.c:1444 #3 ffs_write+0x615 sys/ufs/ffs/ffs_vnops.c:350 #4 VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 #5 ktrwriteraw+0x1be sys/kern/kern_ktrace.c:691 #6 ktrsysret+0x192 ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] #6 ktrsysret+0x192 sys/kern/kern_ktrace.c:209 #7 syscall+0xa50 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] #7 syscall+0xa50 sys/arch/amd64/amd64/trap.c:769 #8 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806e3e1928) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 rrw_enter+0xc6 sys/kern/kern_rwlock.c:621 #3 VOP_LOCK+0xa3 sys/kern/vfs_vops.c:527 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:570 #5 vget+0x2a2 sys/kern/vfs_subr.c:693 #6 ktrwriteraw+0x175 sys/kern/kern_ktrace.c:688 #7 ktrsysret+0x192 ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] #7 ktrsysret+0x192 sys/kern/kern_ktrace.c:209 #8 syscall+0xa50 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] #8 syscall+0xa50 sys/arch/amd64/amd64/trap.c:769 #9 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83917f80) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 ktrsysret+0xde ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] #1 ktrsysret+0xde sys/kern/kern_ktrace.c:209 #2 syscall+0xa50 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] #2 syscall+0xa50 sys/arch/amd64/amd64/trap.c:769 #3 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10250 11263K 11990K 166960K 12866 0 pcb 17 14K 16K 166960K 360 0 rtable 206 9K 10K 166960K 444 0 pf 32 17K 81K 166960K 177 0 ifaddr 42 7K 9K 166960K 120 0 ifgroup 51 2K 2K 166960K 210 0 sysctl 3 1K 9K 166960K 13 0 counters 66 36K 37K 166960K 224 0 ioctlops 0 0K 4K 166960K 1894 0 iov 0 0K 36K 166960K 103 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1490 94K 94K 166960K 2597 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 11 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 40 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 240K 166960K 1139 0 sigio 0 0K 0K 166960K 15 0 proc 72 115K 163K 166960K 657 0 subproc 72 4K 4K 166960K 82 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 193 0 in_multi 93 6K 7K 166960K 160 0 ether_multi 1 0K 0K 166960K 9 0 mrt 0 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 539 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 250 168K 182K 166960K 12006 0 UVM aobj 21 5K 5K 166960K 23 0 pinsyscall 42 84K 100K 166960K 2229 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 69 0 NDP 11 0K 2K 166960K 81 0 temp 67 8649K 8723K 166960K 54400 0 kqueue 15 22K 28K 166960K 220 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 255 0 252 3 0 3 3 0 8 2 rtentry 176 149 0 66 5 0 5 5 0 8 0 unpcb 144 648 0 631 4 0 4 4 0 8 3 syncache 336 6 0 6 2 1 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 319 0 310 7 0 7 7 0 8 6 arp 128 17 0 7 1 0 1 1 0 8 0 inpcb 328 1398 0 1383 11 2 9 9 0 8 7 nd6 144 23 0 5 1 0 1 1 0 8 0 pkpcb 40 11 0 11 2 1 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1192 58 0 58 2 1 1 1 0 8 1 pppxif 1504 12 0 12 2 1 1 1 0 8 1 pffrag 232 6 0 1 1 0 1 1 0 482 0 pffrnode 88 4 0 0 1 0 1 1 0 8 0 pffrent 40 8 0 3 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pfstitem 24 76 0 12 1 0 1 1 0 8 0 pfstkey 128 76 0 12 3 0 3 3 0 8 0 pfstate 384 76 0 12 8 0 8 8 0 8 0 pfrule 1344 22 0 17 2 1 1 2 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 677 0 258 33 2 31 31 0 8 2 art_table 40 680 0 258 5 0 5 5 0 8 0 art_node 32 147 0 81 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 3 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 37 0 27 1 0 1 1 0 8 0 shmpl 112 20 0 2 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 3598 0 2092 95 0 95 95 0 8 0 ffsino 296 3598 0 2092 117 0 117 117 0 8 0 nchpl 144 5149 0 3456 64 0 64 64 0 8 0 rtmask 32 10 0 10 2 1 1 1 0 8 1 uvmvnodes 80 4374 0 0 90 0 90 90 0 8 0 vnodes 216 4374 0 0 243 0 243 243 0 8 0 namei 1024 18376 0 18376 2 0 2 2 0 8 2 percpumem 16 127 0 79 1 0 1 1 0 8 0 kstatmem 264 128 0 104 4 1 3 3 0 8 1 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 6 0 6 2 1 1 1 0 8 1 scxspl 216 24336 0 24336 10 4 6 8 1 8 6 plimitpl 152 280 0 261 1 0 1 1 0 8 0 sigapl 424 1432 0 1358 9 0 9 9 0 8 0 knotepl 120 538 0 0 17 0 17 17 0 8 0 kqueuepl 224 488 0 476 6 3 3 5 0 8 2 pipepl 344 263 0 236 9 6 3 9 0 8 0 fdescpl 528 1388 0 1357 3 0 3 3 0 8 0 filepl 160 10236 0 10007 25 7 18 18 0 8 6 lockfpl 104 489 0 485 2 1 1 2 0 8 0 lockfspl 48 220 0 216 1 0 1 1 0 8 0 sessionpl 144 27 0 18 1 0 1 1 0 8 0 pgrppl 48 49 0 32 1 0 1 1 0 8 0 ucredpl 104 1903 0 1889 1 0 1 1 0 8 0 zombiepl 144 1359 0 1358 1 0 1 1 0 8 0 processpl 1232 1432 0 1358 6 0 6 6 0 8 0 procpl 664 3153 0 3065 8 0 8 8 0 8 0 sosppl 168 13 0 13 2 1 1 1 0 8 1 sockpl 752 2332 0 2297 21 9 12 17 0 8 8 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 113 0 0 15 0 15 15 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 29 0 0 4 0 4 4 0 8 0 mtagpl 96 85 0 0 3 0 3 3 0 8 0 mbufpl 256 1234 0 0 78 0 78 78 0 8 0 bufpl 280 9341 0 3197 440 0 440 440 0 8 0 anonpl 32 7895 0 0 65 1 64 64 0 246 0 amapchunkpl 152 40506 0 39987 36 8 28 31 0 158 4 amappl16 200 4274 0 4239 24 8 16 16 0 8 8 amappl14 184 118 0 106 1 0 1 1 0 8 0 amappl13 176 11 0 11 2 1 1 1 0 8 1 amappl12 168 2052 0 2021 4 2 2 3 0 8 0 amappl11 160 53 0 39 1 0 1 1 0 8 0 amappl10 152 1 0 1 1 1 0 1 0 8 0 amappl9 144 258 0 258 1 1 0 1 0 8 0 amappl8 136 28 0 26 1 0 1 1 0 8 0 amappl7 128 114 0 102 1 0 1 1 0 8 0 amappl6 120 194 0 190 1 0 1 1 0 8 0 amappl5 112 127 0 117 1 0 1 1 0 8 0 amappl4 104 309 0 288 1 0 1 1 0 8 0 amappl3 96 7876 0 7758 4 0 4 4 0 8 0 amappl2 88 669 0 607 2 0 2 2 0 8 0 amappl1 80 12835 0 12227 16 1 15 15 0 8 0 amappl 88 11147 0 10971 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 0 1 1 0 8 1 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 255 0 255 3 2 1 1 0 8 1 dma64 64 8 0 8 2 1 1 1 0 8 1 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 22 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1388 0 1357 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1388 0 1357 1 0 1 1 0 8 0 vmmpekpl 168 13197 0 13158 3 0 3 3 0 8 0 vmmpepl 168 92266 0 90237 110 8 102 102 0 357 3 vmsppl 488 1387 0 1357 6 1 5 5 0 8 1 rwobjpl 80 30088 0 24735 115 3 112 112 0 8 0 pdppl 4096 2784 0 2714 102 30 72 84 0 8 2 pvpl 32 16997 0 0 138 0 138 138 0 265 0 pmappl 256 1387 0 1357 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 353 0 35 10 0 10 10 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace copyout() at copyout+0x57 syscall(ffff80003c46bd10) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c46bd10) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb8cd21e4540, count: -3 ddb{0}> machine ddbcpu 1