uvm_fault(0xfffffd806b9543e8, 0x6bc0, 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 *255961 86371 0 0 0x4000000 0 syz-executor 194603 76298 0 0x10 0x1 1 syz-executor copyout() at copyout+0x57 syscall(ffff80003c467890) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c467890) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2d396213930, 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(0xfffffd806b9543e8, 0x6bc0, 0, 2) -> e ddb{0}> trace copyout() at copyout+0x57 syscall(ffff80003c467890) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c467890) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2d396213930, count: -3 ddb{0}> show registers rdi 0x6bc0 __ALIGN_SIZE+0x5bc0 rsi 0xffff80003c4676c0 rbp 0xffff80003c4677b0 rbx 0x4000a69d rdx 0xffff80003c462000 rcx 0x4 rax 0x20 r8 0x7f7fffffc000 r9 0xfffffd80097fb618 r10 0xcb7ac16d1d01b34 r11 0xffffffff82c660e0 copy_fault r12 0x1 r13 0x16 r14 0xffff80003c467890 r15 0xffff80003c4676c0 rip 0xffffffff82c66007 copyout+0x57 cs 0x8 rflags 0x50202 acpi_pdirpa+0x3c073 rsp 0xffff80003c4674f0 ss 0 copyout+0x57: repe movsq (%rsi),%es:(%rdi) ddb{0}> show proc PROC (syz-executor) tid=255961 pid=86371 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a331228,0xffff8000ffff39c0 process=0xffff80002a2b2238 user=0xffff80003c462000, vmspace=0xfffffd806b9543e8 estcpu=34, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 95281 472412 69042 0 2 0 syz-executor 86371 102873 29231 0 2 0 syz-executor *86371 255961 29231 0 7 0x4000000 syz-executor 98872 477395 80325 0 2 0 syz-executor 98872 413100 80325 0 3 0x4000080 fsleep syz-executor 98872 188940 80325 0 3 0x4000080 fsleep syz-executor 76298 194603 16637 0 7 0x11 syz-executor 76298 436809 16637 0 3 0x4000090 fsleep syz-executor 76298 441345 16637 0 3 0x4000090 fsleep syz-executor 555 264133 11358 0 2 0xc80 syz-executor 555 288953 11358 0 3 0x4000080 netcon syz-executor 555 488658 11358 0 3 0x4000080 fsleep syz-executor 36818 437032 4134 0 2 0xc80 syz-executor 36818 202268 4134 0 3 0x4000080 kqsel syz-executor 36818 31788 4134 0 3 0x4000080 fsleep syz-executor 39136 427501 0 0 3 0x14200 acct acct 4134 507054 54192 0 2 0x2 syz-executor 29231 189821 54192 0 3 0x82 nanoslp syz-executor 49310 455608 1 0 3 0x100083 ttyin getty 69042 108232 54192 0 3 0x82 nanoslp syz-executor 80325 85692 54192 0 3 0x82 nanoslp syz-executor 11358 1148 54192 0 2 0xc82 syz-executor 58657 34907 54192 0 3 0x82 wait syz-executor 87590 75861 0 0 3 0x14200 bored sosplice 16637 146048 54192 0 2 0xc82 syz-executor 92708 85029 54192 0 3 0x82 wait syz-executor 54192 370836 43353 0 3 0x82 kqread syz-executor 43353 162935 97171 0 3 0x10008a sigsusp ksh 97171 278619 41672 0 3 0x98 kqread sshd-session 41672 157990 2927 0 3 0x92 kqread sshd-session 2927 184485 1 0 3 0x88 kqread sshd 81483 171833 99177 74 3 0x1100092 bpf pflogd 99177 440405 1 0 3 0x80 sbwait pflogd 19451 398956 18261 73 3 0x1100090 kqread syslogd 18261 96362 1 0 3 0x100082 sbwait syslogd 6145 95001 1 0 3 0x100080 kqread resolvd 73135 297145 44577 77 3 0x100092 kqread dhcpleased 95468 461335 44577 77 3 0x100092 kqread dhcpleased 44577 15099 1 0 3 0x80 kqread dhcpleased 15267 326747 0 0 3 0x14200 bored smr 60680 15948 0 0 2 0x14200 zerothread 42566 215365 0 0 3 0x14200 aiodoned aiodoned 46929 137320 0 0 3 0x14200 syncer update 17859 39290 0 0 3 0x14200 cleaner cleaner 62061 314374 0 0 3 0x14200 reaper reaper 634 213516 0 0 3 0x14200 pgdaemon pagedaemon 16673 105650 0 0 3 0x14200 bored viomb 94040 501140 0 0 3 0x40014200 acpi0 acpi0 85019 357207 0 0 3 0x40014200 idle1 77036 291590 0 0 3 0x14200 bored softnet7 44091 322036 0 0 3 0x14200 bored softnet6 42845 353348 0 0 3 0x14200 bored softnet5 27258 11035 0 0 3 0x14200 bored softnet4 7015 242535 0 0 3 0x14200 bored softnet3 32282 88376 0 0 3 0x14200 bored softnet2 66517 428685 0 0 3 0x14200 bored softnet1 682 221609 0 0 3 0x14200 bored softnet0 38309 70051 0 0 3 0x14200 bored systqmp 66305 193910 0 0 3 0x14200 bored systq 58918 214042 0 0 3 0x14200 tmoslp softclockmp 28832 186846 0 0 2 0x40014200 softclock 68947 381685 0 0 3 0x40014200 idle0 1 329878 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 76298 (syz-executor) thread 0xffff80002a331748 (436809) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83977ef0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 sleep_finish+0x2da sys/kern/kern_synch.c:366 #3 biowait+0xc1 sys/kern/vfs_bio.c:1242 #4 bwrite+0x2e5 sys/kern/vfs_bio.c:754 #5 ffs_update+0x34f sys/ufs/ffs/ffs_inode.c:111 #6 ufs_makeinode+0x4b2 sys/ufs/ufs/ufs_vnops.c:1764 #7 ufs_mknod+0x5b sys/ufs/ufs/ufs_vnops.c:167 #8 VOP_MKNOD+0x102 sys/kern/vfs_vops.c:121 #9 domknodat+0x47e sys/kern/vfs_syscalls.c:1636 #10 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #10 syscall+0xb08 sys/arch/amd64/amd64/trap.c:748 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806b5f6b48) #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 ufs_ihashins+0x4f ufs_ihash sys/ufs/ufs/ufs_ihash.c:-1 [inline] #4 ufs_ihashins+0x4f sys/ufs/ufs/ufs_ihash.c:159 #5 ffs_vget+0x187 sys/ufs/ffs/ffs_vfsops.c:1232 #6 ffs_inode_alloc+0x283 sys/ufs/ffs/ffs_alloc.c:393 #7 ufs_makeinode+0xcb sys/ufs/ufs/ufs_vnops.c:1732 #8 ufs_mknod+0x5b sys/ufs/ufs/ufs_vnops.c:167 #9 VOP_MKNOD+0x102 sys/kern/vfs_vops.c:121 #10 domknodat+0x47e sys/kern/vfs_syscalls.c:1636 #11 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #11 syscall+0xb08 sys/arch/amd64/amd64/trap.c:748 #12 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806e97beb8) #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 domknodat+0xb4 sys/kern/vfs_syscalls.c:1588 #8 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #8 syscall+0xb08 sys/arch/amd64/amd64/trap.c:748 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10237 11076K 11521K 166960K 14870 0 pcb 17 15K 16K 166960K 531 0 rtable 224 11K 11K 166960K 702 0 pf 38 18K 23K 166960K 268 0 ifaddr 39 7K 8K 166960K 168 0 ifgroup 51 2K 2K 166960K 266 0 sysctl 4 1K 9K 166960K 19 0 counters 66 36K 38K 166960K 334 0 ioctlops 0 0K 4K 166960K 1934 0 iov 0 0K 24K 166960K 109 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1462 92K 92K 166960K 3758 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 10K 14K 166960K 19 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 83 0 dirhash 12 2K 2K 166960K 27 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 240K 166960K 2281 0 sigio 1 0K 0K 166960K 104 0 proc 75 131K 164K 166960K 1056 0 subproc 72 4K 4K 166960K 173 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 327 0 in_multi 86 6K 7K 166960K 319 0 ether_multi 1 0K 0K 166960K 20 0 mrt 1 0K 0K 166960K 14 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 690 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 240 168K 185K 166960K 21833 0 UVM aobj 128 6K 6K 166960K 130 0 pinsyscall 43 86K 100K 166960K 3632 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 107 0 NDP 11 0K 1K 166960K 120 0 temp 79 8684K 8796K 166960K 100667 0 kqueue 13 20K 32K 166960K 390 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 308 0 305 5 3 2 3 0 8 1 rtentry 176 257 0 171 5 0 5 5 0 8 0 unpcb 144 1637 0 1615 12 11 1 4 0 8 0 syncache 336 4 0 4 2 2 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 736 569 0 563 14 12 2 7 0 8 1 arp 128 30 0 20 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 3 0 3 1 1 0 1 0 8 0 inpcb 328 2312 0 2300 20 16 4 8 0 8 2 nd6 144 48 0 28 1 0 1 1 0 8 0 pkpcb 40 15 0 15 5 5 0 1 0 8 0 kcovpl 48 19 0 11 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 105 0 105 3 2 1 1 0 8 1 pppxif 1504 7 0 7 4 4 0 1 0 8 0 pfstscr 40 25 0 23 1 0 1 1 0 8 0 pffrag 232 20 0 10 1 0 1 1 0 482 0 pffrnode 88 17 0 8 1 0 1 1 0 8 0 pffrent 40 44 0 32 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 pfrktable 1344 2 0 2 1 1 0 1 0 8 0 pftag 88 5 0 2 2 1 1 1 0 8 0 pfstitem 24 162 0 61 1 0 1 1 0 8 0 pfstkey 128 187 0 84 4 0 4 4 0 8 0 pfstate 384 180 0 81 11 0 11 11 0 8 0 pfrule 1344 40 0 34 2 1 1 2 0 8 0 rttmr 136 5 0 5 5 5 0 1 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 1226 0 808 38 7 31 32 0 8 1 art_table 40 1230 0 808 6 0 6 6 0 8 0 art_node 32 256 0 183 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 79 0 69 1 0 1 1 0 8 0 shmpl 112 127 0 2 4 0 4 4 0 8 0 dirhash 1024 27 0 10 3 0 3 3 0 8 0 dino2pl 256 5371 0 3832 97 0 97 97 0 8 0 ffsino 296 5371 0 3832 119 0 119 119 0 8 0 nchpl 144 8436 0 7801 65 37 28 65 0 8 1 rtmask 32 15 0 15 4 4 0 1 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 30858 0 30858 4 3 1 2 0 8 1 percpumem 16 182 0 134 1 0 1 1 0 8 0 kstatmem 264 166 0 142 7 5 2 3 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 8 0 8 3 3 0 1 0 8 0 scxspl 216 50271 0 50271 15 14 1 8 1 8 1 plimitpl 152 569 0 551 1 0 1 1 0 8 0 sigapl 424 2544 0 2488 7 0 7 7 0 8 0 knotepl 120 346 0 0 10 0 10 10 0 8 0 kqueuepl 224 894 0 881 9 4 5 5 0 8 4 pipepl 344 430 0 403 9 6 3 9 0 8 0 fdescpl 528 2516 0 2484 3 0 3 3 0 8 0 filepl 160 17655 0 17423 26 12 14 17 0 8 0 lockfpl 104 1665 0 1662 4 3 1 2 0 8 0 lockfspl 48 668 0 665 1 0 1 1 0 8 0 sessionpl 144 36 0 27 1 0 1 1 0 8 0 pgrppl 48 72 0 55 1 0 1 1 0 8 0 ucredpl 104 2609 0 2594 1 0 1 1 0 8 0 zombiepl 144 2490 0 2488 1 0 1 1 0 8 0 processpl 1248 2544 0 2488 5 0 5 5 0 8 0 procpl 656 5807 0 5742 8 1 7 7 0 8 0 sosppl 168 11 0 11 4 3 1 1 0 8 1 sockpl 752 4323 0 4286 28 21 7 13 0 8 3 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 119 0 0 15 0 15 15 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 97 0 0 9 0 9 9 0 8 0 mtagpl 96 160 0 0 4 0 4 4 0 8 0 mbufpl 256 1260 0 0 78 0 78 78 0 8 0 bufpl 280 21255 0 15113 440 1 439 440 0 8 0 anonpl 32 11861 0 0 96 0 96 96 0 246 0 amapchunkpl 152 85518 0 85036 57 25 32 37 0 158 8 amappl16 200 7393 0 7355 81 67 14 28 0 8 8 amappl15 192 1 0 1 1 1 0 1 0 8 0 amappl14 184 139 0 127 1 0 1 1 0 8 0 amappl13 176 7 0 7 2 2 0 1 0 8 0 amappl12 168 3328 0 3297 4 1 3 3 0 8 0 amappl11 160 54 0 40 1 0 1 1 0 8 0 amappl10 152 10 0 9 1 0 1 1 0 8 0 amappl9 144 254 0 253 1 0 1 1 0 8 0 amappl8 136 35 0 32 1 0 1 1 0 8 0 amappl7 128 128 0 116 1 0 1 1 0 8 0 amappl6 120 302 0 298 1 0 1 1 0 8 0 amappl5 112 176 0 165 1 0 1 1 0 8 0 amappl4 104 313 0 295 1 0 1 1 0 8 0 amappl3 96 14954 0 14844 5 1 4 4 0 8 0 amappl2 88 823 0 759 2 0 2 2 0 8 0 amappl1 80 17608 0 17001 15 1 14 15 0 8 0 amappl 88 20607 0 20441 5 0 5 5 0 92 0 dma8192 8192 1 0 1 1 1 0 1 0 8 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 2 0 1 0 8 0 dma128 128 256 0 256 4 4 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 8 0 8 2 2 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 129 0 2 3 0 3 3 0 8 0 uaddrrnd 24 2516 0 2484 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2516 0 2484 1 0 1 1 0 8 0 vmmpekpl 168 18676 0 18617 4 0 4 4 0 8 0 vmmpepl 168 160207 0 158150 133 21 112 112 0 357 8 vmsppl 488 2515 0 2484 5 0 5 5 0 8 0 rwobjpl 80 46617 0 39627 154 1 153 153 0 8 6 pdppl 4096 5040 0 4968 126 54 72 84 0 8 0 pvpl 32 23091 0 0 186 1 185 185 0 265 0 pmappl 256 2515 0 2484 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 403 0 84 10 0 10 10 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace copyout() at copyout+0x57 syscall(ffff80003c467890) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c467890) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2d396213930, 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 __mp_lock(ffffffff83977ce8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff83977ce8) at __mp_lock+0x192 sys/kern/kern_lock.c:165 ktrsyscall(ffff80002a331c68,4a,18,ffff8000347f7990) at ktrsyscall+0x2b3 ktrwrite sys/kern/kern_ktrace.c:-1 [inline] ktrsyscall(ffff80002a331c68,4a,18,ffff8000347f7990) at ktrsyscall+0x2b3 sys/kern/kern_ktrace.c:183 syscall(ffff8000347f7990) at syscall+0x2e6 mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff8000347f7990) at syscall+0x2e6 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70474bc85550, count: 8 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 __mp_lock(ffffffff83977ce8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff83977ce8) at __mp_lock+0x192 sys/kern/kern_lock.c:165 ktrsyscall(ffff80002a331c68,4a,18,ffff8000347f7990) at ktrsyscall+0x2b3 ktrwrite sys/kern/kern_ktrace.c:-1 [inline] ktrsyscall(ffff80002a331c68,4a,18,ffff8000347f7990) at ktrsyscall+0x2b3 sys/kern/kern_ktrace.c:183 syscall(ffff8000347f7990) at syscall+0x2e6 mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff8000347f7990) at syscall+0x2e6 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70474bc85550, count: -7