uvm_fault(0xffffffff82d77cf8, 0xffff800022f132a7, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x49: repe stosb %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *409002 6266 73 0x1100010 0 0 syslogd memset() at memset+0x49 ffs_write(ffff80002a64aea0) at ffs_write+0x924 VOP_WRITE(fffffd806e78c708,ffff80002a64b0c0,3,fffffd807f7d7a28) at VOP_WRITE+0xc3 sys/kern/vfs_vops.c:245 vn_write(fffffd8071512170,ffff80002a64b0c0,0) at vn_write+0x156 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a61dd48,e,ffff80002a64b0c0,0,ffff80002a64b180) at dofilewritev+0x1a0 sys/kern/sys_generic.c:375 sys_writev(ffff80002a61dd48,ffff80002a64b230,ffff80002a64b180) at sys_writev+0xab sys/kern/sys_generic.c:322 syscall(ffff80002a64b230) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x778bd3042940, count: 7 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(0xffffffff82d77cf8, 0xffff800022f132a7, 0, 2) -> d ddb> trace memset() at memset+0x49 ffs_write(ffff80002a64aea0) at ffs_write+0x924 VOP_WRITE(fffffd806e78c708,ffff80002a64b0c0,3,fffffd807f7d7a28) at VOP_WRITE+0xc3 sys/kern/vfs_vops.c:245 vn_write(fffffd8071512170,ffff80002a64b0c0,0) at vn_write+0x156 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a61dd48,e,ffff80002a64b0c0,0,ffff80002a64b180) at dofilewritev+0x1a0 sys/kern/sys_generic.c:375 sys_writev(ffff80002a61dd48,ffff80002a64b230,ffff80002a64b180) at sys_writev+0xab sys/kern/sys_generic.c:322 syscall(ffff80002a64b230) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x778bd3042940, count: -8 ddb> show registers rdi 0xffff800022f132a7 rsi 0 rbp 0xffff80002a64adc0 rbx 0x1 rdx 0x1 rcx 0x1 rax 0 r8 0x558 r9 0xffff80002a64ad10 r10 0x1a245cea6f87f8ff r11 0xffff800022f132a7 r12 0x1800 __ALIGN_SIZE+0x800 r13 0x1 r14 0xfffffd807153ce20 r15 0xd2a7 __ALIGN_SIZE+0xc2a7 rip 0xffffffff81d329c9 memset+0x49 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002a64abc8 ss 0x10 memset+0x49: repe stosb %es:(%rdi) ddb> show proc PROC (syslogd) tid=409002 pid=6266 tcnt=1 stat=onproc flags process=1100010 proc=0 runpri=24, usrpri=51, slppri=24, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a61daa0,0xffff80002a61c020 process=0xffff80002a64fab0 user=0xffff80002a646000, vmspace=0xfffffd806ee3e848 estcpu=1, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 43536 436805 35764 0 2 0 syz-executor.1 43536 258228 35764 0 2 0x4000000 syz-executor.1 51671 264264 61764 0 2 0 syz-executor.7 51671 357579 61764 0 3 0x4000080 fsleep syz-executor.7 46732 496280 87760 0 2 0 syz-executor.5 46732 268224 87760 0 3 0x4000080 fsleep syz-executor.5 84308 154202 14057 0 2 0 syz-executor.0 84308 332031 14057 0 3 0x4000080 piperd syz-executor.0 37479 364849 86897 0 2 0 syz-executor.6 37479 180081 86897 0 3 0x4000080 fsleep syz-executor.6 8057 263058 90398 0 2 0 syz-executor.2 8057 137216 90398 0 3 0x4000080 fsleep syz-executor.2 82493 436487 52236 0 2 0 syz-executor.3 82493 418688 52236 0 3 0x4000080 fsleep syz-executor.3 52236 295904 76240 0 2 0x482 syz-executor.3 87760 265172 76240 0 2 0x482 syz-executor.5 35764 370751 76240 0 2 0x482 syz-executor.1 86897 143575 76240 0 2 0x482 syz-executor.6 36525 271190 0 0 3 0x14200 acct acct 14057 259286 76240 0 2 0x482 syz-executor.0 61764 114002 76240 0 2 0x482 syz-executor.7 89424 236733 76240 0 2 0x482 syz-executor.4 90398 202286 76240 0 2 0x482 syz-executor.2 33363 29051 0 0 3 0x14280 nfsidl nfsio 74284 278017 0 0 3 0x14280 nfsidl nfsio 49861 439746 0 0 3 0x14280 nfsidl nfsio 22461 443862 0 0 3 0x14280 nfsidl nfsio 53131 323426 0 0 3 0x14280 nfsidl nfsio 59719 253370 0 0 3 0x14280 nfsidl nfsio 65659 513125 0 0 3 0x14280 nfsidl nfsio 31988 240268 0 0 3 0x14280 nfsidl nfsio 11418 245896 0 0 3 0x14280 nfsidl nfsio 49686 502242 0 0 3 0x14280 nfsidl nfsio 64800 166422 0 0 3 0x14280 nfsidl nfsio 29145 319172 0 0 3 0x14280 nfsidl nfsio 92138 355115 0 0 3 0x14280 nfsidl nfsio 83556 111845 0 0 3 0x14280 nfsidl nfsio 93589 333264 0 0 3 0x14280 nfsidl nfsio 42181 275095 0 0 3 0x14280 nfsidl nfsio 84036 276937 0 0 3 0x14280 nfsidl nfsio 98417 272718 0 0 3 0x14280 nfsidl nfsio 27258 55615 0 0 3 0x14280 nfsidl nfsio 43280 320032 0 0 3 0x14280 nfsidl nfsio 44137 455486 0 0 3 0x14200 bored sosplice 76240 258457 91658 0 3 0x2000082 wait syz-fuzzer 76240 266169 91658 0 3 0x6000082 thrsleep syz-fuzzer 76240 202211 91658 0 3 0x6000082 wait syz-fuzzer 76240 79041 91658 0 3 0x6000082 thrsleep syz-fuzzer 76240 467065 91658 0 3 0x6000082 thrsleep syz-fuzzer 76240 49783 91658 0 3 0x6000082 thrsleep syz-fuzzer 76240 17967 91658 0 3 0x6000082 wait syz-fuzzer 76240 82486 91658 0 3 0x6000082 kqread syz-fuzzer 76240 39500 91658 0 3 0x6000082 wait syz-fuzzer 76240 145970 91658 0 3 0x6000082 thrsleep syz-fuzzer 76240 516780 91658 0 3 0x6000082 wait syz-fuzzer 76240 337065 91658 0 3 0x6000082 wait syz-fuzzer 76240 300640 91658 0 3 0x6000082 wait syz-fuzzer 76240 144172 91658 0 3 0x6000082 wait syz-fuzzer 91658 109134 6658 0 3 0x10008a sigsusp ksh 6658 302683 95665 0 3 0x9a kqread sshd 36511 352655 1 0 3 0x100083 ttyin getty 95665 245025 1 0 3 0x88 kqread sshd * 6266 409002 99354 73 7 0x1100010 syslogd 99354 99695 1 0 3 0x100082 netio syslogd 24980 10705 1 0 3 0x100080 kqread resolvd 81399 509771 47900 77 3 0x100092 kqread dhcpleased 92163 94277 47900 77 3 0x100092 kqread dhcpleased 47900 195412 1 0 3 0x80 kqread dhcpleased 11700 397119 0 0 3 0x14200 bored smr 1174 347594 0 0 2 0x14200 zerothread 3014 331016 0 0 3 0x14200 aiodoned aiodoned 6698 490820 0 0 2 0x14600 update 49084 77768 0 0 3 0x14200 cleaner cleaner 20964 435340 0 0 3 0x14200 reaper reaper 90456 308583 0 0 3 0x14200 pgdaemon pagedaemon 71800 317034 0 0 3 0x14200 bored viomb 1399 429957 0 0 3 0x40014200 acpi0 acpi0 37628 16057 0 0 3 0x14200 bored softnet3 78072 400638 0 0 3 0x14200 bored softnet2 78575 276679 0 0 3 0x14200 bored softnet1 74751 122846 0 0 3 0x14200 bored softnet0 11941 19690 0 0 3 0x14200 bored systqmp 32183 339001 0 0 3 0x14200 bored systq 13657 369119 0 0 2 0x40014200 softclock 35268 454416 0 0 3 0x40014200 idle0 1 98424 0 0 3 0x80082 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 10212 6561K 7273K 166960K 37374 0 pcb 15 22K 24K 166960K 1112 0 rtable 225 6K 7K 166960K 3553 0 pf 29 8K 9K 166960K 608 0 ifaddr 41 14K 16K 166960K 511 0 ifgroup 50 2K 2K 166960K 933 0 sysctl 3 0K 0K 166960K 9 0 counters 30 17K 17K 166960K 281 0 ioctlops 0 0K 2K 166960K 1172 0 iov 1 0K 48K 166960K 2422 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1432 90K 90K 166960K 9293 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 93 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 2472 0 dirhash 12 2K 3K 166960K 171 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 17 61K 77K 166960K 15103 0 sigio 0 0K 0K 166960K 942 0 proc 58 59K 75K 166960K 2452 0 subproc 104 6K 6K 166960K 811 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 1180 0 in_multi 91 6K 7K 166960K 1107 0 ether_multi 1 0K 0K 166960K 13 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 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 2988 0 pfkey data 0 0K 0K 166960K 6 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 469 559K 564K 166960K 139514 0 UVM aobj 131 4K 4K 166960K 140 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 475 0 NDP 11 0K 1K 166960K 429 0 temp 74 6764K 7400K 166960K 188508 0 kqueue 12 18K 28K 166960K 1100 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 886 0 883 8 5 3 3 0 8 2 rtentry 112 1134 0 1030 5 2 3 4 0 8 0 unpcb 144 11552 0 11539 34 28 6 10 0 8 5 syncache 336 136 0 136 6 5 1 1 0 8 1 sackhl 24 1 4 1 1 1 0 1 0 8 0 tcpqe 32 263 0 263 5 4 1 1 0 8 1 tcpcb 808 4946 0 4931 48 38 10 12 0 8 7 arp 88 222 0 204 1 0 1 1 0 8 0 ipq 40 17 0 16 4 3 1 1 0 8 0 ipqe 40 138 0 137 4 3 1 1 0 8 0 inpcb 360 13110 0 13092 90 80 10 23 0 8 7 nd6 104 237 0 216 1 0 1 1 0 8 0 pkpcb 40 96 0 96 4 3 1 1 0 8 1 kcovpl 48 62 0 54 1 0 1 1 0 8 0 ppxss 1072 99 0 99 6 5 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 4226 0 3782 46 18 28 31 0 8 0 art_table 32 4227 0 3782 4 0 4 4 0 8 0 art_node 16 1087 0 994 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 2464 0 2454 1 0 1 1 0 8 0 shmpl 112 137 0 9 4 0 4 4 0 8 0 dirhash 1024 123 0 106 3 0 3 3 0 8 0 dino2pl 256 21043 0 19499 97 0 97 97 0 8 0 ffsino 240 21043 0 19499 91 0 91 91 0 8 0 nchpl 144 41281 0 39642 63 1 62 63 0 8 0 uvmvnodes 80 6263 0 0 128 0 128 128 0 8 0 vnodes 216 6263 0 0 348 0 348 348 0 8 0 namei 1024 143029 0 143029 6 5 1 2 0 8 1 vcpupl 2048 102 0 1 13 0 13 13 0 8 0 vmpool 664 131 0 30 9 0 9 9 0 8 0 kstatmem 264 524 0 502 2 0 2 2 0 8 0 scxspl 216 120489 0 120489 15 13 2 8 1 8 2 plimitpl 152 2308 0 2293 1 0 1 1 0 8 0 sigapl 424 15370 0 15303 8 0 8 8 0 8 0 futexpl 64 142794 0 142789 1 0 1 1 0 8 0 knotepl 120 133380 0 133298 27 20 7 12 0 8 2 kqueuepl 184 3014 0 3006 21 17 4 6 0 8 3 pipepl 288 2821 0 2792 24 17 7 7 0 8 4 fdescpl 432 15271 0 15243 4 0 4 4 0 8 0 filepl 120 93091 0 92850 46 30 16 19 0 8 8 lockfpl 104 4213 0 4208 7 5 2 3 0 8 1 lockfspl 48 1595 0 1590 2 1 1 2 0 8 0 sessionpl 144 77 0 61 1 0 1 1 0 8 0 pgrppl 48 601 0 585 1 0 1 1 0 8 0 ucredpl 104 12795 0 12783 1 0 1 1 0 8 0 zombiepl 144 15304 0 15303 1 0 1 1 0 8 0 processpl 1072 15370 0 15303 5 0 5 5 0 8 0 procpl 680 37603 0 37516 14 5 9 10 0 8 1 sosppl 168 142 0 142 3 2 1 1 0 8 1 sockpl 488 25788 0 25754 442 429 13 35 0 8 7 mcl64k 65536 709 0 709 6 5 1 1 0 8 1 mcl16k 16384 355 0 355 6 5 1 1 0 8 1 mcl12k 12288 737 0 737 6 5 1 1 0 8 1 mcl9k 9216 315 0 312 4 3 1 1 0 8 0 mcl8k 8192 1000 0 1000 6 5 1 1 0 8 1 mcl4k 4096 1705 0 1705 7 5 2 2 0 8 2 mcl2k2 2112 104 0 104 6 5 1 1 0 8 1 mcl2k 2048 102284 0 102178 48 31 17 27 0 8 1 mtagpl 96 2304 0 1703 24 9 15 15 0 8 0 mbufpl 256 304071 0 303250 763 696 67 450 0 8 8 bufpl 280 29900 0 23508 457 0 457 457 0 8 0 anonpl 24 1496495 0 1483991 142 38 104 112 0 188 0 amapchunkpl 152 437285 0 436428 56 18 38 44 0 158 0 amappl16 200 32063 0 31601 113 76 37 38 0 8 11 amappl15 192 83 0 82 1 0 1 1 0 8 0 amappl14 184 356 0 342 2 1 1 2 0 8 0 amappl13 176 43 0 43 4 3 1 1 0 8 1 amappl12 168 16692 0 16662 2 0 2 2 0 8 0 amappl11 160 55 0 45 1 0 1 1 0 8 0 amappl10 152 110 0 100 1 0 1 1 0 8 0 amappl9 144 252 0 250 1 0 1 1 0 8 0 amappl8 136 616 0 526 4 0 4 4 0 8 0 amappl7 128 335 0 310 2 0 2 2 0 8 0 amappl6 120 1133 0 1123 1 0 1 1 0 8 0 amappl5 112 428 0 420 1 0 1 1 0 8 0 amappl4 104 972 0 947 2 1 1 2 0 8 0 amappl3 96 87180 0 87082 3 0 3 3 0 8 0 amappl2 88 16557 0 16483 3 1 2 3 0 8 0 amappl1 80 66328 0 65814 23 11 12 22 0 8 0 amappl 88 138128 0 137852 7 0 7 7 0 92 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 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 139 0 9 3 0 3 3 0 8 0 uaddrrnd 24 15402 0 15273 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 15402 0 15273 1 0 1 1 0 8 0 vmmpekpl 168 106212 0 106138 4 0 4 4 0 8 0 vmmpepl 168 914757 0 912251 223 86 137 140 0 357 9 vmsppl 352 15401 0 15273 12 0 12 12 0 8 0 rwobjpl 24 216782 0 208837 49 0 49 49 0 8 1 pdppl 4096 30810 0 30647 856 691 165 167 0 8 2 pvpl 32 4030080 0 4011810 420 232 188 338 0 265 7 pmappl 216 15401 0 15273 8 0 8 8 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2044 0 1528 26 0 26 26 0 8 8 ddb> machine ddbcpu 0 No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80002a64aea0) at ffs_write+0x924 VOP_WRITE(fffffd806e78c708,ffff80002a64b0c0,3,fffffd807f7d7a28) at VOP_WRITE+0xc3 sys/kern/vfs_vops.c:245 vn_write(fffffd8071512170,ffff80002a64b0c0,0) at vn_write+0x156 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a61dd48,e,ffff80002a64b0c0,0,ffff80002a64b180) at dofilewritev+0x1a0 sys/kern/sys_generic.c:375 sys_writev(ffff80002a61dd48,ffff80002a64b230,ffff80002a64b180) at sys_writev+0xab sys/kern/sys_generic.c:322 syscall(ffff80002a64b230) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x778bd3042940, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80002a64aea0) at ffs_write+0x924 VOP_WRITE(fffffd806e78c708,ffff80002a64b0c0,3,fffffd807f7d7a28) at VOP_WRITE+0xc3 sys/kern/vfs_vops.c:245 vn_write(fffffd8071512170,ffff80002a64b0c0,0) at vn_write+0x156 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80002a61dd48,e,ffff80002a64b0c0,0,ffff80002a64b180) at dofilewritev+0x1a0 sys/kern/sys_generic.c:375 sys_writev(ffff80002a61dd48,ffff80002a64b230,ffff80002a64b180) at sys_writev+0xab sys/kern/sys_generic.c:322 syscall(ffff80002a64b230) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x778bd3042940, count: -8