uvm_fault(0xffffffff838fce98, 0xffff800027512400, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memcpy+0x19: repe movsq (%rsi),%es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *314188 44726 0 0 0x4000000 0 syz-executor 198502 7874 0 0x2 0 1 syz-executor memcpy() at memcpy+0x19 ffs_truncate(fffffd806ea37d30,0,4,fffffd80097fb6e8) at ffs_truncate+0xc9b sys/ufs/ffs/ffs_inode.c:-1 ffs_write(ffff80003c4634d0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd80744ecb48,ffff80003c463688,7,fffffd80097fb6e8) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_write(fffffd806b9a1850,ffff80003c463688,0) at vn_write+0x1d3 sys/kern/vfs_vnops.c:408 dofilewritev(ffff8000fffee2b8,4,ffff80003c463688,0,ffff80003c463740) at dofilewritev+0x242 sys/kern/sys_generic.c:380 sys_write(ffff8000fffee2b8,ffff80003c4637f0,ffff80003c463740) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff80003c4637f0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4637f0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x289d8445b20, count: 6 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(0xffffffff838fce98, 0xffff800027512400, 0, 2) -> d ddb{0}> trace memcpy() at memcpy+0x19 ffs_truncate(fffffd806ea37d30,0,4,fffffd80097fb6e8) at ffs_truncate+0xc9b sys/ufs/ffs/ffs_inode.c:-1 ffs_write(ffff80003c4634d0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd80744ecb48,ffff80003c463688,7,fffffd80097fb6e8) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_write(fffffd806b9a1850,ffff80003c463688,0) at vn_write+0x1d3 sys/kern/vfs_vnops.c:408 dofilewritev(ffff8000fffee2b8,4,ffff80003c463688,0,ffff80003c463740) at dofilewritev+0x242 sys/kern/sys_generic.c:380 sys_write(ffff8000fffee2b8,ffff80003c4637f0,ffff80003c463740) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff80003c4637f0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4637f0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x289d8445b20, count: -9 ddb{0}> show registers rdi 0xffff800027512400 rsi 0xfffffd806e148400 rbp 0xffff80003c4631e0 rbx 0xffff800027512400 rdx 0x100 rcx 0x20 rax 0x7ffff acpi_pdirpa+0x6be70 r8 0xffffffffffffffff r9 0x65400 acpi_pdirpa+0x51271 r10 0x36bcf54ec9f8fdd1 r11 0xffff800027512400 r12 0x400 r13 0x2 r14 0x1 r15 0xfffffd805ca00268 rip 0xffffffff812360a9 memcpy+0x19 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80003c463178 ss 0x10 memcpy+0x19: repe movsq (%rsi),%es:(%rdi) ddb{0}> show proc PROC (syz-executor) tid=314188 pid=44726 tcnt=7 stat=onproc flags process=0 proc=4000000 runpri=17, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000fffeed18,0xffff8000fffef788 process=0xffff80002a3d09b8 user=0xffff80003c45e000, vmspace=0xfffffd806b952d70 estcpu=36, cpticks=8, pctcpu=0.0, user=0, sys=8, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 72769 480241 52179 0 2 0 syz-executor 72769 250984 52179 0 3 0x4000080 lockf syz-executor 57291 468468 12306 0 2 0 syz-executor 57291 427214 12306 0 3 0x4000080 fsleep syz-executor 57291 225151 12306 0 3 0x4000080 fsleep syz-executor 57291 223285 12306 0 3 0x4000080 fsleep syz-executor 75455 475302 42839 0 2 0 syz-executor 75455 199524 42839 0 2 0x4000000 syz-executor 75455 210154 42839 0 2 0x4000000 syz-executor 89381 10100 46380 0 2 0 syz-executor 89381 379605 46380 0 3 0x4000080 fsleep syz-executor 80769 157221 58035 0 2 0 syz-executor 80769 191521 58035 0 3 0x4000080 fsleep syz-executor 44726 270312 7874 0 2 0 syz-executor *44726 314188 7874 0 7 0x4000000 syz-executor 44726 415354 7874 0 3 0x4000000 inode syz-executor 44726 445154 7874 0 3 0x4000000 inode syz-executor 44726 277653 7874 0 3 0x4000000 inode syz-executor 44726 442996 7874 0 3 0x4000000 fltagain2 syz-executor 44726 475045 7874 0 3 0x4000080 pipeiolk syz-executor 73041 141647 87410 0 2 0 syz-executor 73041 446013 87410 0 3 0x4000080 msgwait syz-executor 73041 4637 87410 0 3 0x4000080 kqread syz-executor 73041 139975 87410 0 3 0x4000080 fsleep syz-executor 7874 198502 29499 0 7 0x2 syz-executor 87410 24936 29499 0 2 0x2 syz-executor 76536 420676 0 0 3 0x14200 acct acct 58035 335958 29499 0 3 0x82 nanoslp syz-executor 52179 252364 29499 0 3 0x82 nanoslp syz-executor 94510 70183 45570 0 3 0x82 sbwait sshd-session 61678 454948 0 0 3 0x14200 bored sosplice 82260 522853 1 0 3 0x100083 ttyin getty 46380 350791 29499 0 3 0x82 nanoslp syz-executor 12306 489080 29499 0 3 0x82 nanoslp syz-executor 47543 478838 29499 0 3 0x82 wait syz-executor 42839 217618 29499 0 2 0xc82 syz-executor 29499 327841 80850 0 3 0x82 kqread syz-executor 80850 208521 49370 0 3 0x10008a sigsusp ksh 49370 495166 87019 0 3 0x98 kqread sshd-session 87019 88890 45570 0 3 0x92 kqread sshd-session 45570 112342 1 0 3 0x88 kqread sshd 70283 105119 52014 74 3 0x1100092 bpf pflogd 52014 43701 1 0 3 0x80 sbwait pflogd 57943 103405 82156 73 3 0x1100090 kqread syslogd 82156 428036 1 0 3 0x100082 sbwait syslogd 68845 240969 1 0 3 0x100080 kqread resolvd 95683 237222 21353 77 3 0x100092 kqread dhcpleased 35068 430036 21353 77 3 0x100092 kqread dhcpleased 21353 151311 1 0 3 0x80 kqread dhcpleased 90437 372147 0 0 3 0x14200 bored smr 28596 331940 0 0 3 0x14200 pgzero zerothread 48025 7270 0 0 3 0x14200 aiodoned aiodoned 27711 23231 0 0 3 0x14200 syncer update 36754 433977 0 0 3 0x14200 cleaner cleaner 7069 107755 0 0 3 0x14200 reaper reaper 9773 308450 0 0 3 0x14200 pgdaemon pagedaemon 63269 433444 0 0 3 0x14200 bored viomb 59086 309684 0 0 3 0x40014200 acpi0 acpi0 75561 287159 0 0 3 0x40014200 idle1 49738 104336 0 0 3 0x14200 bored softnet1 95487 20426 0 0 3 0x14200 bored softnet0 71983 228941 0 0 3 0x14200 bored systqmp 26347 327534 0 0 3 0x14200 bored systq 9806 343046 0 0 3 0x14200 tmoslp softclockmp 60827 236865 0 0 3 0x40014200 tmoslp softclock 94587 309105 0 0 3 0x40014200 idle0 1 262550 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 44726 (syz-executor) thread 0xffff8000fffee2b8 (314188) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff838f9630) #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:746 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806ea37dd0) #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:746 #9 Xsyscall+0x128 Process 44726 (syz-executor) thread 0xffff8000fffef778 (415354) exclusive rrwlock inode r = 0 (0xfffffd806ea3c488) #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 vfs_lookup+0x11c sys/kern/vfs_lookup.c:-1 #6 namei+0x7ca sys/kern/vfs_lookup.c:250 #7 domknodat+0xb4 sys/kern/vfs_syscalls.c:1592 #8 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #8 syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10203 11029K 11358K 166960K 12467 0 pcb 17 20K 30K 166960K 319 0 rtable 204 8K 9K 166960K 454 0 pf 34 17K 67485K 166960K 116 0 ifaddr 38 6K 7K 166960K 99 0 ifgroup 51 2K 2K 166960K 147 0 sysctl 3 1K 9K 166960K 13 0 counters 66 36K 37K 166960K 154 0 ioctlops 0 0K 4K 166960K 1646 0 iov 0 0K 18K 166960K 108 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1520 96K 96K 166960K 2302 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 14 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 197 0 dirhash 12 2K 2K 166960K 27 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 93K 166960K 938 0 sigio 0 0K 0K 166960K 11 0 proc 75 131K 164K 166960K 784 0 subproc 72 4K 4K 166960K 126 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 159 0 in_multi 84 6K 7K 166960K 190 0 ether_multi 1 0K 0K 166960K 6 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 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 685 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 282 171K 186K 166960K 9938 0 UVM aobj 27 2K 2K 166960K 28 0 pinsyscall 45 90K 104K 166960K 2226 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 49 0 NDP 15 0K 2K 166960K 69 0 temp 66 8648K 8713K 166960K 37502 0 kqueue 15 24K 32K 166960K 173 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 104 0 101 1 0 1 1 0 8 0 rtentry 176 165 0 79 5 0 5 5 0 8 0 unpcb 144 836 0 813 6 4 2 6 0 8 0 syncache 336 13 0 13 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 355 0 348 10 3 7 10 0 8 6 arp 136 18 0 8 1 0 1 1 0 8 0 inpcb 328 1306 0 1295 18 8 10 10 0 8 8 nd6 144 33 0 17 1 0 1 1 0 8 0 pkpcb 40 7 0 7 2 1 1 1 0 8 1 kcovpl 48 14 0 6 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 29 0 29 2 1 1 1 0 8 1 pppxif 1504 3 0 3 3 2 1 1 0 8 1 pffrag 232 8 0 6 1 0 1 1 0 482 0 pffrnode 88 8 0 6 1 0 1 1 0 8 0 pffrent 40 28 0 26 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 1 0 1 1 0 1 1 0 8 1 pfstitem 24 90 0 0 1 0 1 1 0 8 0 pfstkey 128 90 0 1 3 0 3 3 0 8 0 pfstate 384 89 0 0 9 0 9 9 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 737 0 338 30 2 28 29 0 8 3 art_table 40 739 0 338 5 0 5 5 0 8 0 art_node 32 160 0 83 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 3 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 193 0 183 1 0 1 1 0 8 0 shmpl 112 25 0 1 1 0 1 1 0 8 0 dirhash 1024 27 0 10 3 0 3 3 0 8 0 dino2pl 256 3035 0 1523 96 0 96 96 0 8 0 ffsino 296 3035 0 1523 117 0 117 117 0 8 0 nchpl 144 4209 0 2495 64 0 64 64 0 8 0 rtmask 32 5 0 5 2 2 0 1 0 8 0 uvmvnodes 80 3732 0 0 77 0 77 77 0 8 0 vnodes 216 3732 0 0 208 0 208 208 0 8 0 namei 1024 15034 0 15031 2 1 1 2 0 8 0 percpumem 16 92 0 44 1 0 1 1 0 8 0 kstatmem 264 84 0 60 5 2 3 3 0 8 1 scsiplug 72 3 0 3 2 2 0 1 0 8 0 scxspl 216 19238 0 19238 11 8 3 8 1 8 3 plimitpl 152 248 0 230 1 0 1 1 0 8 0 sigapl 424 1241 0 1190 8 2 6 7 0 8 0 knotepl 120 311 0 0 10 0 10 10 0 8 0 kqueuepl 224 469 0 454 8 3 5 5 0 8 3 pipepl 344 357 0 329 12 9 3 12 0 8 0 fdescpl 528 1217 0 1184 3 0 3 3 0 8 0 filepl 160 8161 0 7914 23 7 16 21 0 8 4 lockfpl 104 532 0 527 2 1 1 2 0 8 0 lockfspl 48 185 0 181 1 0 1 1 0 8 0 sessionpl 144 39 0 29 1 0 1 1 0 8 0 pgrppl 48 134 0 116 1 0 1 1 0 8 0 ucredpl 104 891 0 878 1 0 1 1 0 8 0 zombiepl 144 1191 0 1190 1 0 1 1 0 8 0 processpl 1232 1241 0 1190 5 0 5 5 0 8 0 procpl 664 2529 0 2461 7 1 6 6 0 8 0 sosppl 168 8 0 8 2 1 1 1 0 8 1 sockpl 752 2341 0 2304 24 12 12 17 0 8 8 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 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 116 0 0 15 0 15 15 0 8 0 mcl2k 2048 34 0 0 4 0 4 4 0 8 0 mtagpl 96 7 0 0 1 0 1 1 0 8 0 mbufpl 256 1160 0 0 72 0 72 72 0 8 0 bufpl 280 7386 0 1243 439 0 439 439 0 8 0 anonpl 32 9728 0 0 80 1 79 79 0 246 0 amapchunkpl 152 32322 0 31496 40 8 32 32 0 158 0 amappl16 200 3691 0 3572 21 5 16 16 0 8 7 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 142 0 129 1 0 1 1 0 8 0 amappl13 176 43 0 43 1 1 0 1 0 8 0 amappl12 168 1964 0 1931 2 0 2 2 0 8 0 amappl11 160 49 0 35 1 0 1 1 0 8 0 amappl10 152 4 0 4 1 1 0 1 0 8 0 amappl9 144 255 0 255 1 1 0 1 0 8 0 amappl8 136 25 0 22 1 0 1 1 0 8 0 amappl7 128 144 0 130 1 0 1 1 0 8 0 amappl6 120 255 0 248 1 0 1 1 0 8 0 amappl5 112 151 0 140 1 0 1 1 0 8 0 amappl4 104 343 0 320 1 0 1 1 0 8 0 amappl3 96 5644 0 5529 3 0 3 3 0 8 0 amappl2 88 1530 0 1443 3 0 3 3 0 8 0 amappl1 80 14214 0 13511 17 0 17 17 0 8 0 amappl 88 9000 0 8798 5 0 5 5 0 92 0 dma4096 4096 2 0 2 2 2 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 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 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 27 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1217 0 1184 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1217 0 1184 1 0 1 1 0 8 0 vmmpekpl 168 12629 0 12575 3 0 3 3 0 8 0 vmmpepl 168 84949 0 82611 114 0 114 114 0 357 8 vmsppl 488 1216 0 1184 5 0 5 5 0 8 0 rwobjpl 80 28906 0 23963 103 1 102 102 0 8 0 pdppl 4096 2442 0 2368 106 28 78 86 0 8 4 pvpl 32 17874 0 0 145 0 145 145 0 265 0 pmappl 256 1216 0 1184 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 354 0 40 10 0 10 10 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace memcpy() at memcpy+0x19 ffs_truncate(fffffd806ea37d30,0,4,fffffd80097fb6e8) at ffs_truncate+0xc9b sys/ufs/ffs/ffs_inode.c:-1 ffs_write(ffff80003c4634d0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd80744ecb48,ffff80003c463688,7,fffffd80097fb6e8) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_write(fffffd806b9a1850,ffff80003c463688,0) at vn_write+0x1d3 sys/kern/vfs_vnops.c:408 dofilewritev(ffff8000fffee2b8,4,ffff80003c463688,0,ffff80003c463740) at dofilewritev+0x242 sys/kern/sys_generic.c:380 sys_write(ffff8000fffee2b8,ffff80003c4637f0,ffff80003c463740) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff80003c4637f0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4637f0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x289d8445b20, count: -9 ddb{0}> machine ddbcpu 1