uvm_fault(0xffffffff8353da28, 0xffff800019e72feb, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x49: repe stosb %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND 64927 97796 60928 0x10 0 1 syz-executor *202188 84402 73 0x1100010 0x1 0K syslogd memset() at memset+0x49 ffs_write(ffff80002a069b00) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806ceafa78,ffff80002a069bb8,3,fffffd807f7d3068) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000ffffdbe8,fffffd806ceafa78,fffffd807f7d3068,ffff80002a069c88,ffff80002a069c60) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrstruct(ffff8000ffffdbe8,ffffffff830a062e,ffff80002a069dc0,70) at ktrstruct+0x19a sys/kern/kern_ktrace.c:308 iovec_copyin(7a5f98cf5490,ffff80002a069e78,ffff80002a069dc0,7,ffff80002a069e70) at iovec_copyin+0x20a sys/kern/sys_generic.c:120 sys_writev(ffff8000ffffdbe8,ffff80002a069fb0,ffff80002a069f00) at sys_writev+0x67 sys/kern/sys_generic.c:319 syscall(ffff80002a069fb0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a069fb0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a5f98cf31f0, 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(0xffffffff8353da28, 0xffff800019e72feb, 0, 2) -> d ddb{0}> trace memset() at memset+0x49 ffs_write(ffff80002a069b00) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806ceafa78,ffff80002a069bb8,3,fffffd807f7d3068) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000ffffdbe8,fffffd806ceafa78,fffffd807f7d3068,ffff80002a069c88,ffff80002a069c60) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrstruct(ffff8000ffffdbe8,ffffffff830a062e,ffff80002a069dc0,70) at ktrstruct+0x19a sys/kern/kern_ktrace.c:308 iovec_copyin(7a5f98cf5490,ffff80002a069e78,ffff80002a069dc0,7,ffff80002a069e70) at iovec_copyin+0x20a sys/kern/sys_generic.c:120 sys_writev(ffff8000ffffdbe8,ffff80002a069fb0,ffff80002a069f00) at sys_writev+0x67 sys/kern/sys_generic.c:319 syscall(ffff80002a069fb0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a069fb0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a5f98cf31f0, count: -9 ddb{0}> show registers rdi 0xffff800019e72feb rsi 0 rbp 0xffff80002a069a20 rbx 0x178feb acpi_pdirpa+0x164e5c rdx 0x5 rcx 0x5 rax 0 r8 0x3010 __ALIGN_SIZE+0x2010 r9 0xffff80002a069980 r10 0x53c75169697715f4 r11 0xffff800019e72feb r12 0x4000 __ALIGN_SIZE+0x3000 r13 0xfeb r14 0xfffffd806ceafa78 r15 0x1 rip 0xffffffff82e89339 memset+0x49 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002a069818 ss 0x10 memset+0x49: repe stosb %es:(%rdi) ddb{0}> show proc PROC (syslogd) tid=202188 pid=84402 tcnt=1 stat=onproc flags process=1100010 proc=1 runpri=17, usrpri=55, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffffcf40,0xffff8000ffffc020 process=0xffff8000ffffa8d8 user=0xffff80002a065000, vmspace=0xfffffd806ece5a58 estcpu=5, cpticks=11, pctcpu=1.5, user=6, sys=221, intr=8 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 97796 64927 21211 60928 7 0x10 syz-executor 97796 490862 21211 60928 3 0x4000090 fsleep syz-executor 21797 361892 340 0 2 0 syz-executor 21797 36080 340 0 3 0x4000080 fifor syz-executor 21797 437035 340 0 2 0x4000000 syz-executor 20524 480166 68074 0 2 0 syz-executor 20524 318294 68074 0 2 0x4000480 syz-executor 20524 167823 68074 0 3 0x4000080 fsleep syz-executor 20524 345818 68074 0 3 0x4000080 fsleep syz-executor 72675 187112 76281 0 2 0x4000480 syz-executor 72675 205798 76281 0 3 0x4000080 nanoslp syz-executor 72675 106781 76281 0 3 0x4000080 nanoslp syz-executor 72675 217466 76281 0 3 0x4000080 fsleep syz-executor 48924 431584 72145 0 2 0x480 syz-executor 48924 199718 72145 0 3 0x4000080 ttyout syz-executor 48924 424244 72145 0 3 0x4000080 ttyout syz-executor 48924 420249 72145 0 3 0x4000080 sbwait syz-executor 48924 381632 72145 0 3 0x4000080 fsleep syz-executor 58069 374859 45184 60929 2 0x490 syz-executor 58069 202641 45184 60929 3 0x4000090 fsleep syz-executor 58069 273341 45184 60929 3 0x4000090 kqread syz-executor 65360 424356 70478 0 2 0x480 syz-executor 65360 518021 70478 0 3 0x4000080 sbwait syz-executor 65360 162164 70478 0 3 0x4000080 sbwait syz-executor 65360 281505 70478 0 3 0x4000080 fsleep syz-executor 62442 379909 54225 0 2 0x482 syz-executor 68074 429813 54225 0 2 0x482 syz-executor 76281 13069 54225 0 2 0x482 syz-executor 70478 283021 54225 0 2 0x482 syz-executor 72145 302385 54225 0 3 0x82 nanoslp syz-executor 45184 494106 54225 0 2 0x482 syz-executor 340 370829 54225 0 2 0x482 syz-executor 21211 331776 54225 0 2 0x482 syz-executor 76717 494815 0 0 3 0x14280 nfsidl nfsio 22734 64095 0 0 3 0x14280 nfsidl nfsio 27879 471632 0 0 3 0x14280 nfsidl nfsio 43413 238172 0 0 3 0x14280 nfsidl nfsio 28970 5150 0 0 3 0x14280 nfsidl nfsio 54081 149057 0 0 3 0x14280 nfsidl nfsio 69296 317503 0 0 3 0x14280 nfsidl nfsio 19127 112754 0 0 3 0x14280 nfsidl nfsio 65356 113186 0 0 3 0x14280 nfsidl nfsio 25413 320028 0 0 3 0x14280 nfsidl nfsio 41098 333029 0 0 3 0x14280 nfsidl nfsio 66633 443662 0 0 3 0x14280 nfsidl nfsio 60275 283086 0 0 3 0x14280 nfsidl nfsio 33829 398643 0 0 3 0x14280 nfsidl nfsio 92414 489749 0 0 3 0x14280 nfsidl nfsio 99613 52050 0 0 3 0x14280 nfsidl nfsio 74507 8362 0 0 3 0x14280 nfsidl nfsio 29339 1124 0 0 3 0x14280 nfsidl nfsio 81244 458374 0 0 3 0x14280 nfsidl nfsio 46693 196122 0 0 3 0x14280 nfsidl nfsio 32688 5395 1 0 3 0x100083 ttyin getty 81381 194058 0 0 3 0x14200 bored sosplice 54225 120130 96737 0 3 0x82 kqread syz-executor 96737 19066 48222 0 3 0x10008a sigsusp ksh 48222 184951 86607 0 3 0x98 kqread sshd-session 86607 152084 2403 0 3 0x92 kqread sshd-session 2403 95392 1 0 3 0x88 kqread sshd 45427 506194 83835 74 3 0x1100092 bpf pflogd 83835 135624 1 0 3 0x80 sbwait pflogd *84402 202188 99810 73 7 0x1100011 syslogd 99810 182698 1 0 3 0x100082 sbwait syslogd 34188 508069 1 0 3 0x100080 kqread resolvd 30239 413403 78327 77 3 0x100092 kqread dhcpleased 73528 118445 78327 77 3 0x100092 kqread dhcpleased 78327 486561 1 0 3 0x80 kqread dhcpleased 37357 27254 0 0 3 0x14200 bored smr 60253 140443 0 0 2 0x14200 zerothread 99566 194373 0 0 3 0x14200 aiodoned aiodoned 57477 423142 0 0 3 0x14200 syncer update 88766 175314 0 0 3 0x14200 cleaner cleaner 54128 360928 0 0 3 0x14200 reaper reaper 62872 331148 0 0 3 0x14200 pgdaemon pagedaemon 26329 482068 0 0 3 0x14200 bored viomb 56938 258388 0 0 3 0x40014200 acpi0 acpi0 68695 497627 0 0 3 0x40014200 idle1 52527 150446 0 0 3 0x14200 bored softnet3 76616 106283 0 0 3 0x14200 bored softnet2 71923 483114 0 0 3 0x14200 bored softnet1 45954 71382 0 0 3 0x14200 bored softnet0 12404 265105 0 0 3 0x14200 bored systqmp 10703 501169 0 0 3 0x14200 bored systq 65122 448057 0 0 3 0x14200 tmoslp softclockmp 16900 13733 0 0 3 0x40014200 tmoslp softclock 30637 139268 0 0 3 0x40014200 idle0 1 194451 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 84402 (syslogd) thread 0xffff8000ffffdbe8 (202188) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10233 10180K 10435K 166960K 12280 0 pcb 17 16K 17K 166960K 236 0 rtable 218 7K 7K 166960K 1691 0 pf 36 17K 25K 166960K 150 0 ifaddr 43 7K 8K 166960K 221 0 ifgroup 59 2K 2K 166960K 233 0 sysctl 2 0K 0K 166960K 2 0 counters 66 36K 36K 166960K 158 0 ioctlops 0 0K 4K 166960K 1601 0 iov 1 12K 28K 166960K 49 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1403 88K 88K 166960K 2385 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 14 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 64 0 dirhash 12 2K 2K 166960K 33 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 18 65K 93K 166960K 1377 0 sigio 0 0K 0K 166960K 10 0 proc 75 103K 128K 166960K 1723 0 subproc 104 6K 6K 166960K 624 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 204 0 in_multi 96 7K 7K 166960K 587 0 ether_multi 1 0K 0K 166960K 10 0 mrt 1 0K 0K 166960K 6 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 961 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 260 73K 93K 166960K 12048 0 UVM aobj 36 4K 4K 166960K 39 0 pinsyscall 43 86K 102K 166960K 3543 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 35 0 NDP 15 0K 2K 166960K 159 0 temp 57 6818K 6938K 166960K 48237 0 kqueue 15 24K 26K 166960K 123 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 24 0 0 1 0 1 1 0 8 0 rtpcb 120 170 0 167 1 0 1 1 0 8 0 rtentry 112 575 0 476 4 1 3 4 0 8 0 unpcb 144 934 0 911 16 14 2 6 0 8 1 syncache 336 7 0 7 3 2 1 1 0 8 1 tcpcb 808 356 0 348 15 13 2 7 0 8 1 arp 120 100 0 82 1 0 1 1 0 8 0 inpcb 336 1282 0 1266 21 18 3 7 0 8 1 nd6 136 152 0 128 1 0 1 1 0 8 0 pkpcb 40 37 0 37 3 2 1 1 0 8 1 kcovpl 48 48 0 40 1 0 1 1 0 8 0 ppxss 1168 5 0 5 4 3 1 1 0 8 1 pffrag 232 8 0 4 1 0 1 1 0 482 0 pffrnode 88 8 0 4 1 0 1 1 0 8 0 pffrent 40 57 0 53 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 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 121 0 76 1 0 1 1 0 8 0 pfstkey 128 121 0 76 2 0 2 2 0 8 0 pfstate 376 121 0 76 6 0 6 6 0 8 0 pfrule 1344 29 0 22 2 0 2 2 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2323 0 1905 30 3 27 30 0 8 0 art_table 32 2324 0 1905 4 0 4 4 0 8 0 art_node 16 574 0 486 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 3 1 0 1 1 0 8 0 semapl 112 61 0 51 1 0 1 1 0 8 0 shmpl 112 36 0 3 1 0 1 1 0 8 0 dirhash 1024 31 0 14 3 0 3 3 0 8 0 dino2pl 256 2857 0 1276 99 0 99 99 0 8 0 ffsino 272 2857 0 1276 107 1 106 106 0 8 0 nchpl 144 3997 0 2261 65 0 65 65 0 8 0 uvmvnodes 80 3752 0 0 77 0 77 77 0 8 0 vnodes 216 3752 0 0 209 0 209 209 0 8 0 namei 1024 17721 0 17721 3 2 1 1 0 8 1 percpumem 16 93 0 46 1 0 1 1 0 8 0 kstatmem 264 118 0 92 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 29174 0 29174 11 10 1 8 1 8 1 plimitpl 152 361 0 341 1 0 1 1 0 8 0 sigapl 424 1632 0 1561 12 3 9 9 0 8 0 futexpl 64 10193 0 10186 4 3 1 1 0 8 0 knotepl 120 622 0 0 18 0 18 18 0 8 0 kqueuepl 216 181 0 168 1 0 1 1 0 8 0 pipepl 320 322 0 294 3 0 3 3 0 8 0 fdescpl 496 1592 0 1560 8 3 5 5 0 8 0 filepl 152 8330 0 8062 32 21 11 18 0 8 0 lockfpl 104 553 0 550 2 1 1 2 0 8 0 lockfspl 48 97 0 94 1 0 1 1 0 8 0 sessionpl 144 68 0 59 1 0 1 1 0 8 0 pgrppl 48 121 0 104 1 0 1 1 0 8 0 ucredpl 104 1004 0 988 1 0 1 1 0 8 0 zombiepl 144 1562 0 1561 1 0 1 1 0 8 0 processpl 1160 1632 0 1561 7 1 6 6 0 8 0 procpl 648 2752 0 2663 9 1 8 8 0 8 0 srpgc 96 6 0 6 2 2 0 1 0 8 0 sosppl 168 6 0 6 2 2 0 1 0 8 0 sockpl 664 2438 0 2396 42 35 7 20 0 8 3 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 257 0 0 33 1 32 33 0 8 0 mtagpl 96 9 0 0 1 0 1 1 0 8 0 mbufpl 256 1164 0 0 69 0 69 69 0 8 0 bufpl 280 7795 0 1621 442 0 442 442 0 8 0 anonpl 24 268874 0 264706 62 8 54 56 0 185 16 amapchunkpl 152 38318 0 37731 37 4 33 35 0 158 9 amappl16 200 5340 0 5316 42 28 14 15 0 8 11 amappl15 192 8 0 8 2 2 0 1 0 8 0 amappl14 184 207 0 195 1 0 1 1 0 8 0 amappl13 176 7 0 7 2 2 0 1 0 8 0 amappl12 168 2889 0 2856 3 1 2 2 0 8 0 amappl11 160 99 0 85 1 0 1 1 0 8 0 amappl10 152 12 0 12 1 1 0 1 0 8 0 amappl9 144 128 0 127 1 0 1 1 0 8 0 amappl8 136 26 0 23 1 0 1 1 0 8 0 amappl7 128 198 0 186 1 0 1 1 0 8 0 amappl6 120 573 0 571 1 0 1 1 0 8 0 amappl5 112 297 0 285 1 0 1 1 0 8 0 amappl4 104 456 0 436 1 0 1 1 0 8 0 amappl3 96 7473 0 7352 5 1 4 4 0 8 0 amappl2 88 1283 0 1216 2 0 2 2 0 8 0 amappl1 80 14583 0 14022 17 3 14 14 0 8 0 amappl 88 11295 0 11097 5 0 5 5 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 20 0 19 1 0 1 1 0 8 0 aobjpl 72 38 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1592 0 1560 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1592 0 1560 1 0 1 1 0 8 0 vmmpekpl 168 14782 0 14736 4 1 3 3 0 8 0 vmmpepl 168 104756 0 102820 116 21 95 95 0 357 7 vmsppl 440 1591 0 1560 6 2 4 5 0 8 0 rwobjpl 56 35711 0 30973 76 6 70 70 0 8 2 pdppl 4096 3191 0 3120 151 76 75 85 0 8 4 pvpl 32 28152 0 0 227 0 227 227 0 265 0 pmappl 248 1591 0 1560 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 546 0 121 13 0 13 13 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace memset() at memset+0x49 ffs_write(ffff80002a069b00) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806ceafa78,ffff80002a069bb8,3,fffffd807f7d3068) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000ffffdbe8,fffffd806ceafa78,fffffd807f7d3068,ffff80002a069c88,ffff80002a069c60) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrstruct(ffff8000ffffdbe8,ffffffff830a062e,ffff80002a069dc0,70) at ktrstruct+0x19a sys/kern/kern_ktrace.c:308 iovec_copyin(7a5f98cf5490,ffff80002a069e78,ffff80002a069dc0,7,ffff80002a069e70) at iovec_copyin+0x20a sys/kern/sys_generic.c:120 sys_writev(ffff8000ffffdbe8,ffff80002a069fb0,ffff80002a069f00) at sys_writev+0x67 sys/kern/sys_generic.c:319 syscall(ffff80002a069fb0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a069fb0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a5f98cf31f0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83628318) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83628318) at __mp_lock+0x199 sys/kern/kern_lock.c:144 uvm_fault(fffffd806bea01c0,bb135311000,0,1) at uvm_fault+0x1ed sys/uvm/uvm_fault.c:622 upageflttrap(ffff80003720d3e0,bb135311000) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 usertrap(ffff80003720d3e0) at usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7056fad34040, count: 7 ddb{1}> trace x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83628318) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83628318) at __mp_lock+0x199 sys/kern/kern_lock.c:144 uvm_fault(fffffd806bea01c0,bb135311000,0,1) at uvm_fault+0x1ed sys/uvm/uvm_fault.c:622 upageflttrap(ffff80003720d3e0,bb135311000) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 usertrap(ffff80003720d3e0) at usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7056fad34040, count: -8