login: uvm_fault(0xfffffd80653d77c8, 0x7b00, 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 *452668 97650 0 0 0x4000000 0 syz-executor copyout() at copyout+0x57 syscall(ffff80003c47f160) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c47f160) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x994bbe972f0, 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(0xfffffd80653d77c8, 0x7b00, 0, 2) -> e ddb{0}> trace copyout() at copyout+0x57 syscall(ffff80003c47f160) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c47f160) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x994bbe972f0, count: -3 ddb{0}> show registers rdi 0x7b00 __ALIGN_SIZE+0x6b00 rsi 0xffff80003c47eed0 rbp 0xffff80003c47f080 rbx 0x8000428 __kernel_phys_end+0x4400428 rdx 0xffff80003c47a000 rcx 0x4 rax 0x20 r8 0x7f7fffffc000 r9 0xffff80003c47eb08 r10 0x69909bd530035072 r11 0xffffffff8149e710 copy_fault r12 0x7 r13 0x16 r14 0xffff80003c47f160 r15 0xffff80003c47eed0 rip 0xffffffff8149e637 copyout+0x57 cs 0x8 rflags 0x50202 acpi_pdirpa+0x3c073 rsp 0xffff80003c47edc0 ss 0x10 copyout+0x57: repe movsq (%rsi),%es:(%rdi) ddb{0}> show proc PROC (syz-executor) tid=452668 pid=97650 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a2a8538,0xffff80002a2a6d00 process=0xffff800039816720 user=0xffff80003c47a000, vmspace=0xfffffd80653d77c8 estcpu=36, cpticks=3, pctcpu=0.0, user=0, sys=3, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 15949 121185 26152 0 2 0x82000 syz-executor 15949 197388 26152 0 4 0x4082000 syz-executor 15949 435276 26152 0 3 0x4002000 suspend syz-executor 97650 523601 30909 0 2 0 syz-executor 97650 463101 30909 0 2 0x4000080 syz-executor *97650 452668 30909 0 7 0x4000000 syz-executor 26398 19733 8417 0 2 0 syz-executor 26398 152471 8417 0 3 0x4000080 fsleep syz-executor 57272 313092 29344 0 2 0 syz-executor 57272 148498 29344 0 3 0x4000080 sbwait syz-executor 31824 225922 64480 0 3 0x80 nanoslp syz-executor 31824 28441 64480 0 3 0x4000080 lockf syz-executor 31824 163938 64480 0 3 0x4000080 fsleep syz-executor 56075 101254 91607 0 2 0 syz-executor 56075 194232 91607 0 3 0x4000080 msgwait syz-executor 56075 135670 91607 0 3 0x4000080 fsleep syz-executor 56075 86662 91607 0 3 0x4000080 fsleep syz-executor 31765 500110 84625 0 3 0x3000 suspend syz-executor 31765 124761 84625 0 2 0x4081000 syz-executor 31765 506897 84625 0 3 0x4081000 inode syz-executor 10205 178286 1 0 3 0x100083 ttyin getty 29344 20046 13335 0 2 0xc82 syz-executor 70569 495976 54792 0 3 0x82 sbwait sshd-session 26152 207732 13335 0 3 0x82 nanoslp syz-executor 47725 281627 0 0 3 0x14200 bored sosplice 91607 237862 13335 0 2 0xc82 syz-executor 64480 60436 13335 0 2 0xc82 syz-executor 8417 472690 13335 0 2 0xc82 syz-executor 30909 483845 13335 0 3 0x82 nanoslp syz-executor 84625 43523 13335 0 2 0xc82 syz-executor 8601 253284 13335 0 3 0x82 wait syz-executor 13335 230076 96825 0 3 0x82 kqread syz-executor 96825 195760 12237 0 3 0x10008a sigsusp ksh 12237 32151 71038 0 3 0x98 kqread sshd-session 71038 130669 54792 0 3 0x92 kqread sshd-session 54792 2483 1 0 3 0x88 kqread sshd 22404 368854 81360 74 3 0x1100092 bpf pflogd 81360 314816 1 0 3 0x80 sbwait pflogd 65517 455836 90910 73 3 0x1100090 kqread syslogd 90910 411899 1 0 3 0x100082 sbwait syslogd 16064 292583 1 0 3 0x100080 kqread resolvd 41828 239499 476 77 3 0x100092 kqread dhcpleased 45000 216924 476 77 3 0x100092 kqread dhcpleased 476 510815 1 0 3 0x80 kqread dhcpleased 80522 70321 0 0 3 0x14200 bored smr 12567 61058 0 0 2 0x14200 zerothread 55546 267131 0 0 3 0x14200 aiodoned aiodoned 77482 97291 0 0 3 0x14200 syncer update 30364 264021 0 0 3 0x14200 cleaner cleaner 72386 410161 0 0 3 0x14200 reaper reaper 24482 197548 0 0 3 0x14200 pgdaemon pagedaemon 83909 327920 0 0 3 0x14200 bored viomb 27956 71373 0 0 3 0x40014200 acpi0 acpi0 44081 519015 0 0 7 0x40014200 idle1 50752 64302 0 0 3 0x14200 bored softnet7 20600 205258 0 0 3 0x14200 bored softnet6 54322 78561 0 0 3 0x14200 bored softnet5 29275 339001 0 0 3 0x14200 bored softnet4 79409 228798 0 0 3 0x14200 bored softnet3 79930 304599 0 0 3 0x14200 bored softnet2 12488 285888 0 0 3 0x14200 bored softnet1 31405 398037 0 0 3 0x14200 bored softnet0 98531 306034 0 0 3 0x14200 bored systqmp 95520 39390 0 0 3 0x14200 bored systq 3904 227682 0 0 3 0x14200 tmoslp softclockmp 13799 521728 0 0 2 0x40014200 softclock 71615 50248 0 0 3 0x40014200 idle0 1 296861 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 31765 (syz-executor) thread 0xffff80002a2a6540 (124761) exclusive rrwlock inode r = 0 (0xfffffd806b226580) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x42b sys/kern/kern_rwlock.c:319 #2 rrw_enter+0xc6 sys/kern/kern_rwlock.c:621 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:527 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:570 #5 vn_write+0x190 sys/kern/vfs_vnops.c:405 #6 dofilewritev+0x23c sys/kern/sys_generic.c:380 #7 sys_write+0xa2 sys/kern/sys_generic.c:300 #8 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #8 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:748 #9 Xsyscall+0x128 Process 31765 (syz-executor) thread 0xffff80002a2a7210 (506897) exclusive rrwlock inode r = 0 (0xfffffd806f51ad78) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x42b sys/kern/kern_rwlock.c:319 #2 rrw_enter+0xc6 sys/kern/kern_rwlock.c:621 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:527 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:570 #5 vfs_lookup+0x109 sys/kern/vfs_lookup.c:418 #6 namei+0x7aa sys/kern/vfs_lookup.c:250 #7 unp_connect+0x27d sys/kern/uipc_usrreq.c:872 #8 sys_connect+0x345 sys/kern/uipc_syscalls.c:415 #9 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #9 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:748 #10 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10245 11066K 11577K 166960K 12910 0 pcb 18 13K 14K 166960K 166 0 rtable 207 9K 10K 166960K 543 0 pf 39 18K 82K 166960K 101 0 ifaddr 40 7K 7K 166960K 82 0 ifgroup 59 2K 2K 166960K 118 0 sysctl 4 1K 9K 166960K 15 0 counters 70 37K 37K 166960K 138 0 ioctlops 0 0K 4K 166960K 1648 0 iov 0 0K 24K 166960K 47 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1465 92K 93K 166960K 2485 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 12 0K 0K 166960K 35 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 240K 166960K 1033 0 sigio 1 0K 0K 166960K 90 0 proc 72 115K 164K 166960K 687 0 subproc 72 4K 4K 166960K 90 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 108 0 in_multi 83 6K 7K 166960K 172 0 ether_multi 1 0K 0K 166960K 19 0 mrt 1 0K 0K 166960K 4 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 562 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 274 177K 189K 166960K 10959 0 UVM aobj 121 3K 3K 166960K 121 0 pinsyscall 45 90K 101K 166960K 2200 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 57 0 NDP 13 0K 2K 166960K 55 0 temp 72 8682K 8933K 166960K 44288 0 kqueue 15 22K 30K 166960K 199 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 86 0 82 1 0 1 1 0 8 0 rtentry 176 143 0 59 5 0 5 5 0 8 0 unpcb 144 1027 0 999 11 5 6 6 0 8 4 syncache 336 10 0 10 3 2 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 464 0 456 13 6 7 7 0 8 6 arp 128 19 0 9 1 0 1 1 0 8 0 inpcb 328 1370 0 1353 17 7 10 11 0 8 8 nd6 144 24 0 9 1 0 1 1 0 8 0 pkpcb 40 73 0 73 2 1 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1192 27 0 27 2 1 1 1 0 8 1 pppxif 1504 1 0 1 1 1 0 1 0 8 0 pffrag 232 7 0 2 1 0 1 1 0 482 0 pffrnode 88 7 0 2 1 0 1 1 0 8 0 pffrent 40 9 0 4 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 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 74 0 18 1 0 1 1 0 8 0 pfstkey 128 74 0 18 2 0 2 2 0 8 0 pfstate 384 74 0 18 6 0 6 6 0 8 0 pfrule 1344 23 0 16 2 0 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 583 0 200 31 2 29 29 0 8 2 art_table 40 585 0 200 5 0 5 5 0 8 0 art_node 32 143 0 68 1 0 1 1 0 8 0 sysvmsgpl 40 85 0 79 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 33 0 23 1 0 1 1 0 8 0 shmpl 112 118 0 0 4 0 4 4 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 3351 0 1839 95 0 95 95 0 8 0 ffsino 296 3351 0 1839 117 0 117 117 0 8 0 nchpl 144 4721 0 3021 65 1 64 64 0 8 0 rtmask 32 9 0 9 2 1 1 1 0 8 1 uvmvnodes 80 4079 0 0 84 0 84 84 0 8 0 vnodes 216 4079 0 0 227 0 227 227 0 8 0 namei 1024 16602 0 16601 2 1 1 2 0 8 0 percpumem 16 84 0 34 1 0 1 1 0 8 0 kstatmem 264 74 0 44 3 0 3 3 0 8 0 scsiplug 72 8 0 8 3 2 1 1 0 8 1 scxspl 216 27374 0 27374 12 9 3 8 1 8 3 plimitpl 152 249 0 230 1 0 1 1 0 8 0 sigapl 424 1346 0 1290 9 2 7 9 0 8 0 knotepl 120 483 0 0 15 0 15 15 0 8 0 kqueuepl 224 329 0 317 4 2 2 3 0 8 1 pipepl 344 231 0 204 6 1 5 6 0 8 2 fdescpl 528 1299 0 1266 3 0 3 3 0 8 0 filepl 160 8989 0 8736 30 10 20 22 0 8 8 lockfpl 104 637 0 631 2 1 1 2 0 8 0 lockfspl 48 293 0 288 1 0 1 1 0 8 0 sessionpl 144 31 0 21 1 0 1 1 0 8 0 pgrppl 48 57 0 39 1 0 1 1 0 8 0 ucredpl 104 1614 0 1601 1 0 1 1 0 8 0 zombiepl 144 1292 0 1290 1 0 1 1 0 8 0 processpl 1248 1346 0 1290 6 1 5 6 0 8 0 procpl 656 2733 0 2664 9 2 7 8 0 8 0 sosppl 168 12 0 12 2 1 1 1 0 8 1 sockpl 752 2633 0 2584 46 33 13 29 0 8 7 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 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 112 0 0 14 0 14 14 0 8 0 mcl2k 2048 41 0 0 5 0 5 5 0 8 0 mtagpl 96 128 0 0 4 0 4 4 0 8 0 mbufpl 256 360 0 0 22 0 22 22 0 8 0 bufpl 280 10938 0 4796 439 0 439 439 0 8 0 anonpl 32 12590 0 0 102 0 102 102 0 246 0 amapchunkpl 152 35587 0 34972 41 11 30 30 0 158 4 amappl16 200 4862 0 4599 39 14 25 27 0 8 8 amappl15 192 17 0 17 1 1 0 1 0 8 0 amappl14 184 159 0 145 1 0 1 1 0 8 0 amappl13 176 11 0 11 2 2 0 1 0 8 0 amappl12 168 1994 0 1961 3 1 2 2 0 8 0 amappl11 160 96 0 81 1 0 1 1 0 8 0 amappl10 152 27 0 27 1 1 0 1 0 8 0 amappl9 144 244 0 244 2 2 0 1 0 8 0 amappl8 136 27 0 24 1 0 1 1 0 8 0 amappl7 128 135 0 122 1 0 1 1 0 8 0 amappl6 120 234 0 229 1 0 1 1 0 8 0 amappl5 112 154 0 144 1 0 1 1 0 8 0 amappl4 104 353 0 333 1 0 1 1 0 8 0 amappl3 96 7124 0 6998 6 2 4 4 0 8 0 amappl2 88 721 0 653 2 0 2 2 0 8 0 amappl1 80 13229 0 12537 17 1 16 16 0 8 0 amappl 88 10021 0 9827 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 dma256 256 7 0 7 2 2 0 1 0 8 0 dma128 128 254 0 254 2 2 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 20 0 19 1 0 1 1 0 8 0 aobjpl 72 120 0 0 3 0 3 3 0 8 0 uaddrrnd 24 1299 0 1266 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1299 0 1266 1 0 1 1 0 8 0 vmmpekpl 168 12111 0 12066 3 0 3 3 0 8 0 vmmpepl 168 89257 0 86827 126 9 117 117 0 357 7 vmsppl 488 1298 0 1266 6 1 5 5 0 8 0 rwobjpl 80 30023 0 24529 113 0 113 113 0 8 0 pdppl 4096 2606 0 2532 106 32 74 82 0 8 0 pvpl 32 20949 0 0 169 0 169 169 0 265 0 pmappl 256 1298 0 1266 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 306 0 46 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace copyout() at copyout+0x57 syscall(ffff80003c47f160) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c47f160) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x994bbe972f0, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299ddff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu_x86.c:1218 sched_idle(ffff8000299ddff0) at sched_idle+0x4d8 sys/kern/kern_sched.c:191 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff8000299ddff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu_x86.c:1218 sched_idle(ffff8000299ddff0) at sched_idle+0x4d8 sys/kern/kern_sched.c:191 end trace frame: 0x0, count: -5