uvm_fault(0xffffffff836190a8, 0xffff800015e25176, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x49: repe stosb %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND 19732 38182 0 0 0 1 syz-executor *208306 33116 73 0x1100010 0x1 0K syslogd memset() at memset+0x49 ffs_write(ffff80002a069c50) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd80768270f8,ffff80002a069d08,3,fffffd807f7d3340) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000ffffd6d8,fffffd80768270f8,fffffd807f7d3340,ffff80002a069dd0,ffff80002a069db0) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrsyscall(ffff8000ffffd6d8,48,30,ffff80002a069f60) at ktrsyscall+0x31d sys/kern/kern_ktrace.c:182 syscall(ffff80002a069f60) at syscall+0x2eb mi_syscall sys/sys/syscall_mi.h:157 [inline] syscall(ffff80002a069f60) at syscall+0x2eb sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7515e9d0cc90, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: uvm_fault(0xffffffff836190a8, 0xffff800015e25176, 0, 2) -> d ddb{0}> trace memset() at memset+0x49 ffs_write(ffff80002a069c50) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd80768270f8,ffff80002a069d08,3,fffffd807f7d3340) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000ffffd6d8,fffffd80768270f8,fffffd807f7d3340,ffff80002a069dd0,ffff80002a069db0) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrsyscall(ffff8000ffffd6d8,48,30,ffff80002a069f60) at ktrsyscall+0x31d sys/kern/kern_ktrace.c:182 syscall(ffff80002a069f60) at syscall+0x2eb mi_syscall sys/sys/syscall_mi.h:157 [inline] syscall(ffff80002a069f60) at syscall+0x2eb sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7515e9d0cc90, count: -7 ddb{0}> show registers rdi 0xffff800015e25176 rsi 0 rbp 0xffff80002a069b70 rbx 0xbf176 acpi_pdirpa+0xaafe7 rdx 0x2 rcx 0x2 rax 0 r8 0xe88 r9 0xffff80002a069ad0 r10 0x3cd80410b0f53297 r11 0xffff800015e25176 r12 0x4000 __ALIGN_SIZE+0x3000 r13 0x3176 __ALIGN_SIZE+0x2176 r14 0xfffffd80768270f8 r15 0x1 rip 0xffffffff81b179c9 memset+0x49 cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80002a069968 ss 0x10 memset+0x49: repe stosb %es:(%rdi) ddb{0}> show proc PROC (syslogd) tid=208306 pid=33116 tcnt=1 stat=onproc flags process=1100010 proc=1 runpri=53, usrpri=54, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffffccb8,0xffff8000ffffcf50 process=0xffff8000ffff8da8 user=0xffff80002a065000, vmspace=0xfffffd806ec7a378 estcpu=4, cpticks=1, pctcpu=4.46, user=7, sys=2448, intr=401 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 73955 395719 11819 0 2 0 syz-executor 73955 100937 11819 0 2 0x4000000 syz-executor 66085 348217 51668 0 2 0 syz-executor 38182 19732 29635 0 7 0 syz-executor 38182 233880 29635 0 2 0x4000000 syz-executor 38182 147627 29635 0 3 0x4000080 fsleep syz-executor 55420 63586 82604 0 2 0 syz-executor 55420 512973 82604 0 3 0x4000080 netacc syz-executor 42132 465130 46473 0 2 0x480 syz-executor 42132 518466 46473 0 3 0x4000080 kqsel syz-executor 42132 329891 46473 0 3 0x4000080 fsleep syz-executor 44879 347036 97805 0 2 0 syz-executor 44879 28427 97805 0 3 0x4000080 fsleep syz-executor 51668 466422 49971 0 2 0x482 syz-executor 29635 503984 49971 0 2 0x482 syz-executor 97805 204228 49971 0 2 0x482 syz-executor 46473 143095 49971 0 2 0x482 syz-executor 11819 385367 49971 0 2 0x482 syz-executor 82604 244709 49971 0 2 0x2 syz-executor 39533 125212 0 0 3 0x14280 nfsidl nfsio 99405 411999 0 0 3 0x14280 nfsidl nfsio 53402 440108 0 0 3 0x14280 nfsidl nfsio 81357 427345 0 0 3 0x14280 nfsidl nfsio 51141 99838 0 0 3 0x14280 nfsidl nfsio 65314 190948 0 0 3 0x14280 nfsidl nfsio 20937 508439 0 0 3 0x14280 nfsidl nfsio 96932 366776 0 0 3 0x14280 nfsidl nfsio 24358 194698 0 0 3 0x14280 nfsidl nfsio 66907 185910 0 0 3 0x14280 nfsidl nfsio 91888 199175 0 0 3 0x14280 nfsidl nfsio 22836 462683 0 0 3 0x14280 nfsidl nfsio 52488 288452 0 0 3 0x14280 nfsidl nfsio 97568 329861 0 0 3 0x14280 nfsidl nfsio 49097 482906 0 0 3 0x14280 nfsidl nfsio 35787 410708 0 0 3 0x14280 nfsidl nfsio 74806 150064 0 0 3 0x14280 nfsidl nfsio 86075 432085 0 0 3 0x14280 nfsidl nfsio 4845 370904 0 0 3 0x14280 nfsidl nfsio 13127 467684 0 0 3 0x14280 nfsidl nfsio 61150 311193 0 0 3 0x14200 bored sosplice 49971 160194 44798 0 2 0x3 syz-executor 44798 503874 69479 0 3 0x10008a sigsusp ksh 69479 432448 40179 0 3 0x98 kqread sshd-session 40179 356078 20410 0 3 0x92 kqread sshd-session 18120 447896 1 0 3 0x100083 ttyin getty 20410 49344 1 0 3 0x88 kqread sshd 46618 383612 88794 74 3 0x1100092 bpf pflogd 88794 120825 1 0 3 0x80 sbwait pflogd *33116 208306 49655 73 7 0x1100011 syslogd 49655 507165 1 0 3 0x100082 sbwait syslogd 29391 485445 1 0 3 0x100080 kqread resolvd 3889 108295 38850 77 3 0x100092 kqread dhcpleased 89169 226181 38850 77 3 0x100092 kqread dhcpleased 38850 60707 1 0 3 0x80 kqread dhcpleased 79388 208182 0 0 3 0x14200 bored smr 95059 133139 0 0 2 0x14200 zerothread 197 170622 0 0 3 0x14200 aiodoned aiodoned 26723 200649 0 0 3 0x14200 syncer update 5880 324469 0 0 3 0x14200 cleaner cleaner 9856 94241 0 0 3 0x14200 reaper reaper 82970 403385 0 0 3 0x14200 pgdaemon pagedaemon 7460 4595 0 0 3 0x14200 bored viomb 34785 475067 0 0 3 0x40014200 acpi0 acpi0 88721 137651 0 0 3 0x40014200 idle1 28157 421875 0 0 3 0x14200 bored softnet3 73311 61712 0 0 3 0x14200 bored softnet2 51026 194578 0 0 3 0x14200 bored softnet1 65867 295461 0 0 3 0x14200 bored softnet0 24043 158357 0 0 2 0x14200 systqmp 66403 333883 0 0 3 0x14200 bored systq 16650 440058 0 0 2 0x14200 softclockmp 60113 328678 0 0 3 0x40014200 tmoslp softclock 38606 164407 0 0 3 0x40014200 idle0 1 86634 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 38182 (syz-executor) thread 0xffff8000354471f8 (233880) exclusive rwlock futex r = 0 (0xffffffff8344d620) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 sys_futex+0x69 sys/kern/sys_futex.c:98 #2 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #2 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #3 Xsyscall+0x128 Process 33116 (syslogd) thread 0xffff8000ffffd6d8 (208306) exclusive rrwlock inode r = 0 (0xfffffd806c6e2c58) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #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 ktrsyscall+0x31d sys/kern/kern_ktrace.c:182 #8 syscall+0x2eb mi_syscall sys/sys/syscall_mi.h:157 [inline] #8 syscall+0x2eb sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8362f4e0) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 __mp_acquire_count+0x58 #2 mi_switch+0x658 sys/kern/sched_bsd.c:460 #3 yield+0x6a sys/kern/sched_bsd.c:320 #4 malloc+0xe5 sys/kern/kern_malloc.c:170 #5 ktrsyscall+0x17f sys/kern/kern_ktrace.c:174 #6 syscall+0x2eb mi_syscall sys/sys/syscall_mi.h:157 [inline] #6 syscall+0x2eb sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10206 10222K 10424K 166960K 12103 0 pcb 17 12K 12K 166960K 92 0 rtable 213 6K 6K 166960K 1480 0 pf 34 17K 19K 166960K 148 0 ifaddr 42 7K 7K 166960K 206 0 ifgroup 55 2K 2K 166960K 234 0 sysctl 2 0K 0K 166960K 2 0 counters 64 36K 36K 166960K 160 0 ioctlops 0 0K 4K 166960K 1557 0 iov 0 0K 24K 166960K 34 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1393 88K 88K 166960K 2190 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 8 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 18 0 dirhash 12 2K 3K 166960K 24 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 16 57K 97K 166960K 1097 0 sigio 0 0K 0K 166960K 17 0 proc 72 91K 128K 166960K 1586 0 subproc 104 6K 6K 166960K 572 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 84 0 in_multi 96 7K 7K 166960K 511 0 ether_multi 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 967 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 225 72K 91K 166960K 9552 0 UVM aobj 4 2K 2K 166960K 5 0 pinsyscall 41 82K 106K 166960K 3102 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 34 0 NDP 14 0K 2K 166960K 148 0 temp 47 6816K 6943K 166960K 38736 0 kqueue 14 22K 30K 166960K 91 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 2 1 1 2 0 8 0 rtentry 112 522 0 424 4 1 3 4 0 8 0 unpcb 144 414 0 396 4 3 1 4 0 8 0 syncache 336 3 0 3 2 2 0 1 0 8 0 tcpcb 808 144 0 137 5 4 1 5 0 8 0 arp 120 93 0 75 1 0 1 1 0 8 0 inpcb 336 629 0 616 9 7 2 5 0 8 0 nd6 136 137 0 113 1 0 1 1 0 8 0 pkpcb 40 4 0 4 3 3 0 1 0 8 0 kcovpl 48 44 0 36 1 0 1 1 0 8 0 ppxss 1168 8 0 8 4 4 0 1 0 8 0 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 2 0 2 1 1 0 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 3 0 0 1 0 1 1 0 8 0 pfstitem 24 98 0 74 1 0 1 1 0 8 0 pfstkey 128 98 0 74 2 0 2 2 0 8 0 pfstate 376 98 0 74 4 0 4 4 0 8 0 pfrule 1344 27 0 20 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2098 0 1679 35 8 27 29 0 8 0 art_table 32 2099 0 1679 4 0 4 4 0 8 0 art_node 16 520 0 433 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 4 1 0 1 1 0 8 0 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 2 0 1 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2406 0 835 100 1 99 99 0 8 0 ffsino 272 2406 0 835 105 0 105 105 0 8 0 nchpl 144 3222 0 1498 65 0 65 65 0 8 0 uvmvnodes 80 3179 0 0 65 0 65 65 0 8 0 vnodes 216 3179 0 0 177 0 177 177 0 8 0 namei 1024 13900 0 13900 4 3 1 2 0 8 1 percpumem 16 94 0 48 1 0 1 1 0 8 0 kstatmem 264 120 0 96 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 20948 0 20948 13 9 4 8 1 8 4 plimitpl 152 160 0 143 1 0 1 1 0 8 0 sigapl 424 1344 0 1275 10 1 9 9 0 8 0 futexpl 64 6880 0 6876 5 4 1 1 0 8 0 knotepl 120 568 0 0 16 0 16 16 0 8 0 kqueuepl 216 288 0 277 5 4 1 5 0 8 0 pipepl 320 294 0 267 6 3 3 6 0 8 0 fdescpl 496 1305 0 1275 9 4 5 6 0 8 0 filepl 152 5788 0 5537 21 10 11 14 0 8 0 lockfpl 104 235 0 232 1 0 1 1 0 8 0 lockfspl 48 107 0 104 1 0 1 1 0 8 0 sessionpl 144 58 0 49 1 0 1 1 0 8 0 pgrppl 48 107 0 90 1 0 1 1 0 8 0 ucredpl 104 851 0 838 1 0 1 1 0 8 0 zombiepl 144 1335 0 1333 2 1 1 1 0 8 0 processpl 1160 1344 0 1275 7 1 6 6 0 8 0 procpl 648 2067 0 1990 11 3 8 8 0 8 0 sosppl 168 1 0 1 1 1 0 1 0 8 0 sockpl 664 1220 0 1185 19 15 4 10 0 8 0 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 235 0 0 30 0 30 30 0 8 0 mtagpl 96 7 0 0 1 0 1 1 0 8 0 mbufpl 256 429 0 0 26 0 26 26 0 8 0 bufpl 280 7733 0 1587 442 0 442 442 0 8 0 anonpl 24 258931 0 255392 79 27 52 52 0 185 10 amapchunkpl 152 30857 0 30399 62 28 34 38 0 158 13 amappl16 200 5336 0 5319 45 31 14 14 0 8 9 amappl15 192 11 0 11 1 1 0 1 0 8 0 amappl14 184 231 0 219 1 0 1 1 0 8 0 amappl13 176 14 0 14 1 1 0 1 0 8 0 amappl12 168 2520 0 2490 4 2 2 3 0 8 0 amappl11 160 58 0 43 1 0 1 1 0 8 0 amappl10 152 41 0 41 1 1 0 1 0 8 0 amappl9 144 169 0 169 1 1 0 1 0 8 0 amappl8 136 31 0 28 1 0 1 1 0 8 0 amappl7 128 182 0 169 1 0 1 1 0 8 0 amappl6 120 519 0 518 1 0 1 1 0 8 0 amappl5 112 295 0 283 1 0 1 1 0 8 0 amappl4 104 412 0 393 1 0 1 1 0 8 0 amappl3 96 5809 0 5705 5 1 4 4 0 8 0 amappl2 88 1173 0 1103 2 0 2 2 0 8 0 amappl1 80 12524 0 11965 14 1 13 14 0 8 0 amappl 88 8886 0 8725 6 1 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 8 0 8 2 2 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 4 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1305 0 1275 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1305 0 1275 1 0 1 1 0 8 0 vmmpekpl 168 11834 0 11778 3 0 3 3 0 8 0 vmmpepl 168 87345 0 85552 121 28 93 94 0 357 2 vmsppl 440 1304 0 1275 6 2 4 5 0 8 0 rwobjpl 56 31032 0 26948 64 2 62 62 0 8 0 pdppl 4096 2617 0 2550 157 86 71 87 0 8 4 pvpl 32 28378 0 0 229 0 229 229 0 265 0 pmappl 248 1304 0 1275 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 488 0 117 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace memset() at memset+0x49 ffs_write(ffff80002a069c50) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd80768270f8,ffff80002a069d08,3,fffffd807f7d3340) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000ffffd6d8,fffffd80768270f8,fffffd807f7d3340,ffff80002a069dd0,ffff80002a069db0) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrsyscall(ffff8000ffffd6d8,48,30,ffff80002a069f60) at ktrsyscall+0x31d sys/kern/kern_ktrace.c:182 syscall(ffff80002a069f60) at syscall+0x2eb mi_syscall sys/sys/syscall_mi.h:157 [inline] syscall(ffff80002a069f60) at syscall+0x2eb sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7515e9d0cc90, count: -7 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(ffffffff8362f2d8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8362f2d8) at __mp_lock+0x192 sys/kern/kern_lock.c:144 uvm_fault(fffffd806c80aa68,960069db000,0,1) at uvm_fault+0x1ed sys/uvm/uvm_fault.c:622 upageflttrap(ffff80003707aff0,960069db000) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 usertrap(ffff80003707aff0) at usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x6fef64d0aac0, 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(ffffffff8362f2d8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8362f2d8) at __mp_lock+0x192 sys/kern/kern_lock.c:144 uvm_fault(fffffd806c80aa68,960069db000,0,1) at uvm_fault+0x1ed sys/uvm/uvm_fault.c:622 upageflttrap(ffff80003707aff0,960069db000) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 usertrap(ffff80003707aff0) at usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x6fef64d0aac0, count: -8