uvm_fault(0xffffffff8394a998, 0xffff800022fd2000, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x52: repe stosq %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *484415 81048 0 0 0x4000000 0 syz-executor.1 memset() at memset+0x52 VOP_WRITE(fffffd807d752718,ffff80002a9a95e0,5,fffffd807f7d74e0) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd806abfbf00,ffff80002a9a95e0,1) at vn_write+0x238 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a7bcf78,3,ffff80002a9a95e0,1,ffff80002a9a96a0) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_pwritev(ffff80002a7bcf78,ffff80002a9a9750,ffff80002a9a96a0) at sys_pwritev+0xe3 sys/kern/vfs_syscalls.c:3400 syscall(ffff80002a9a9750) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2604455d780, 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(0xffffffff8394a998, 0xffff800022fd2000, 0, 2) -> d ddb> trace memset() at memset+0x52 VOP_WRITE(fffffd807d752718,ffff80002a9a95e0,5,fffffd807f7d74e0) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd806abfbf00,ffff80002a9a95e0,1) at vn_write+0x238 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a7bcf78,3,ffff80002a9a95e0,1,ffff80002a9a96a0) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_pwritev(ffff80002a7bcf78,ffff80002a9a9750,ffff80002a9a96a0) at sys_pwritev+0xe3 sys/kern/vfs_syscalls.c:3400 syscall(ffff80002a9a9750) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2604455d780, count: -7 ddb> show registers rdi 0xffff800022fd2000 rsi 0 rbp 0xffff80002a9a93b0 rbx 0xe rdx 0 rcx 0x800 rax 0 r8 0x4000 __ALIGN_SIZE+0x3000 r9 0 r10 0xf6afb2cc13e5dfb3 r11 0xffff800022fd2000 r12 0x4000 __ALIGN_SIZE+0x3000 r13 0x4000 __ALIGN_SIZE+0x3000 r14 0xffff800022fd2000 r15 0x4000 __ALIGN_SIZE+0x3000 rip 0xffffffff82678f42 memset+0x52 cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80002a9a92e8 ss 0 memset+0x52: repe stosq %es:(%rdi) ddb> show proc PROC (syz-executor.1) tid=484415 pid=81048 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=0xffff80002a7bdc48,0xffff80002a7ded08 process=0xffff80002a89f890 user=0xffff80002a9a4000, vmspace=0xfffffd8069116178 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 38276 126017 43503 0 2 0x40 syz-executor.5 1777 335601 7448 0 2 0x40 syz-executor.2 41809 270032 14108 0 2 0 syz-executor.0 41809 299865 14108 0 2 0x4000000 syz-executor.0 43049 488900 17437 0 2 0x2 ifconfig 17437 140249 24975 0 3 0x10008a sigsusp sh 6946 53784 67467 0 2 0 syz-executor.7 25334 190882 12128 0 2 0 syz-executor.6 25334 168953 12128 0 2 0x4000000 syz-executor.6 25334 90812 12128 0 3 0x4000000 inode syz-executor.6 50308 323535 36454 0 2 0 syz-executor.3 50308 98118 36454 0 2 0x4000000 syz-executor.3 50308 119171 36454 0 3 0x4000000 inode syz-executor.3 50308 259516 36454 0 2 0x4000080 syz-executor.3 81048 240141 55933 0 2 0 syz-executor.1 *81048 484415 55933 0 7 0x4000000 syz-executor.1 81048 10447 55933 0 3 0x4000000 inode syz-executor.1 81048 138811 55933 0 2 0x4000000 syz-executor.1 43503 252073 26247 0 3 0x82 ppwait syz-executor.5 7448 513199 26247 0 3 0x82 ppwait syz-executor.2 67467 373635 26247 0 2 0x482 syz-executor.7 12128 358595 26247 0 2 0x482 syz-executor.6 24975 523131 26247 0 3 0x82 wait syz-executor.4 36454 399682 26247 0 2 0x482 syz-executor.3 55933 37925 26247 0 2 0x482 syz-executor.1 14108 447941 26247 0 2 0x482 syz-executor.0 26247 274381 76168 0 3 0x82 thrsleep syz-execprog 26247 232777 76168 0 3 0x4000082 thrsleep syz-execprog 26247 293395 76168 0 3 0x4000082 wait syz-execprog 26247 439437 76168 0 3 0x4000082 wait syz-execprog 26247 423303 76168 0 3 0x4000082 wait syz-execprog 26247 130122 76168 0 3 0x4000082 thrsleep syz-execprog 26247 240464 76168 0 3 0x4000082 wait syz-execprog 26247 127698 76168 0 3 0x4000082 wait syz-execprog 26247 159229 76168 0 3 0x4000082 wait syz-execprog 26247 96906 76168 0 3 0x4000082 thrsleep syz-execprog 26247 448667 76168 0 3 0x4000082 wait syz-execprog 26247 496799 76168 0 3 0x4000082 wait syz-execprog 26247 74343 76168 0 3 0x4000082 kqread syz-execprog 76168 283279 6075 0 3 0x10008a sigsusp ksh 6075 384471 95911 0 3 0x98 kqread sshd-session 95911 462017 65832 0 3 0x92 kqread sshd-session 41469 39761 1 0 3 0x100083 ttyin getty 65832 272792 1 0 3 0x88 kqread sshd 34744 390070 64535 73 3 0x1100090 kqread syslogd 64535 258375 1 0 3 0x100082 sbwait syslogd 28458 49343 1 0 3 0x100080 kqread resolvd 68436 81882 43764 77 3 0x100092 kqread dhcpleased 87785 44933 43764 77 3 0x100092 kqread dhcpleased 43764 337799 1 0 3 0x80 kqread dhcpleased 39644 365564 0 0 3 0x14200 bored smr 14065 229132 0 0 2 0x14200 zerothread 82218 373511 0 0 3 0x14200 aiodoned aiodoned 47636 423860 0 0 3 0x14200 syncer update 41239 211928 0 0 3 0x14200 cleaner cleaner 4411 301670 0 0 3 0x14200 reaper reaper 79945 191509 0 0 3 0x14200 pgdaemon pagedaemon 81893 36968 0 0 3 0x14200 bored viomb 44872 332922 0 0 3 0x40014200 acpi0 acpi0 44641 108125 0 0 3 0x14200 bored softnet3 10305 175099 0 0 3 0x14200 bored softnet2 97375 287006 0 0 3 0x14200 bored softnet1 19662 328525 0 0 3 0x14200 bored softnet0 78473 312868 0 0 3 0x14200 bored systqmp 13075 460518 0 0 3 0x14200 bored systq 10085 263698 0 0 3 0x40014200 tmoslp softclock 49124 181106 0 0 3 0x40014200 idle0 1 237565 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 10165 11040K 11052K 166960K 11246 0 pcb 17 12K 12K 166960K 17 0 rtable 194 5K 5K 166960K 320 0 pf 30 12K 12K 166960K 33 0 ifaddr 37 6K 6K 166960K 43 0 ifgroup 50 2K 2K 166960K 55 0 sysctl 1 1K 1K 166960K 1 0 counters 30 17K 17K 166960K 31 0 ioctlops 0 0K 2K 166960K 28 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1260 79K 79K 166960K 1277 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 137 0 proc 64 67K 83K 166960K 479 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 78 5K 5K 166960K 89 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 399 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 250 161K 216K 166960K 4145 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 41 82K 104K 166960K 1447 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 23 1K 1K 166960K 26 0 temp 1 8664K 8728K 166960K 4567 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 33 0 30 1 0 1 1 0 8 0 rtentry 136 102 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 tcpcb 808 12 0 9 1 0 1 1 0 8 0 arp 88 17 0 2 1 0 1 1 0 8 0 inpcb 344 63 0 56 1 0 1 1 0 8 0 nd6 104 20 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 414 0 48 23 0 23 23 0 8 0 art_table 32 415 0 48 3 0 3 3 0 8 0 art_node 16 101 0 19 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1610 0 88 96 0 96 96 0 8 0 ffsino 248 1610 0 88 96 0 96 96 0 8 0 nchpl 144 1896 0 116 67 0 67 67 0 8 0 uvmvnodes 80 1620 0 0 34 0 34 34 0 8 0 vnodes 216 1620 0 0 90 0 90 90 0 8 0 namei 1024 7484 0 7483 3 0 3 3 0 8 2 kstatmem 264 24 0 2 2 0 2 2 0 8 0 scxspl 216 9507 0 9507 8 0 8 8 1 8 8 plimitpl 152 58 0 42 1 0 1 1 0 8 0 sigapl 424 477 0 430 6 0 6 6 0 8 0 futexpl 64 15 0 15 1 0 1 1 0 8 1 knotepl 120 7526 0 7441 4 0 4 4 0 8 0 kqueuepl 184 42 0 33 1 0 1 1 0 8 0 pipepl 296 183 0 155 3 0 3 3 0 8 0 fdescpl 440 461 0 430 4 0 4 4 0 8 0 filepl 120 2099 0 1960 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 430 0 430 1 0 1 1 0 8 1 processpl 1112 477 0 430 4 0 4 4 0 8 0 procpl 656 512 0 444 6 0 6 6 0 8 0 sockpl 528 163 0 138 2 0 2 2 0 8 0 mcl8k 8192 13 0 13 1 0 1 1 0 8 1 mcl4k 4096 9537 0 9477 24 7 17 20 0 8 8 mcl2k 2048 142 0 142 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 13012 0 12893 11 0 11 11 0 8 3 bufpl 280 4745 0 209 324 0 324 324 0 8 0 anonpl 24 198765 0 194014 54 0 54 54 0 187 23 amapchunkpl 152 12873 0 12313 27 0 27 27 0 158 4 amappl16 200 4025 0 3905 7 0 7 7 0 8 0 amappl15 192 9 0 9 1 0 1 1 0 8 1 amappl14 184 245 0 234 2 0 2 2 0 8 1 amappl13 176 66 0 66 1 0 1 1 0 8 1 amappl12 168 1122 0 1091 2 0 2 2 0 8 0 amappl11 160 59 0 48 1 0 1 1 0 8 0 amappl10 152 57 0 48 1 0 1 1 0 8 0 amappl9 144 1041 0 1041 1 0 1 1 0 8 1 amappl8 136 170 0 145 1 0 1 1 0 8 0 amappl7 128 234 0 220 2 0 2 2 0 8 0 amappl6 120 402 0 392 2 0 2 2 0 8 1 amappl5 112 193 0 185 1 0 1 1 0 8 0 amappl4 104 517 0 499 2 0 2 2 0 8 1 amappl3 96 1484 0 1400 3 0 3 3 0 8 0 amappl2 88 1037 0 968 4 0 4 4 0 8 1 amappl1 80 15701 0 15125 27 7 20 23 0 8 7 amappl 88 3064 0 2905 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 461 0 430 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 461 0 430 1 0 1 1 0 8 0 vmmpekpl 168 11494 0 11451 3 0 3 3 0 8 0 vmmpepl 168 60893 0 58943 123 0 123 123 0 357 35 vmsppl 360 460 0 430 3 0 3 3 0 8 0 rwobjpl 32 24788 0 22172 27 0 27 27 0 8 2 pdppl 4096 929 0 860 115 42 73 73 0 8 4 pvpl 32 536423 0 526146 402 101 301 397 0 265 213 pmappl 216 460 0 430 2 0 2 2 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 283 0 49 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace memset() at memset+0x52 VOP_WRITE(fffffd807d752718,ffff80002a9a95e0,5,fffffd807f7d74e0) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd806abfbf00,ffff80002a9a95e0,1) at vn_write+0x238 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a7bcf78,3,ffff80002a9a95e0,1,ffff80002a9a96a0) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_pwritev(ffff80002a7bcf78,ffff80002a9a9750,ffff80002a9a96a0) at sys_pwritev+0xe3 sys/kern/vfs_syscalls.c:3400 syscall(ffff80002a9a9750) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2604455d780, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace memset() at memset+0x52 VOP_WRITE(fffffd807d752718,ffff80002a9a95e0,5,fffffd807f7d74e0) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd806abfbf00,ffff80002a9a95e0,1) at vn_write+0x238 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a7bcf78,3,ffff80002a9a95e0,1,ffff80002a9a96a0) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_pwritev(ffff80002a7bcf78,ffff80002a9a9750,ffff80002a9a96a0) at sys_pwritev+0xe3 sys/kern/vfs_syscalls.c:3400 syscall(ffff80002a9a9750) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2604455d780, count: -7