uvm_fault(0xffffffff83549bb0, 0xffff80002219348f, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x49: repe stosb %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *321944 18372 73 0x1100010 0x1 0K syslogd memset() at memset+0x49 ffs_write(ffff80002a06a4e0) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806563acf8,ffff80002a06a598,3,fffffd807f7d32d8) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000ffffdbe8,fffffd806563acf8,fffffd807f7d32d8,ffff80002a06a668,ffff80002a06a640) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrstruct(ffff8000ffffdbe8,ffffffff830ece8b,ffff80002a06a820,20) at ktrstruct+0x19a sys/kern/kern_ktrace.c:308 sys_kevent(ffff8000ffffdbe8,ffff80002a06aab0,ffff80002a06aa00) at sys_kevent+0x80f sys/kern/kern_event.c:1184 syscall(ffff80002a06aab0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a06aab0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x715b52eb56e0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: uvm_fault(0xffffffff83549bb0, 0xffff80002219348f, 0, 2) -> d ddb{0}> trace memset() at memset+0x49 ffs_write(ffff80002a06a4e0) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806563acf8,ffff80002a06a598,3,fffffd807f7d32d8) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000ffffdbe8,fffffd806563acf8,fffffd807f7d32d8,ffff80002a06a668,ffff80002a06a640) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrstruct(ffff8000ffffdbe8,ffffffff830ece8b,ffff80002a06a820,20) at ktrstruct+0x19a sys/kern/kern_ktrace.c:308 sys_kevent(ffff8000ffffdbe8,ffff80002a06aab0,ffff80002a06aa00) at sys_kevent+0x80f sys/kern/kern_event.c:1184 syscall(ffff80002a06aab0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a06aab0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x715b52eb56e0, count: -8 ddb{0}> show registers rdi 0xffff80002219348f rsi 0 rbp 0xffff80002a06a400 rbx 0x948f __ALIGN_SIZE+0x848f rdx 0x1 rcx 0x1 rax 0 r8 0x370 r9 0xffff80002a06a360 r10 0xc69e5da5bd33cd12 r11 0xffff80002219348f r12 0x1800 __ALIGN_SIZE+0x800 r13 0x148f __ALIGN_SIZE+0x48f r14 0xfffffd806563acf8 r15 0x1 rip 0xffffffff82678999 memset+0x49 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002a06a1f8 ss 0x10 memset+0x49: repe stosb %es:(%rdi) ddb{0}> show proc PROC (syslogd) tid=321944 pid=18372 tcnt=1 stat=onproc flags process=1100010 proc=1 runpri=24, usrpri=50, slppri=24, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffffd450,0xffff8000ffffd1d8 process=0xffff8000ffff9fc8 user=0xffff80002a065000, vmspace=0xfffffd806ec02a58 estcpu=0, cpticks=0, pctcpu=1.86, user=7, sys=653, intr=847 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 39791 338392 97441 0 3 0x80 fsleep syz-executor 39791 193985 97441 0 2 0x4000000 syz-executor 23142 192426 78751 0 3 0x80 fsleep syz-executor 23142 450748 78751 0 3 0x4000080 netcon syz-executor 49068 371563 45964 0 3 0x80 fsleep syz-executor 49068 506901 45964 0 3 0x4000080 fifow syz-executor 97146 82113 79461 0 3 0x80 fsleep syz-executor 97146 23315 79461 0 3 0x4000080 netacc syz-executor 63214 237810 63112 0 3 0x80 fsleep syz-executor 63214 178506 63112 0 3 0x4000080 fifor syz-executor 51230 358833 72006 -1 3 0x90 fsleep syz-executor 51230 182269 72006 -1 3 0x4000090 ttyout syz-executor 80457 339933 70651 0 3 0x80 fsleep syz-executor 80457 430913 70651 0 3 0x4000080 lockf syz-executor 17281 292397 1 0 3 0x100083 ttyin getty 64904 457136 0 0 3 0x14200 acct acct 97441 315513 74048 0 2 0x482 syz-executor 63112 517050 74048 0 2 0x482 syz-executor 45964 187098 74048 0 2 0x482 syz-executor 13290 214252 74048 0 3 0x82 wait syz-executor 79461 196936 74048 0 2 0x482 syz-executor 70651 171781 74048 0 2 0x482 syz-executor 72006 208406 74048 0 2 0x482 syz-executor 78751 93361 74048 0 2 0x482 syz-executor 82709 249730 0 0 3 0x14200 bored sosplice 74048 203619 89730 0 3 0x82 kqread syz-executor 89730 181706 12177 0 3 0x10008a sigsusp ksh 12177 80029 35178 0 3 0x98 kqread sshd-session 35178 165623 56242 0 3 0x92 kqread sshd-session 56242 335686 1 0 3 0x88 kqread sshd 55000 459879 7109 74 3 0x1100092 bpf pflogd 7109 483032 1 0 3 0x80 sbwait pflogd *18372 321944 26424 73 7 0x1100011 syslogd 26424 303004 1 0 3 0x100082 sbwait syslogd 52010 108740 1 0 3 0x100080 kqread resolvd 92127 254758 46087 77 3 0x100092 kqread dhcpleased 81298 19939 46087 77 3 0x100092 kqread dhcpleased 46087 212433 1 0 3 0x80 kqread dhcpleased 67464 33130 0 0 3 0x14200 bored smr 94975 444640 0 0 2 0x14200 zerothread 95974 516172 0 0 3 0x14200 aiodoned aiodoned 73437 200680 0 0 3 0x14200 syncer update 69277 416281 0 0 3 0x14200 cleaner cleaner 135 165226 0 0 3 0x14200 reaper reaper 93522 121094 0 0 3 0x14200 pgdaemon pagedaemon 80312 254195 0 0 3 0x14200 bored viomb 75167 243377 0 0 3 0x40014200 acpi0 acpi0 32295 49628 0 0 7 0x40014200 idle1 2999 407241 0 0 3 0x14200 bored softnet3 72945 55401 0 0 3 0x14200 bored softnet2 3623 322021 0 0 3 0x14200 bored softnet1 63123 211791 0 0 3 0x14200 bored softnet0 91825 283446 0 0 3 0x14200 bored systqmp 76106 75751 0 0 3 0x14200 bored systq 12004 276140 0 0 3 0x14200 tmoslp softclockmp 92224 54561 0 0 3 0x40014200 tmoslp softclock 43467 28885 0 0 3 0x40014200 idle0 1 7131 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 18372 (syslogd) thread 0xffff8000ffffdbe8 (321944) exclusive rrwlock inode r = 0 (0xfffffd806015e098) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 vget+0x2bd sys/kern/vfs_subr.c:676 #6 ktrwriteraw+0x172 sys/kern/kern_ktrace.c:679 #7 ktrstruct+0x19a sys/kern/kern_ktrace.c:308 #8 sys_kevent+0x80f sys/kern/kern_event.c:1184 #9 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #9 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #10 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8361b230) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 ktrstruct+0xe2 sys/kern/kern_ktrace.c:307 #2 sys_kevent+0x80f sys/kern/kern_event.c:1184 #3 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #3 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #4 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10200 11191K 11523K 166960K 12572 0 pcb 21 14K 16K 166960K 198 0 rtable 188 7K 9K 166960K 1898 0 pf 38 18K 26K 166960K 192 0 ifaddr 37 6K 8K 166960K 256 0 ifgroup 55 2K 2K 166960K 287 0 sysctl 3 0K 0K 166960K 5 0 counters 64 36K 36K 166960K 186 0 ioctlops 0 0K 4K 166960K 1758 0 iov 0 0K 24K 166960K 87 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1485 93K 94K 166960K 3018 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 23 0 VM map 2 1K 1K 166960K 2 0 sem 25 5K 5K 166960K 40 0 dirhash 12 2K 2K 166960K 45 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 93K 166960K 2128 0 sigio 0 0K 0K 166960K 101 0 proc 72 91K 140K 166960K 1936 0 subproc 104 6K 6K 166960K 702 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 216 0 in_multi 75 5K 7K 166960K 674 0 ether_multi 1 0K 0K 166960K 9 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 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 1173 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 251 74K 94K 166960K 18611 0 UVM aobj 35 5K 5K 166960K 42 0 pinsyscall 43 86K 105K 166960K 4440 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 95 0 NDP 12 0K 2K 166960K 185 0 temp 76 6824K 6897K 166960K 113080 0 kqueue 13 20K 28K 166960K 238 0 SYN cache 2 10K 18K 166960K 3 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 269 0 266 3 2 1 3 0 8 0 rtentry 112 650 0 570 4 1 3 4 0 8 0 unpcb 144 1026 0 1002 5 3 2 2 0 8 0 syncache 336 10 0 10 6 6 0 1 0 8 0 tcpqe 32 2 21 2 1 1 0 1 0 8 0 tcpcb 808 429 0 418 16 14 2 8 0 8 0 arp 120 116 0 101 1 0 1 1 0 8 0 inpcb 336 1827 0 1800 24 21 3 13 0 8 0 nd6 136 169 0 151 1 0 1 1 0 8 0 pkpcb 40 9 0 9 5 4 1 1 0 8 1 kcovpl 48 54 0 46 1 0 1 1 0 8 0 ppxss 1168 10 0 10 4 4 0 1 0 8 0 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 46 0 39 1 0 1 1 0 482 0 pffrnode 88 44 0 38 1 0 1 1 0 8 0 pffrent 40 87 0 80 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 pfrktable 1344 3 0 1 1 0 1 1 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pfstitem 24 217 0 128 1 0 1 1 0 8 0 pfstkey 128 221 0 131 4 0 4 4 0 8 0 pfstate 376 216 0 129 10 0 10 10 0 8 0 pfrule 1344 25 0 18 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 2586 0 2256 35 8 27 31 0 8 6 art_table 32 2588 0 2256 5 0 5 5 0 8 0 art_node 16 645 0 574 1 0 1 1 0 8 0 sysvmsgpl 40 44 0 4 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 33 0 10 1 0 1 1 0 8 0 shmpl 112 39 0 7 1 0 1 1 0 8 0 dirhash 1024 40 0 23 3 0 3 3 0 8 0 dino2pl 256 4084 0 2491 100 0 100 100 0 8 0 ffsino 272 4084 0 2491 107 0 107 107 0 8 0 nchpl 144 6196 0 5586 65 38 27 65 0 8 0 uvmvnodes 80 5335 0 0 109 0 109 109 0 8 0 vnodes 216 5335 0 0 297 0 297 297 0 8 0 namei 1024 24668 0 24668 7 6 1 2 0 8 1 percpumem 16 107 0 61 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 0 1 0 1 1 0 8 0 kstatmem 264 146 0 122 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 52431 0 52431 17 14 3 8 1 8 3 plimitpl 152 293 0 275 1 0 1 1 0 8 0 sigapl 424 2349 0 2297 9 2 7 7 0 8 0 futexpl 64 23403 0 23396 6 5 1 1 0 8 0 knotepl 120 625 0 0 19 0 19 19 0 8 0 kqueuepl 216 359 0 348 1 0 1 1 0 8 0 pipepl 320 431 0 404 5 2 3 5 0 8 0 fdescpl 496 2327 0 2295 8 3 5 5 0 8 0 filepl 152 11778 0 11511 24 13 11 15 0 8 0 lockfpl 104 765 0 761 2 1 1 2 0 8 0 lockfspl 48 305 0 302 1 0 1 1 0 8 0 sessionpl 144 76 0 67 1 0 1 1 0 8 0 pgrppl 48 154 0 137 1 0 1 1 0 8 0 ucredpl 104 1823 0 1807 1 0 1 1 0 8 0 zombiepl 144 2298 0 2297 2 1 1 1 0 8 0 processpl 1160 2349 0 2297 5 1 4 5 0 8 0 procpl 648 4494 0 4435 7 1 6 7 0 8 0 srpgc 96 12 0 12 4 3 1 1 0 8 1 sosppl 168 6 0 6 3 3 0 1 0 8 0 sockpl 664 3149 0 3095 32 26 6 16 0 8 1 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 134 0 0 16 0 16 16 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 38 0 0 5 0 5 5 0 8 0 mtagpl 96 14 0 0 1 0 1 1 0 8 0 mbufpl 256 472 0 0 26 0 26 26 0 8 0 bufpl 280 13764 0 7325 527 1 526 527 0 8 12 anonpl 24 366864 0 357947 135 56 79 79 0 185 0 amapchunkpl 152 61165 0 60540 75 43 32 35 0 158 6 amappl16 200 7253 0 6995 77 50 27 27 0 8 0 amappl15 192 33 0 33 1 1 0 1 0 8 0 amappl14 184 218 0 206 1 0 1 1 0 8 0 amappl13 176 9 0 9 1 1 0 1 0 8 0 amappl12 168 3737 0 3705 4 2 2 3 0 8 0 amappl11 160 60 0 45 1 0 1 1 0 8 0 amappl10 152 28 0 28 1 1 0 1 0 8 0 amappl9 144 167 0 167 1 1 0 1 0 8 0 amappl8 136 20 0 17 1 0 1 1 0 8 0 amappl7 128 212 0 199 1 0 1 1 0 8 0 amappl6 120 697 0 695 1 0 1 1 0 8 0 amappl5 112 340 0 328 1 0 1 1 0 8 0 amappl4 104 467 0 449 1 0 1 1 0 8 0 amappl3 96 11993 0 11873 5 1 4 4 0 8 0 amappl2 88 1375 0 1306 2 0 2 2 0 8 0 amappl1 80 17634 0 17068 16 2 14 15 0 8 0 amappl 88 17751 0 17562 6 1 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 5 0 4 1 0 1 1 0 8 0 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 7 0 7 2 2 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 41 0 7 1 0 1 1 0 8 0 uaddrrnd 24 2327 0 2295 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2327 0 2295 1 0 1 1 0 8 0 vmmpekpl 168 19588 0 19533 4 0 4 4 0 8 0 vmmpepl 168 147386 0 145237 140 36 104 106 0 357 0 vmsppl 440 2326 0 2295 6 2 4 5 0 8 0 rwobjpl 56 47404 0 40857 96 1 95 95 0 8 0 pdppl 4096 4661 0 4590 172 101 71 85 0 8 0 pvpl 32 33659 0 0 271 0 271 271 0 265 0 pmappl 248 2326 0 2295 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 532 0 164 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace memset() at memset+0x49 ffs_write(ffff80002a06a4e0) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806563acf8,ffff80002a06a598,3,fffffd807f7d32d8) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000ffffdbe8,fffffd806563acf8,fffffd807f7d32d8,ffff80002a06a668,ffff80002a06a640) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrstruct(ffff8000ffffdbe8,ffffffff830ece8b,ffff80002a06a820,20) at ktrstruct+0x19a sys/kern/kern_ktrace.c:308 sys_kevent(ffff8000ffffdbe8,ffff80002a06aab0,ffff80002a06aa00) at sys_kevent+0x80f sys/kern/kern_event.c:1184 syscall(ffff80002a06aab0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a06aab0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x715b52eb56e0, count: -8 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 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1219 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: 10 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 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1219 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -5