uvm_fault(0xffffffff8391ace0, 0xffff800028012000, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x52: repe stosq %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *420981 81815 0 0 0x4000000 0 syz-executor.3 memset() at memset+0x52 VOP_WRITE(fffffd8079f64870,ffff80002a9b9100,5,fffffd8007bfb410) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_write(fffffd806bac5000,ffff80002a9b9100,1) at vn_write+0x237 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a86ea90,3,ffff80002a9b9100,1,ffff80002a9b91b0) at dofilewritev+0x242 sys/kern/sys_generic.c:380 sys_pwritev(ffff80002a86ea90,ffff80002a9b9260,ffff80002a9b91b0) at sys_pwritev+0xe3 sys/kern/vfs_syscalls.c:3396 syscall(ffff80002a9b9260) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a9b9260) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd6aadc8aa70, 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(0xffffffff8391ace0, 0xffff800028012000, 0, 2) -> d ddb> trace memset() at memset+0x52 VOP_WRITE(fffffd8079f64870,ffff80002a9b9100,5,fffffd8007bfb410) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_write(fffffd806bac5000,ffff80002a9b9100,1) at vn_write+0x237 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a86ea90,3,ffff80002a9b9100,1,ffff80002a9b91b0) at dofilewritev+0x242 sys/kern/sys_generic.c:380 sys_pwritev(ffff80002a86ea90,ffff80002a9b9260,ffff80002a9b91b0) at sys_pwritev+0xe3 sys/kern/vfs_syscalls.c:3396 syscall(ffff80002a9b9260) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a9b9260) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd6aadc8aa70, count: -7 ddb> show registers rdi 0xffff800028012000 rsi 0 rbp 0xffff80002a9b8ec0 rbx 0xe rdx 0 rcx 0x800 rax 0 r8 0x4000 __ALIGN_SIZE+0x3000 r9 0 r10 0x8a24354058261898 r11 0xffff800028012000 r12 0x4000 __ALIGN_SIZE+0x3000 r13 0x4000 __ALIGN_SIZE+0x3000 r14 0xffff800028012000 r15 0x4000 __ALIGN_SIZE+0x3000 rip 0xffffffff82c62492 memset+0x52 cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80002a9b8df8 ss 0 memset+0x52: repe stosq %es:(%rdi) ddb> show proc PROC (syz-executor.3) tid=420981 pid=81815 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=17, usrpri=55, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a86e2c8,0xffff80002a86f268 process=0xffff80002a87a898 user=0xffff80002a9b4000, vmspace=0xfffffd8068a37740 estcpu=5, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 81815 355353 43843 0 2 0 syz-executor.3 *81815 420981 43843 0 7 0x4000000 syz-executor.3 81815 269436 43843 0 3 0x4000000 inode syz-executor.3 81815 422727 43843 0 2 0x4000000 syz-executor.3 43477 177466 48862 0 2 0 syz-executor.6 43477 247674 48862 0 2 0x4000000 syz-executor.6 43477 439859 48862 0 3 0x4000000 inode syz-executor.6 70668 152889 80239 0 2 0 syz-executor.1 70668 391511 80239 0 3 0x4000080 fsleep syz-executor.1 44700 57013 95594 0 2 0 syz-executor.7 44700 482044 95594 0 3 0x4000080 fsleep syz-executor.7 44700 125745 95594 0 3 0x4000080 fsleep syz-executor.7 31099 171206 87029 0 2 0 syz-executor.5 31099 128116 87029 0 3 0x4000080 fsleep syz-executor.5 56349 436007 88599 0 2 0 syz-executor.4 56349 174352 88599 0 3 0x4000080 fsleep syz-executor.4 43843 305639 23167 0 2 0xc82 syz-executor.3 80239 138407 23167 0 2 0xc82 syz-executor.1 95594 418315 23167 0 2 0xc82 syz-executor.7 87029 485564 23167 0 2 0xc82 syz-executor.5 48862 52192 23167 0 2 0xc82 syz-executor.6 88599 367357 23167 0 2 0xc82 syz-executor.4 21989 360246 23167 0 2 0x2 syz-executor.2 52836 65820 23167 0 2 0x2 syz-executor.0 23167 92698 24689 0 3 0x82 thrsleep syz-execprog 23167 140839 24689 0 3 0x4000082 thrsleep syz-execprog 23167 80937 24689 0 3 0x4000082 wait syz-execprog 23167 30610 24689 0 3 0x4000082 wait syz-execprog 23167 326191 24689 0 3 0x4000082 wait syz-execprog 23167 386827 24689 0 3 0x4000082 thrsleep syz-execprog 23167 460555 24689 0 3 0x4000082 wait syz-execprog 23167 120007 24689 0 3 0x4000082 thrsleep syz-execprog 23167 162714 24689 0 3 0x4000082 wait syz-execprog 23167 457714 24689 0 3 0x4000082 wait syz-execprog 23167 78411 24689 0 3 0x4000082 wait syz-execprog 23167 157193 24689 0 3 0x4000082 wait syz-execprog 23167 429997 24689 0 3 0x4000082 kqread syz-execprog 24689 177560 50907 0 3 0x10008a sigsusp ksh 50907 495026 41304 0 3 0x98 kqread sshd-session 41304 102931 70675 0 3 0x92 kqread sshd-session 71347 34442 1 0 3 0x100083 ttyin getty 70675 163618 1 0 3 0x88 kqread sshd 45661 85790 16766 73 3 0x1100090 kqread syslogd 16766 308857 1 0 3 0x100082 sbwait syslogd 64645 219572 1 0 3 0x100080 kqread resolvd 54613 310388 82534 77 3 0x100092 kqread dhcpleased 81697 120065 82534 77 3 0x100092 kqread dhcpleased 82534 435871 1 0 3 0x80 kqread dhcpleased 76884 213154 0 0 3 0x14200 bored smr 98787 85676 0 0 2 0x14200 zerothread 27928 170401 0 0 3 0x14200 aiodoned aiodoned 29520 480689 0 0 3 0x14200 syncer update 63088 201543 0 0 3 0x14200 cleaner cleaner 44801 302850 0 0 3 0x14200 reaper reaper 90941 205011 0 0 3 0x14200 pgdaemon pagedaemon 75093 295022 0 0 3 0x14200 bored viomb 79670 41715 0 0 3 0x40014200 acpi0 acpi0 20990 273806 0 0 3 0x14200 bored softnet7 76846 196546 0 0 3 0x14200 bored softnet6 61047 171085 0 0 3 0x14200 bored softnet5 83695 233808 0 0 3 0x14200 bored softnet4 95284 424596 0 0 3 0x14200 bored softnet3 47496 339316 0 0 3 0x14200 bored softnet2 5290 79702 0 0 3 0x14200 bored softnet1 22744 113416 0 0 3 0x14200 bored softnet0 41628 80143 0 0 3 0x14200 bored systqmp 47848 322519 0 0 3 0x14200 bored systq 1873 232845 0 0 3 0x40014200 tmoslp softclock 86269 434615 0 0 3 0x40014200 idle0 1 461262 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 10170 11041K 11053K 166960K 11250 0 pcb 17 12K 12K 166960K 17 0 rtable 205 5K 5K 166960K 275 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 16 57K 77K 166960K 165 0 proc 57 58K 75K 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 254 152K 206K 166960K 4322 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 38 76K 104K 166960K 1506 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 8628K 8692K 166960K 4752 0 kqueue 13 20K 20K 166960K 45 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 35 1 0 1 1 0 8 0 rtentry 136 104 0 10 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 tcpcb 736 11 0 8 1 0 1 1 0 8 0 arp 88 11 0 1 1 0 1 1 0 8 0 inpcb 328 63 0 57 1 0 1 1 0 8 0 nd6 104 18 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 483 0 46 28 0 28 28 0 8 0 art_table 40 484 0 46 5 0 5 5 0 8 0 art_node 32 104 0 20 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1632 0 102 96 0 96 96 0 8 0 ffsino 256 1632 0 102 96 0 96 96 0 8 0 nchpl 144 1930 0 148 67 0 67 67 0 8 0 uvmvnodes 80 1642 0 0 34 0 34 34 0 8 0 vnodes 216 1642 0 0 92 0 92 92 0 8 0 namei 1024 7660 0 7660 3 0 3 3 0 8 3 kstatmem 264 24 0 2 2 0 2 2 0 8 0 scxspl 216 11526 0 11526 8 0 8 8 1 8 8 plimitpl 152 58 0 42 1 0 1 1 0 8 0 sigapl 424 503 0 455 6 0 6 6 0 8 0 knotepl 120 7585 0 7506 4 0 4 4 0 8 0 kqueuepl 184 41 0 32 1 0 1 1 0 8 0 pipepl 304 174 0 146 3 0 3 3 0 8 0 fdescpl 448 483 0 455 4 0 4 4 0 8 0 filepl 120 2105 0 1966 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 149 0 137 1 0 1 1 0 8 0 zombiepl 144 455 0 455 1 0 1 1 0 8 1 processpl 1152 503 0 455 4 0 4 4 0 8 0 procpl 664 551 0 481 7 0 7 7 0 8 0 sockpl 552 168 0 144 2 0 2 2 0 8 0 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 9932 0 9879 17 2 15 17 0 8 8 mcl2k 2048 219 0 219 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 13505 0 13373 9 0 9 9 0 8 0 bufpl 280 5986 0 177 415 0 415 415 0 8 0 anonpl 24 215698 0 210234 50 0 50 50 0 187 17 amapchunkpl 152 13992 0 13397 26 0 26 26 0 158 3 amappl16 200 4554 0 4386 9 0 9 9 0 8 0 amappl15 192 13 0 11 1 0 1 1 0 8 0 amappl14 184 234 0 222 2 0 2 2 0 8 1 amappl13 176 7 0 6 1 0 1 1 0 8 0 amappl12 168 1171 0 1142 2 0 2 2 0 8 0 amappl11 160 48 0 38 1 0 1 1 0 8 0 amappl10 152 62 0 53 1 0 1 1 0 8 0 amappl9 144 1061 0 1061 1 0 1 1 0 8 1 amappl8 136 197 0 170 1 0 1 1 0 8 0 amappl7 128 244 0 228 2 0 2 2 0 8 1 amappl6 120 319 0 314 1 0 1 1 0 8 0 amappl5 112 175 0 169 1 0 1 1 0 8 0 amappl4 104 467 0 448 2 0 2 2 0 8 1 amappl3 96 1503 0 1415 3 0 3 3 0 8 0 amappl2 88 1138 0 1068 4 0 4 4 0 8 1 amappl1 80 15628 0 15062 25 7 18 23 0 8 6 amappl 88 3219 0 3051 5 0 5 5 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 483 0 455 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 483 0 455 1 0 1 1 0 8 0 vmmpekpl 168 11605 0 11575 2 0 2 2 0 8 0 vmmpepl 168 61709 0 59779 118 0 118 118 0 357 34 vmsppl 368 482 0 455 3 0 3 3 0 8 0 rwobjpl 40 25448 0 22782 33 0 33 33 0 8 4 pdppl 4096 972 0 910 114 42 72 72 0 8 10 pvpl 32 557171 0 546089 366 72 294 366 0 265 204 pmappl 216 482 0 455 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 381 0 44 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace memset() at memset+0x52 VOP_WRITE(fffffd8079f64870,ffff80002a9b9100,5,fffffd8007bfb410) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_write(fffffd806bac5000,ffff80002a9b9100,1) at vn_write+0x237 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a86ea90,3,ffff80002a9b9100,1,ffff80002a9b91b0) at dofilewritev+0x242 sys/kern/sys_generic.c:380 sys_pwritev(ffff80002a86ea90,ffff80002a9b9260,ffff80002a9b91b0) at sys_pwritev+0xe3 sys/kern/vfs_syscalls.c:3396 syscall(ffff80002a9b9260) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a9b9260) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd6aadc8aa70, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace memset() at memset+0x52 VOP_WRITE(fffffd8079f64870,ffff80002a9b9100,5,fffffd8007bfb410) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_write(fffffd806bac5000,ffff80002a9b9100,1) at vn_write+0x237 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a86ea90,3,ffff80002a9b9100,1,ffff80002a9b91b0) at dofilewritev+0x242 sys/kern/sys_generic.c:380 sys_pwritev(ffff80002a86ea90,ffff80002a9b9260,ffff80002a9b91b0) at sys_pwritev+0xe3 sys/kern/vfs_syscalls.c:3396 syscall(ffff80002a9b9260) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a9b9260) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd6aadc8aa70, count: -7