uvm_fault(0xffffffff839295c0, 0xffff800023fd2000, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x52: repe stosq %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *161002 30773 0 0 0x4000000 0 syz-executor.5 memset() at memset+0x52 VOP_WRITE(fffffd806c71c720,ffff80002a9a5b20,5,fffffd8007bfb820) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd807a3084b0,ffff80002a9a5b20,1) at vn_write+0x238 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a8779c8,3,ffff80002a9a5b20,1,ffff80002a9a5be0) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_pwritev(ffff80002a8779c8,ffff80002a9a5c90,ffff80002a9a5be0) at sys_pwritev+0xe3 sys/kern/vfs_syscalls.c:3392 syscall(ffff80002a9a5c90) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a9a5c90) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdc885422330, count: 8 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: uvm_fault(0xffffffff839295c0, 0xffff800023fd2000, 0, 2) -> d ddb> trace memset() at memset+0x52 VOP_WRITE(fffffd806c71c720,ffff80002a9a5b20,5,fffffd8007bfb820) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd807a3084b0,ffff80002a9a5b20,1) at vn_write+0x238 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a8779c8,3,ffff80002a9a5b20,1,ffff80002a9a5be0) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_pwritev(ffff80002a8779c8,ffff80002a9a5c90,ffff80002a9a5be0) at sys_pwritev+0xe3 sys/kern/vfs_syscalls.c:3392 syscall(ffff80002a9a5c90) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a9a5c90) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdc885422330, count: -7 ddb> show registers rdi 0xffff800023fd2000 rsi 0 rbp 0xffff80002a9a58f0 rbx 0xe rdx 0 rcx 0x800 rax 0 r8 0x4000 __ALIGN_SIZE+0x3000 r9 0 r10 0xa192546906f615e5 r11 0xffff800023fd2000 r12 0x4000 __ALIGN_SIZE+0x3000 r13 0x4000 __ALIGN_SIZE+0x3000 r14 0xffff800023fd2000 r15 0x4000 __ALIGN_SIZE+0x3000 rip 0xffffffff830f7b12 memset+0x52 cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80002a9a5828 ss 0 memset+0x52: repe stosq %es:(%rdi) ddb> show proc PROC (syz-executor.5) tid=161002 pid=30773 tcnt=4 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=0xffff80002a8774a8,0xffff80002a83dc60 process=0xffff80002a820db0 user=0xffff80002a9a0000, vmspace=0xfffffd807ebaf438 estcpu=2, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 14509 265937 34263 0 2 0 syz-executor.7 14509 226385 34263 0 2 0x4000000 syz-executor.7 14509 479433 34263 0 3 0x4000000 inode syz-executor.7 94978 456239 35825 0 2 0 syz-executor.1 94978 380831 35825 0 2 0x4000000 syz-executor.1 94978 312994 35825 0 3 0x4000000 inode syz-executor.1 57209 44892 56085 0 2 0x100002 ndp 28925 94173 14516 0 2 0 syz-executor.6 28925 308972 14516 0 2 0x4000000 syz-executor.6 28925 49485 14516 0 3 0x4000000 inode syz-executor.6 56085 178437 87509 0 3 0x10008a sigsusp sh 30773 325461 72634 0 2 0 syz-executor.5 *30773 161002 72634 0 7 0x4000000 syz-executor.5 30773 503079 72634 0 3 0x4000000 inode syz-executor.5 30773 71335 72634 0 2 0x4000000 syz-executor.5 78839 264321 50704 0 2 0 syz-executor.4 78839 451974 50704 0 3 0x4000080 fsleep syz-executor.4 78839 308804 50704 0 3 0x4000080 fsleep syz-executor.4 13524 160787 5692 0 2 0 syz-executor.0 91315 429810 34963 0 2 0 syz-executor.2 91315 330433 34963 0 3 0x4000080 fsleep syz-executor.2 34263 99892 2817 0 2 0xc82 syz-executor.7 87509 168531 2817 0 3 0x82 wait syz-executor.3 35825 147333 2817 0 2 0xc82 syz-executor.1 72634 290472 2817 0 2 0xc82 syz-executor.5 14516 227085 2817 0 2 0xc82 syz-executor.6 50704 162132 2817 0 2 0xc82 syz-executor.4 34963 23538 2817 0 2 0xc82 syz-executor.2 5692 67249 2817 0 2 0x2 syz-executor.0 2817 181962 12979 0 3 0x82 thrsleep syz-execprog 2817 219876 12979 0 2 0x4000002 syz-execprog 2817 290861 12979 0 3 0x4000082 wait syz-execprog 2817 185220 12979 0 3 0x4000082 wait syz-execprog 2817 444105 12979 0 3 0x4000082 wait syz-execprog 2817 181338 12979 0 3 0x4000082 thrsleep syz-execprog 2817 325327 12979 0 3 0x4000082 wait syz-execprog 2817 113004 12979 0 3 0x4000082 thrsleep syz-execprog 2817 394808 12979 0 3 0x4000082 wait syz-execprog 2817 502700 12979 0 3 0x4000082 wait syz-execprog 2817 140558 12979 0 3 0x4000082 wait syz-execprog 2817 216487 12979 0 3 0x4000082 wait syz-execprog 2817 364075 12979 0 3 0x4000082 kqread syz-execprog 12979 63481 72344 0 3 0x10008a sigsusp ksh 72344 301087 24929 0 3 0x98 kqread sshd-session 24929 135226 87503 0 3 0x92 kqread sshd-session 63320 207806 1 0 3 0x100083 ttyin getty 87503 292884 1 0 3 0x88 kqread sshd 50473 23775 50984 73 3 0x1100090 kqread syslogd 50984 179402 1 0 3 0x100082 sbwait syslogd 74882 276973 1 0 3 0x100080 kqread resolvd 11888 392487 19383 77 3 0x100092 kqread dhcpleased 63741 229245 19383 77 3 0x100092 kqread dhcpleased 19383 224552 1 0 3 0x80 kqread dhcpleased 66618 485046 0 0 3 0x14200 bored smr 870 209866 0 0 2 0x14200 zerothread 39413 278809 0 0 3 0x14200 aiodoned aiodoned 88951 487169 0 0 3 0x14200 syncer update 94360 63081 0 0 3 0x14200 cleaner cleaner 32751 143833 0 0 3 0x14200 reaper reaper 2197 286100 0 0 3 0x14200 pgdaemon pagedaemon 3078 160755 0 0 3 0x14200 bored viomb 87883 19479 0 0 3 0x40014200 acpi0 acpi0 80924 241818 0 0 3 0x14200 bored softnet3 73773 305863 0 0 3 0x14200 bored softnet2 7614 358704 0 0 3 0x14200 bored softnet1 79065 257239 0 0 3 0x14200 bored softnet0 80847 406925 0 0 3 0x14200 bored systqmp 96010 338757 0 0 3 0x14200 bored systq 4727 71594 0 0 2 0x40014200 softclock 23450 429503 0 0 3 0x40014200 idle0 1 329879 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10166 11040K 11052K 166960K 11245 0 pcb 17 12K 12K 166960K 17 0 rtable 232 6K 6K 166960K 374 0 pf 30 12K 12K 166960K 33 0 ifaddr 42 7K 7K 166960K 48 0 ifgroup 50 2K 2K 166960K 55 0 sysctl 1 1K 9K 166960K 5 0 counters 32 17K 17K 166960K 33 0 ioctlops 0 0K 2K 166960K 30 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1262 79K 80K 166960K 1279 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 19 69K 77K 166960K 156 0 proc 57 58K 83K 166960K 500 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 99 7K 7K 166960K 110 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 25 122K 122K 166960K 25 0 exec 0 0K 1K 166960K 415 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 270 163K 214K 166960K 4267 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 42 84K 104K 166960K 1502 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 27 2K 2K 166960K 30 0 temp 1 8672K 8736K 166960K 4745 0 kqueue 13 20K 20K 166960K 46 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 38 0 34 1 0 1 1 0 8 0 rtentry 136 121 0 12 4 0 4 4 0 8 0 unpcb 144 67 0 52 1 0 1 1 0 8 0 syncache 336 9 0 9 1 0 1 1 0 8 1 tcpqe 32 4 0 4 1 0 1 1 0 8 1 tcpcb 736 12 0 9 1 0 1 1 0 8 0 arp 88 20 0 2 1 0 1 1 0 8 0 inpcb 328 66 0 60 1 0 1 1 0 8 0 nd6 104 26 0 3 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 500 0 48 29 0 29 29 0 8 0 art_table 32 501 0 48 4 0 4 4 0 8 0 art_node 16 120 0 21 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1620 0 92 96 0 96 96 0 8 0 ffsino 248 1620 0 92 96 0 96 96 0 8 0 nchpl 144 1910 0 125 67 0 67 67 0 8 0 uvmvnodes 80 1630 0 0 34 0 34 34 0 8 0 vnodes 216 1630 0 0 91 0 91 91 0 8 0 namei 1024 7637 0 7637 2 0 2 2 0 8 2 kstatmem 264 24 0 2 2 0 2 2 0 8 0 scxspl 216 10076 0 10076 8 0 8 8 1 8 8 plimitpl 152 58 0 42 1 0 1 1 0 8 0 sigapl 424 495 0 448 6 0 6 6 0 8 0 knotepl 120 7881 0 7800 4 0 4 4 0 8 0 kqueuepl 184 42 0 33 1 0 1 1 0 8 0 pipepl 296 174 0 146 3 0 3 3 0 8 0 fdescpl 440 479 0 448 4 0 4 4 0 8 0 filepl 120 2113 0 1973 5 0 5 5 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 34 0 18 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 148 0 136 1 0 1 1 0 8 0 zombiepl 144 448 0 448 1 0 1 1 0 8 1 processpl 1160 495 0 448 4 0 4 4 0 8 0 procpl 656 536 0 465 6 0 6 6 0 8 0 sockpl 528 171 0 138 3 0 3 3 0 8 0 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 9872 0 9814 24 8 16 21 0 8 8 mcl2k 2048 153 0 153 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 13551 0 13408 11 0 11 11 0 8 1 bufpl 280 4960 0 181 342 0 342 342 0 8 0 anonpl 24 197428 0 192410 54 0 54 54 0 187 23 amapchunkpl 152 13268 0 12652 27 0 27 27 0 158 3 amappl16 200 3998 0 3867 7 0 7 7 0 8 0 amappl15 192 15 0 15 1 0 1 1 0 8 1 amappl14 184 211 0 198 2 0 2 2 0 8 1 amappl13 176 12 0 11 1 0 1 1 0 8 0 amappl12 168 1166 0 1132 2 0 2 2 0 8 0 amappl11 160 55 0 45 1 0 1 1 0 8 0 amappl10 152 72 0 61 1 0 1 1 0 8 0 amappl9 144 1085 0 1085 1 0 1 1 0 8 1 amappl8 136 227 0 198 2 0 2 2 0 8 0 amappl7 128 209 0 193 2 0 2 2 0 8 1 amappl6 120 304 0 299 1 0 1 1 0 8 0 amappl5 112 167 0 161 1 0 1 1 0 8 0 amappl4 104 507 0 488 2 0 2 2 0 8 1 amappl3 96 1453 0 1358 3 0 3 3 0 8 0 amappl2 88 1147 0 1073 4 0 4 4 0 8 1 amappl1 80 15507 0 14903 25 7 18 23 0 8 5 amappl 88 3168 0 2991 4 0 4 4 0 92 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 479 0 448 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 479 0 448 1 0 1 1 0 8 0 vmmpekpl 168 11688 0 11651 2 0 2 2 0 8 0 vmmpepl 168 60824 0 58798 122 0 122 122 0 357 33 vmsppl 360 478 0 448 3 0 3 3 0 8 0 rwobjpl 32 24747 0 22060 27 0 27 27 0 8 3 pdppl 4096 964 0 896 114 42 72 72 0 8 4 pvpl 32 539253 0 528402 397 100 297 397 0 265 209 pmappl 216 478 0 448 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 287 0 50 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace memset() at memset+0x52 VOP_WRITE(fffffd806c71c720,ffff80002a9a5b20,5,fffffd8007bfb820) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd807a3084b0,ffff80002a9a5b20,1) at vn_write+0x238 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a8779c8,3,ffff80002a9a5b20,1,ffff80002a9a5be0) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_pwritev(ffff80002a8779c8,ffff80002a9a5c90,ffff80002a9a5be0) at sys_pwritev+0xe3 sys/kern/vfs_syscalls.c:3392 syscall(ffff80002a9a5c90) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a9a5c90) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdc885422330, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace memset() at memset+0x52 VOP_WRITE(fffffd806c71c720,ffff80002a9a5b20,5,fffffd8007bfb820) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd807a3084b0,ffff80002a9a5b20,1) at vn_write+0x238 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a8779c8,3,ffff80002a9a5b20,1,ffff80002a9a5be0) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_pwritev(ffff80002a8779c8,ffff80002a9a5c90,ffff80002a9a5be0) at sys_pwritev+0xe3 sys/kern/vfs_syscalls.c:3392 syscall(ffff80002a9a5c90) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a9a5c90) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdc885422330, count: -7