uvm_fault(0xfffffd805e6a57c8, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at _copyin+0x57: repe movsq (%rsi),%es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *326394 49703 0 0 0x4000000 0 syz-executor 232037 20033 0 0 0x4000000 1K syz-executor _copyin() at _copyin+0x57 syscall(ffff80003c4a1ed0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4a1ed0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x83f10989b30, 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(0xfffffd805e6a57c8, 0x0, 0, 1) -> e ddb{0}> trace _copyin() at _copyin+0x57 syscall(ffff80003c4a1ed0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4a1ed0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x83f10989b30, count: -3 ddb{0}> show registers rdi 0xffff80003c4a1cf0 rsi 0 rbp 0xffff80003c4a1df0 rbx 0x8020699f __kernel_virt_to_phys+0x20699f rdx 0x20 rcx 0x4 rax 0x20 r8 0x7f7fffffc000 r9 0 r10 0x24c98855d1a5c3c1 r11 0xffffffff81fe8300 copy_fault r12 0x20 r13 0xffff80003c4a1ed0 r14 0 r15 0xfffffd806320b748 rip 0xffffffff81fe82b7 _copyin+0x57 cs 0x8 rflags 0x50202 acpi_pdirpa+0x3c073 rsp 0xffff80003c4a1ce0 ss 0x10 _copyin+0x57: repe movsq (%rsi),%es:(%rdi) ddb{0}> show proc PROC (syz-executor) tid=326394 pid=49703 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000394322c8,0xffff800039433798 process=0xffff800038426720 user=0xffff80003c49c000, vmspace=0xfffffd805e6a57c8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 49703 339548 26374 0 2 0 syz-executor *49703 326394 26374 0 7 0x4000000 syz-executor 49703 267211 26374 0 3 0x4000080 fsleep syz-executor 18743 323114 71180 0 2 0xc80 syz-executor 18743 5245 71180 0 3 0x4000080 fsleep syz-executor 18743 63517 71180 0 3 0x4000080 pipewr syz-executor 18743 1597 71180 0 3 0x4000080 fsleep syz-executor 20033 110002 30003 0 3 0x80 nanoslp syz-executor 20033 232037 30003 0 7 0x4000000 syz-executor 20033 390176 30003 0 3 0x4000080 fsleep syz-executor 56800 426631 70760 0 3 0x4000080 nanoslp syz-executor 56800 114528 70760 0 3 0x4000080 sbwait syz-executor 56800 360208 70760 0 3 0x4000080 sbwait syz-executor 56800 246964 70760 0 3 0x4000080 fsleep syz-executor 82482 307891 15670 0 3 0x80 nanoslp syz-executor 82482 46994 15670 0 3 0x4000080 sbwait syz-executor 82482 202732 15670 0 3 0x4000080 fsleep syz-executor 19817 24827 0 0 3 0x14200 acct acct 77484 127373 35795 0 3 0x3000 suspend syz-executor 77484 286364 35795 0 2 0x4081000 syz-executor 71180 27517 38356 0 3 0x82 nanoslp syz-executor 31891 181304 0 0 3 0x14200 bored sosplice 26374 16608 38356 0 3 0x82 nanoslp syz-executor 73055 184653 38356 0 2 0xc82 syz-executor 30003 2589 38356 0 2 0xc82 syz-executor 70760 372011 38356 0 3 0x82 nanoslp syz-executor 72229 401395 38356 0 3 0x82 piperd syz-executor 15670 16301 38356 0 3 0x82 nanoslp syz-executor 35795 486001 38356 0 3 0x82 wait syz-executor 38356 76801 9382 0 2 0xc82 syz-executor 9382 365962 30798 0 3 0x10008a sigsusp ksh 30798 485540 66456 0 3 0x98 kqread sshd-session 66456 343282 70443 0 3 0x92 kqread sshd-session 4683 358722 1 0 3 0x100083 ttyopn getty 70443 467318 1 0 3 0x88 kqread sshd 28451 488988 29978 74 3 0x1100092 bpf pflogd 29978 83877 1 0 3 0x80 sbwait pflogd 80292 83441 32975 73 3 0x1100090 kqread syslogd 32975 499583 1 0 3 0x100082 sbwait syslogd 74521 185144 1 0 3 0x100080 kqread resolvd 97798 269011 90051 77 3 0x100092 kqread dhcpleased 14994 328135 90051 77 3 0x100092 kqread dhcpleased 90051 157648 1 0 3 0x80 kqread dhcpleased 31543 135064 0 0 3 0x14200 bored smr 42764 263342 0 0 3 0x14200 pgzero zerothread 20903 226889 0 0 3 0x14200 aiodoned aiodoned 36082 440048 0 0 3 0x14200 syncer update 39764 156782 0 0 3 0x14200 cleaner cleaner 60421 49881 0 0 3 0x14200 reaper reaper 69781 351400 0 0 3 0x14200 pgdaemon pagedaemon 32748 335703 0 0 3 0x14200 bored viomb 24574 198984 0 0 3 0x40014200 acpi0 acpi0 76648 249686 0 0 3 0x40014200 idle1 22740 188624 0 0 3 0x14200 bored softnet7 12883 337402 0 0 3 0x14200 bored softnet6 59465 314562 0 0 3 0x14200 bored softnet5 97079 16598 0 0 3 0x14200 bored softnet4 17377 73426 0 0 3 0x14200 bored softnet3 1093 126567 0 0 3 0x14200 bored softnet2 93184 241639 0 0 3 0x14200 bored softnet1 47173 154757 0 0 3 0x14200 bored softnet0 49420 241175 0 0 3 0x14200 smrbar systqmp 45517 371312 0 0 3 0x14200 bored systq 15151 477930 0 0 3 0x14200 tmoslp softclockmp 23594 120181 0 0 2 0x40014200 softclock 89866 181413 0 0 3 0x40014200 idle0 1 382561 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 20033 (syz-executor) thread 0xffff800039432560 (232037) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff838b0db0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 sleep_finish+0x2d8 sys/kern/kern_synch.c:367 #3 biowait+0xc6 sys/kern/vfs_bio.c:1242 #4 bwrite+0x2e7 sys/kern/vfs_bio.c:754 #5 ffs_write+0x810 sys/ufs/ffs/ffs_vnops.c:377 #6 VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 #7 vn_write+0x1d3 sys/kern/vfs_vnops.c:408 #8 dofilewritev+0x242 sys/kern/sys_generic.c:380 #9 sys_write+0xa2 sys/kern/sys_generic.c:300 #10 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #10 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd805e3ce338) #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 77484 (syz-executor) thread 0xffff8000ffff2d08 (286364) exclusive rrwlock inode r = 0 (0xfffffd807850b368) #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 49420 (systqmp) thread 0xffff8000ffffe298 (241175) shared rwlock systqmp r = 0 (0xffffffff8380feb8) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 taskq_thread+0x12a sys/kern/kern_task.c:442 #2 proc_trampoline+0x10 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10221 11280K 11508K 166960K 11740 0 pcb 20 16K 21K 166960K 258 0 rtable 181 5K 6K 166960K 306 0 pf 34 17K 19K 166960K 71 0 ifaddr 40 6K 8K 166960K 63 0 ifgroup 55 2K 2K 166960K 88 0 sysctl 4 1K 9K 166960K 48 0 counters 68 36K 37K 166960K 98 0 ioctlops 0 0K 4K 166960K 1539 0 iov 0 0K 16K 166960K 52 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1368 86K 86K 166960K 1700 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 7 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 28 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 93K 166960K 514 0 sigio 0 0K 0K 166960K 8 0 proc 75 131K 164K 166960K 601 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 86 0 in_multi 86 6K 7K 166960K 126 0 ether_multi 1 0K 0K 166960K 4 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 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 529 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 255 176K 182K 166960K 6504 0 UVM aobj 11 4K 4K 166960K 12 0 pinsyscall 42 84K 102K 166960K 1648 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 20 0 NDP 12 0K 2K 166960K 41 0 temp 78 8648K 8716K 166960K 19502 0 kqueue 14 22K 30K 166960K 94 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 60 0 56 1 0 1 1 0 8 0 rtentry 176 110 0 30 5 0 5 5 0 8 0 unpcb 144 383 0 362 4 1 3 4 0 8 2 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 736 153 0 147 5 1 4 4 0 8 3 arp 128 13 0 1 1 0 1 1 0 8 0 inpcb 328 742 0 729 12 8 4 12 0 8 2 nd6 144 20 0 3 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 1 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 11 0 11 1 0 1 1 0 8 1 pppxif 1504 2 0 2 1 1 0 1 0 8 0 pffrag 232 5 0 2 1 0 1 1 0 482 0 pffrnode 88 5 0 2 1 0 1 1 0 8 0 pffrent 40 8 0 5 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 pfstitem 24 43 0 1 1 0 1 1 0 8 0 pfstkey 128 43 0 1 2 0 2 2 0 8 0 pfstate 384 43 0 1 5 0 5 5 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 498 0 119 28 3 25 28 0 8 0 art_table 40 499 0 119 5 0 5 5 0 8 0 art_node 32 110 0 37 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 6 1 0 1 1 0 8 0 semupl 112 2 0 2 2 1 1 1 0 8 1 semapl 112 24 0 14 1 0 1 1 0 8 0 shmpl 112 9 0 1 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2260 0 743 96 0 96 96 0 8 0 ffsino 296 2260 0 743 118 0 118 118 0 8 0 nchpl 144 2977 0 1277 64 0 64 64 0 8 0 rtmask 32 2 0 2 2 1 1 1 0 8 1 uvmvnodes 80 2543 0 0 52 0 52 52 0 8 0 vnodes 216 2543 0 0 142 0 142 142 0 8 0 namei 1024 9542 0 9542 2 1 1 2 0 8 1 percpumem 16 64 0 15 1 0 1 1 0 8 0 kstatmem 264 48 0 22 3 1 2 3 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 15260 0 15259 10 7 3 8 1 8 2 plimitpl 152 143 0 121 1 0 1 1 0 8 0 sigapl 424 826 0 771 7 0 7 7 0 8 0 knotepl 120 352 0 0 11 0 11 11 0 8 0 kqueuepl 224 211 0 200 5 4 1 5 0 8 0 pipepl 344 318 0 290 9 3 6 9 0 8 3 fdescpl 528 801 0 770 3 0 3 3 0 8 0 filepl 160 4708 0 4470 16 1 15 16 0 8 3 lockfpl 104 130 0 125 1 0 1 1 0 8 0 lockfspl 48 63 0 59 1 0 1 1 0 8 0 sessionpl 144 23 0 14 1 0 1 1 0 8 0 pgrppl 48 37 0 20 1 0 1 1 0 8 0 ucredpl 104 536 0 523 1 0 1 1 0 8 0 zombiepl 144 773 0 771 1 0 1 1 0 8 0 processpl 1248 826 0 771 5 0 5 5 0 8 0 procpl 664 1485 0 1417 8 1 7 7 0 8 1 sosppl 168 3 0 3 1 1 0 1 0 8 0 sockpl 752 1204 0 1166 19 10 9 17 0 8 4 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 113 0 0 15 0 15 15 0 8 0 mcl2k 2048 22 0 0 3 0 3 3 0 8 0 mtagpl 96 9 0 0 1 0 1 1 0 8 0 mbufpl 256 1196 0 0 75 0 75 75 0 8 0 bufpl 280 6293 0 150 439 0 439 439 0 8 0 anonpl 32 8495 0 0 69 0 69 69 0 246 0 amapchunkpl 152 20431 0 19899 36 3 33 33 0 158 11 amappl16 200 2170 0 1854 24 6 18 18 0 8 0 amappl15 192 2 0 2 1 1 0 1 0 8 0 amappl14 184 117 0 105 1 0 1 1 0 8 0 amappl13 176 8 0 7 1 0 1 1 0 8 0 amappl12 168 1505 0 1473 4 2 2 3 0 8 0 amappl11 160 53 0 39 1 0 1 1 0 8 0 amappl10 152 2 0 2 1 1 0 1 0 8 0 amappl9 144 273 0 273 1 1 0 1 0 8 0 amappl8 136 20 0 18 1 0 1 1 0 8 0 amappl7 128 121 0 108 1 0 1 1 0 8 0 amappl6 120 196 0 193 1 0 1 1 0 8 0 amappl5 112 132 0 122 1 0 1 1 0 8 0 amappl4 104 296 0 277 1 0 1 1 0 8 0 amappl3 96 3874 0 3755 5 1 4 4 0 8 0 amappl2 88 660 0 595 2 0 2 2 0 8 0 amappl1 80 9928 0 9325 14 1 13 14 0 8 0 amappl 88 5728 0 5551 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 7 0 7 2 1 1 1 0 8 1 dma128 128 254 0 254 2 2 0 1 0 8 0 dma64 64 7 0 7 2 2 0 1 0 8 0 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 11 0 1 1 0 1 1 0 8 0 uaddrrnd 24 801 0 770 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 801 0 770 1 0 1 1 0 8 0 vmmpekpl 168 8584 0 8539 3 0 3 3 0 8 0 vmmpepl 168 55746 0 53456 106 3 103 103 0 357 0 vmsppl 488 800 0 770 6 1 5 5 0 8 0 rwobjpl 80 19378 0 15585 78 0 78 78 0 8 0 pdppl 4096 1609 0 1540 103 32 71 85 0 8 2 pvpl 32 16140 0 0 131 0 131 131 0 265 0 pmappl 256 800 0 770 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 343 0 42 9 0 9 9 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace _copyin() at _copyin+0x57 syscall(ffff80003c4a1ed0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4a1ed0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x83f10989b30, count: -3 ddb{0}> machine ddbcpu 1