uvm_fault(0xffffffff8399da30, 0xffff80001d19250e, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x49: repe stosb %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *370614 14029 0 0 0x1 0 syz-executor memset() at memset+0x49 ffs_write(ffff80003c994ea0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd8067638498,ffff80003c994f50,3,fffffd8007ffd750) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80003a8e0d28,fffffd8067638498,fffffd8007ffd750,ffff80003c995020,ffff80003c995000) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsyscall(ffff80003a8e0d28,ca,30,ffff80003c9951a0) at ktrsyscall+0x332 ktrwrite sys/kern/kern_ktrace.c:-1 [inline] ktrsyscall(ffff80003a8e0d28,ca,30,ffff80003c9951a0) at ktrsyscall+0x332 sys/kern/kern_ktrace.c:183 syscall(ffff80003c9951a0) at syscall+0x2bc mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80003c9951a0) at syscall+0x2bc sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x766bc5a360a0, 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(0xffffffff8399da30, 0xffff80001d19250e, 0, 2) -> d ddb> trace memset() at memset+0x49 ffs_write(ffff80003c994ea0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd8067638498,ffff80003c994f50,3,fffffd8007ffd750) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80003a8e0d28,fffffd8067638498,fffffd8007ffd750,ffff80003c995020,ffff80003c995000) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsyscall(ffff80003a8e0d28,ca,30,ffff80003c9951a0) at ktrsyscall+0x332 ktrwrite sys/kern/kern_ktrace.c:-1 [inline] ktrsyscall(ffff80003a8e0d28,ca,30,ffff80003c9951a0) at ktrsyscall+0x332 sys/kern/kern_ktrace.c:183 syscall(ffff80003c9951a0) at syscall+0x2bc mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80003c9951a0) at syscall+0x2bc sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x766bc5a360a0, count: -7 ddb> show registers rdi 0xffff80001d19250e rsi 0 rbp 0xffff80003c994dc0 rbx 0x7050e acpi_pdirpa+0x5c37f rdx 0x2 rcx 0x2 rax 0 r8 0x3af0 __ALIGN_SIZE+0x2af0 r9 0xffff80003c994d20 r10 0xbdd117cdf4f84d8e r11 0xffff80001d19250e r12 0x50e r13 0x4000 __ALIGN_SIZE+0x3000 r14 0xfffffd8067638498 r15 0x1 rip 0xffffffff82c344c9 memset+0x49 cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80003c994bb8 ss 0x10 memset+0x49: repe stosb %es:(%rdi) ddb> show proc PROC (syz-executor) tid=370614 pid=14029 tcnt=4 stat=onproc flags process=0 proc=1 runpri=84, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003a8e0a90,0xffff80003a8e1a30 process=0xffff80003c90b1a0 user=0xffff80003c990000, vmspace=0xfffffd8069790468 estcpu=34, cpticks=21, pctcpu=0.11, user=19, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 6898 63396 55711 0 2 0 syz-executor 6898 362963 55711 0 3 0x4000080 fsleep syz-executor 6898 136576 55711 0 3 0x4000080 fsleep syz-executor 85342 269125 77325 0 2 0 syz-executor 85342 419994 77325 0 3 0x4000080 fsleep syz-executor 58117 248703 95400 0 2 0 syz-executor 58117 381672 95400 0 3 0x4000080 fsleep syz-executor 77457 319771 1267 0 2 0 syz-executor 77457 474408 1267 0 3 0x4000080 kqpoll syz-executor 81153 66040 99636 0 2 0 syz-executor 81153 17146 99636 0 3 0x4000080 fsleep syz-executor 99093 136718 14548 0 2 0 syz-executor 99093 315785 14548 0 3 0x4000080 sbwait syz-executor 99093 221837 14548 0 2 0x4000000 syz-executor *14029 370614 26058 0 7 0x1 syz-executor 14029 400562 26058 0 3 0x4000080 fifow syz-executor 14029 163137 26058 0 3 0x4000080 fsleep syz-executor 14029 260065 26058 0 3 0x4000080 fsleep syz-executor 69985 399875 0 0 3 0x14280 nfsidl nfsio 27497 258663 0 0 3 0x14280 nfsidl nfsio 37321 519613 0 0 3 0x14280 nfsidl nfsio 63551 327467 0 0 3 0x14280 nfsidl nfsio 31699 287769 0 0 3 0x14280 nfsidl nfsio 31945 141416 0 0 3 0x14280 nfsidl nfsio 50046 134726 0 0 3 0x14280 nfsidl nfsio 39106 17380 0 0 3 0x14280 nfsidl nfsio 99006 136265 0 0 3 0x14280 nfsidl nfsio 95306 300472 0 0 3 0x14280 nfsidl nfsio 43523 205267 0 0 3 0x14280 nfsidl nfsio 4442 467423 0 0 3 0x14280 nfsidl nfsio 32557 231661 0 0 3 0x14280 nfsidl nfsio 33857 243509 0 0 3 0x14280 nfsidl nfsio 43 233283 0 0 3 0x14280 nfsidl nfsio 80403 98930 0 0 3 0x14280 nfsidl nfsio 87523 400335 0 0 3 0x14280 nfsidl nfsio 26054 312950 0 0 3 0x14280 nfsidl nfsio 14008 133501 0 0 3 0x14280 nfsidl nfsio 57628 170728 0 0 3 0x14280 nfsidl nfsio 55711 390065 77203 0 3 0x82 nanoslp syz-executor 26058 350047 77203 0 2 0xc82 syz-executor 99636 366057 77203 0 2 0xc82 syz-executor 77325 455365 77203 0 3 0x82 nanoslp syz-executor 95400 170739 77203 0 2 0xc82 syz-executor 14548 265346 77203 0 3 0x82 nanoslp syz-executor 1267 198066 77203 0 3 0x82 nanoslp syz-executor 77203 222000 99644 0 3 0x82 wait syz-executor 99644 325289 44682 0 3 0x10008a sigsusp ksh 44682 93515 72846 0 3 0x98 kqread sshd-session 72846 176935 10288 0 3 0x92 kqread sshd-session 12945 91456 1 0 3 0x100083 ttyin getty 10288 389514 1 0 3 0x88 kqread sshd 52354 445182 56338 73 3 0x1100090 kqread syslogd 56338 422839 1 0 3 0x100082 sbwait syslogd 90659 140231 1 0 3 0x100080 kqread resolvd 94670 93750 37653 77 3 0x100092 kqread dhcpleased 66918 360156 37653 77 3 0x100092 kqread dhcpleased 37653 70479 1 0 3 0x80 kqread dhcpleased 18659 335994 0 0 3 0x14200 bored smr 38612 14177 0 0 2 0x14200 zerothread 30354 173546 0 0 3 0x14200 aiodoned aiodoned 42093 524264 0 0 3 0x14200 syncer update 88644 365370 0 0 3 0x14200 cleaner cleaner 20056 168269 0 0 3 0x14200 reaper reaper 16023 74626 0 0 3 0x14200 pgdaemon pagedaemon 86039 76728 0 0 3 0x14200 bored viomb 90167 98845 0 0 3 0x40014200 acpi0 acpi0 54650 73776 0 0 3 0x14200 bored softnet0 33564 220954 0 0 3 0x14200 bored systqmp 23473 202726 0 0 3 0x14200 bored systq 83115 372637 0 0 3 0x40014200 tmoslp softclock 89734 500681 0 0 3 0x40014200 idle0 1 27734 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 11037 12110K 13324K 166960K 12831 0 pcb 18 12K 12K 166960K 91 0 rtable 246 8K 9K 166960K 423 0 pf 34 13K 17K 166960K 88 0 ifaddr 43 7K 7K 166960K 69 0 ifgroup 50 2K 2K 166960K 97 0 sysctl 4 1K 9K 166960K 9 0 counters 33 17K 18K 166960K 56 0 ioctlops 0 0K 4K 166960K 324 0 iov 0 0K 24K 166960K 17 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1454 91K 92K 166960K 1803 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 15 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 81K 166960K 500 0 sigio 0 0K 0K 166960K 6 0 proc 60 59K 91K 166960K 547 0 subproc 72 4K 4K 166960K 82 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 35 0 in_multi 98 7K 7K 166960K 119 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 18 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 411 0 fusefs mount 1 32K 32K 166960K 1 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 219 158K 172K 166960K 6282 0 UVM aobj 8 2K 2K 166960K 9 0 pinsyscall 38 76K 88K 166960K 1626 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 23 0 NDP 11 0K 2K 166960K 46 0 temp 76 9116K 9180K 166960K 15215 0 kqueue 14 22K 29K 166960K 99 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 59 0 56 1 0 1 1 0 8 0 rtentry 136 131 0 21 4 0 4 4 0 8 0 unpcb 144 164 0 143 2 0 2 2 0 8 1 syncache 336 7 0 7 2 1 1 1 0 8 1 tcpcb 736 92 0 88 1 0 1 1 0 8 0 arp 96 22 0 5 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 0 1 0 1 1 0 8 0 inpcb 328 396 0 386 7 3 4 4 0 8 2 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 112 29 0 4 1 0 1 1 0 8 0 pkpcb 40 10 0 10 2 1 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 18 0 18 2 1 1 1 0 8 1 pppxif 1416 2 0 2 1 1 0 1 0 8 0 pfstscr 40 5 0 3 2 1 1 1 0 8 0 pfrktable 1344 3 0 1 1 0 1 1 0 8 0 pfsrclim 320 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 3 0 1 2 1 1 1 0 8 0 pftag 88 2 0 1 2 1 1 1 0 8 0 pfqueue 320 1 0 0 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 5 0 3 2 1 1 1 0 8 0 pfstate 384 3 0 2 2 1 1 1 0 8 0 pfrule 1360 67 0 66 2 1 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 516 0 58 29 0 29 29 0 8 0 art_table 40 517 0 58 5 0 5 5 0 8 0 art_node 32 131 0 34 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semapl 72 13 0 3 1 0 1 1 0 8 0 shmpl 112 6 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2201 0 743 92 0 92 92 0 8 0 ffsino 256 2202 0 744 92 0 92 92 0 8 0 nchpl 144 2895 0 1196 64 0 64 64 0 8 0 rtmask 32 2 0 2 2 1 1 1 0 8 1 vnodes 216 2609 0 0 145 0 145 145 0 8 0 namei 1024 9285 0 9285 2 1 1 2 0 8 1 pfiaddrpl 120 1 0 0 1 0 1 1 0 8 0 kstatmem 264 57 0 34 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 9681 0 9681 8 7 1 8 1 8 1 plimitpl 152 102 0 86 1 0 1 1 0 8 0 sigapl 424 813 0 751 8 0 8 8 0 8 0 knotepl 120 16727 0 16678 23 13 10 15 0 8 8 kqueuepl 184 165 0 154 3 2 1 3 0 8 0 pipepl 304 139 0 111 3 0 3 3 0 8 0 fdescpl 448 780 0 751 4 0 4 4 0 8 0 filepl 120 3827 0 3604 13 4 9 11 0 8 1 lockfpl 104 142 0 139 1 0 1 1 0 8 0 lockfspl 48 63 0 60 1 0 1 1 0 8 0 sessionpl 144 39 0 31 1 0 1 1 0 8 0 pgrppl 48 49 0 33 1 0 1 1 0 8 0 ucredpl 104 456 0 444 1 0 1 1 0 8 0 zombiepl 144 851 0 850 2 1 1 1 0 8 0 processpl 1152 813 0 751 5 0 5 5 0 8 0 procpl 664 1399 0 1326 8 0 8 8 0 8 1 sosppl 176 2 0 2 2 1 1 1 0 8 1 sockpl 552 645 0 611 8 2 6 6 0 8 3 mcl64k 65536 25 0 24 1 0 1 1 0 8 0 mcl16k 16384 6 0 6 2 1 1 1 0 8 1 mcl9k128 9344 2 0 2 2 1 1 1 0 8 1 mcl8k 8192 16 0 16 2 1 1 1 0 8 1 mcl4k 4096 3047 0 2999 14 7 7 14 0 8 0 mcl2k 2048 390 0 387 2 1 1 2 0 8 0 mtagpl 96 7 0 4 1 0 1 1 0 8 0 mbufpl 256 7898 0 7723 14 1 13 14 0 8 0 bufpl 272 3035 0 103 196 0 196 196 0 8 0 anonpl 24 116737 0 113598 53 21 32 44 0 186 8 amapchunkpl 152 19572 0 19121 35 8 27 27 0 158 7 amappl16 200 1720 0 1689 11 8 3 11 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 422 0 421 1 0 1 1 0 8 0 amappl13 176 117 0 107 1 0 1 1 0 8 0 amappl12 168 1021 0 993 2 0 2 2 0 8 0 amappl11 160 17 0 17 1 1 0 1 0 8 0 amappl10 152 56 0 46 1 0 1 1 0 8 0 amappl9 144 272 0 271 2 1 1 1 0 8 0 amappl8 136 98 0 97 1 0 1 1 0 8 0 amappl7 128 144 0 133 1 0 1 1 0 8 0 amappl6 120 159 0 157 1 0 1 1 0 8 0 amappl5 112 91 0 82 1 0 1 1 0 8 0 amappl4 104 269 0 253 1 0 1 1 0 8 0 amappl3 96 3821 0 3714 4 0 4 4 0 8 0 amappl2 88 528 0 473 2 0 2 2 0 8 0 amappl1 80 11567 0 11023 13 1 12 13 0 8 0 amappl 88 5514 0 5359 5 0 5 5 0 92 1 uvmvnodes 80 114 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 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 254 0 254 2 1 1 1 0 8 1 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 8 0 1 1 0 1 1 0 8 0 uaddrrnd 24 780 0 751 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 780 0 751 1 0 1 1 0 8 0 vmmpekpl 168 7956 0 7916 3 0 3 3 0 8 0 vmmpepl 168 56525 0 54752 87 5 82 86 0 357 1 vmsppl 368 779 0 751 4 1 3 4 0 8 0 rwobjpl 40 17904 0 16943 13 2 11 12 0 8 0 pdppl 4096 1566 0 1502 92 26 66 74 0 8 2 pvpl 32 333839 0 325518 121 26 95 102 0 265 18 pmappl 216 779 0 751 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 559 0 44 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80003c994ea0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd8067638498,ffff80003c994f50,3,fffffd8007ffd750) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80003a8e0d28,fffffd8067638498,fffffd8007ffd750,ffff80003c995020,ffff80003c995000) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsyscall(ffff80003a8e0d28,ca,30,ffff80003c9951a0) at ktrsyscall+0x332 ktrwrite sys/kern/kern_ktrace.c:-1 [inline] ktrsyscall(ffff80003a8e0d28,ca,30,ffff80003c9951a0) at ktrsyscall+0x332 sys/kern/kern_ktrace.c:183 syscall(ffff80003c9951a0) at syscall+0x2bc mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80003c9951a0) at syscall+0x2bc sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x766bc5a360a0, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80003c994ea0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd8067638498,ffff80003c994f50,3,fffffd8007ffd750) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80003a8e0d28,fffffd8067638498,fffffd8007ffd750,ffff80003c995020,ffff80003c995000) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsyscall(ffff80003a8e0d28,ca,30,ffff80003c9951a0) at ktrsyscall+0x332 ktrwrite sys/kern/kern_ktrace.c:-1 [inline] ktrsyscall(ffff80003a8e0d28,ca,30,ffff80003c9951a0) at ktrsyscall+0x332 sys/kern/kern_ktrace.c:183 syscall(ffff80003c9951a0) at syscall+0x2bc mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80003c9951a0) at syscall+0x2bc sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x766bc5a360a0, count: -7