uvm_fault(0xffffffff83a95b90, 0xffff8000256848e9, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x49: repe stosb %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND memset() at memset+0x49 ffs_write(ffff80003b4ecf80) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff9006c742bf0,ffff80003b4ed018,23,fffff90007ffd3a8) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_rdwr(1,fffff9006c742bf0,ffff80003b4ed150,40,0,1,8e0c52b7d3bfafc6,0,1008,40) at vn_rdwr+0x12d sys/kern/vfs_vnops.c:330 acct_process(ffff8000300b1258) at acct_process+0x7a2 sys/kern/kern_acct.c:246 exit1(ffff8000300b1258,0,0,1) at exit1+0x5e3 sys/kern/kern_exit.c:228 sys_exit(ffff8000300b1258,ffff80003b4ed380,ffff80003b4ed2d0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003b4ed380) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003b4ed380) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70215b403fe0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: uvm_fault(0xffffffff83a95b90, 0xffff8000256848e9, 0, 2) -> d ddb> show kasan No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80003b4ecf80) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff9006c742bf0,ffff80003b4ed018,23,fffff90007ffd3a8) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_rdwr(1,fffff9006c742bf0,ffff80003b4ed150,40,0,1,8e0c52b7d3bfafc6,0,1008,40) at vn_rdwr+0x12d sys/kern/vfs_vnops.c:330 acct_process(ffff8000300b1258) at acct_process+0x7a2 sys/kern/kern_acct.c:246 exit1(ffff8000300b1258,0,0,1) at exit1+0x5e3 sys/kern/kern_exit.c:228 sys_exit(ffff8000300b1258,ffff80003b4ed380,ffff80003b4ed2d0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003b4ed380) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003b4ed380) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70215b403fe0, count: -9 ddb> show registers rdi 0xffff8000256848e9 rsi 0 rbp 0xffff80003b4ecea0 rbx 0xba8e9 acpi_pdirpa+0xa675a rdx 0x7 rcx 0x7 rax 0 r8 0x1710 __ALIGN_SIZE+0x710 r9 0xffff80003b4ece00 r10 0xe741da33361c989a r11 0xffff8000256848e9 r12 0x28e9 __ALIGN_SIZE+0x18e9 r13 0x4000 __ALIGN_SIZE+0x3000 r14 0xfffff9006c742bf0 r15 0x1 rip 0xffffffff8298abb9 memset+0x49 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80003b4ecc98 ss 0 memset+0x49: repe stosb %es:(%rdi) ddb> show proc PROC (syz-executor) tid=336772 pid=65995 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=16, usrpri=50, slppri=16, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000300b1258 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a77d240,0xffffffff839a10a8 process=0xffff800045ff8498 user=0xffff80003b4e8000, vmspace=0xfffff9000c4d5018 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 96379 453039 58739 0 2 0 0 syz-executor 96379 60546 58739 0 2 0 0x4000000 syz-executor 1235 26931 92403 0 2 0 0 syz-executor 1235 435727 92403 0 3 0 0x4000080 fsleep syz-executor 3921 209238 22619 0 2 0 0 syz-executor 3921 513446 22619 0 3 0 0x4000080 fsleep syz-executor 3921 407349 22619 0 3 0 0x4000080 fsleep syz-executor 36961 87933 57882 0 2 0 0 syz-executor 36961 387578 57882 0 3 0 0x4000080 fsleep syz-executor 41870 250538 34002 0 2 0x2 0 syz-executor 7838 246723 0 0 3 0x14000 0x200 acct acct 70630 77884 34002 0 2 0x2 0xc80 syz-executor 58739 364231 34002 0 3 0x2 0x80 nanoslp syz-executor 75145 20161 34002 0 2 0x2 0xc80 syz-executor 82734 469646 34002 0 3 0x2 0x80 piperd syz-executor 92403 124076 34002 0 3 0x2 0x80 nanoslp syz-executor 22619 48506 34002 0 3 0x2 0x80 nanoslp syz-executor 57882 455826 34002 0 3 0x2 0x80 nanoslp syz-executor 34002 102269 41031 0 2 0x2 0 syz-executor 41031 149830 31865 0 3 0x100002 0x88 sigsusp ksh 31865 280553 34143 0 3 0x10 0x88 kqread sshd-session 34143 31494 52818 0 3 0x12 0x80 kqread sshd-session 91230 353746 1 0 3 0x100003 0x80 ttyin getty 52818 182416 1 0 3 0 0x88 kqread sshd 44991 457688 4840 73 3 0x1100010 0x80 kqread syslogd 4840 321401 1 0 3 0x100002 0x80 sbwait syslogd 17563 2941 1 0 3 0x100000 0x80 kqread resolvd 82011 486848 6336 77 3 0x100012 0x80 kqread dhcpleased 27619 299005 6336 77 3 0x100012 0x80 kqread dhcpleased 6336 320317 1 0 3 0 0x80 kqread dhcpleased 19845 270670 0 0 3 0x14000 0x200 bored smr 62949 367683 0 0 2 0x14000 0x200 zerothread 70927 513337 0 0 3 0x14000 0x200 aiodoned aiodoned 25829 302710 0 0 3 0x14000 0x200 syncer update 19734 155016 0 0 3 0x14000 0x200 cleaner cleaner 15462 409377 0 0 3 0x14000 0x200 reaper reaper 11846 87748 0 0 3 0x14000 0x200 pgdaemon pagedaemon 206 331600 0 0 3 0x14000 0x200 bored viomb 60849 42537 0 0 3 0x14000 0x40000200 acpi0 acpi0 82537 155421 0 0 3 0x14000 0x200 bored softnet0 99051 169060 0 0 3 0x14000 0x200 bored systqmp 28333 354249 0 0 3 0x14000 0x200 bored systq 82237 390920 0 0 3 0x14000 0x40000200 tmoslp softclock 92029 505225 0 0 3 0x14000 0x40000200 idle0 1 78399 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10010000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11039 12112K 12592K 166960K 13053 0 pcb 17 14K 14K 166960K 200 0 rtable 192 8K 10K 166960K 791 0 pf 36 14K 21K 166960K 134 0 ifaddr 33 5K 7K 166960K 111 0 ifgroup 46 2K 2K 166960K 134 0 sysctl 4 1K 9K 166960K 12 0 counters 32 17K 18K 166960K 58 0 ioctlops 0 0K 4K 166960K 265 0 iov 0 0K 12K 166960K 30 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1422 89K 89K 166960K 2251 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 12 0 VM map 2 1K 1K 166960K 2 0 sem 3 1K 1K 166960K 7 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 15 53K 85K 166960K 922 0 sigio 0 0K 0K 166960K 10 0 proc 60 59K 108K 166960K 899 0 subproc 72 4K 4K 166960K 190 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 50 0 in_multi 70 4K 6K 166960K 258 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 22 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 109 493K 493K 166960K 109 0 exec 0 0K 1K 166960K 569 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 205 152K 166K 166960K 8921 0 UVM aobj 18 3K 3K 166960K 22 0 pinsyscall 37 74K 94K 166960K 2338 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 28 0 NDP 10 0K 2K 166960K 76 0 temp 40 9111K 9175K 166960K 33554 0 kqueue 14 22K 28K 166960K 137 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 95 0 92 1 0 1 1 0 8 0 rtentry 136 253 0 174 4 0 4 4 0 8 0 unpcb 144 487 0 342 6 0 6 6 0 8 0 syncache 336 74 0 74 1 0 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 247 0 242 7 0 7 7 0 8 5 arp 96 42 0 28 1 0 1 1 0 8 0 ipq 40 4 0 0 1 0 1 1 0 8 0 ipqe 40 6 0 1 1 0 1 1 0 8 0 inpcb 328 801 0 791 7 0 7 7 0 8 5 ip6q 72 3 0 1 1 0 1 1 0 8 0 ip6af 40 4 0 2 1 0 1 1 0 8 0 nd6 112 68 0 52 1 0 1 1 0 8 0 pkpcb 40 5 0 5 1 0 1 1 0 8 1 kcovpl 48 21 0 13 1 0 1 1 0 8 0 ppxss 1072 9 0 9 1 0 1 1 0 8 1 pfstscr 40 139 0 135 2 0 2 2 0 8 0 pffrag 232 5 0 3 1 0 1 1 0 482 0 pffrnode 88 5 0 3 1 0 1 1 0 8 0 pffrent 40 13 2 11 1 0 1 1 0 8 0 pfrktable 1344 15 0 10 1 0 1 1 0 8 0 pfsrclim 320 1 0 1 1 0 1 1 0 8 1 pfanchor 1288 4 0 3 1 0 1 1 0 8 0 pftag 88 4 0 0 1 0 1 1 0 8 0 pfqueue 320 2 0 1 1 0 1 1 0 8 0 pfstitem 24 134 0 128 1 0 1 1 0 8 0 pfstkey 128 140 0 134 3 0 3 3 0 8 1 pfstate 384 71 0 68 7 0 7 7 0 8 5 pfrule 1360 11 0 8 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1125 0 790 32 0 32 32 0 8 7 art_table 40 1126 0 790 6 0 6 6 0 8 1 art_node 32 252 0 180 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 4 1 0 1 1 0 8 1 semapl 72 2 0 1 1 0 1 1 0 8 0 shmpl 112 19 0 4 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2784 0 1303 93 0 93 93 0 8 0 ffsino 256 2784 0 1303 93 0 93 93 0 8 0 nchpl 144 3863 0 2124 65 0 65 65 0 8 0 vnodes 216 3470 0 0 193 0 193 193 0 8 0 namei 1024 13992 0 13992 2 0 2 2 0 8 2 pfiaddrpl 120 4 0 2 1 0 1 1 0 8 0 kstatmem 264 73 0 52 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 19675 0 19675 8 0 8 8 1 8 8 plimitpl 152 203 0 186 1 0 1 1 0 8 0 sigapl 424 1213 0 1171 7 0 7 7 0 8 1 knotepl 120 25323 0 25272 20 8 12 16 0 8 8 kqueuepl 184 159 0 149 1 0 1 1 0 8 0 pipepl 304 210 0 183 3 0 3 3 0 8 0 fdescpl 448 1178 0 1151 4 0 4 4 0 8 0 filepl 120 6368 0 5965 13 0 13 13 0 8 0 lockfpl 104 202 0 200 1 0 1 1 0 8 0 lockfspl 48 79 0 77 1 0 1 1 0 8 0 sessionpl 144 75 0 67 1 0 1 1 0 8 0 pgrppl 48 105 0 89 1 0 1 1 0 8 0 ucredpl 104 1149 0 1138 1 0 1 1 0 8 0 zombiepl 144 1173 0 1171 1 0 1 1 0 8 0 processpl 1152 1213 0 1171 5 0 5 5 0 8 1 procpl 664 2115 0 2068 7 0 7 7 0 8 2 sockpl 552 1403 0 1245 12 0 12 12 0 8 0 mcl64k 65536 101 0 100 1 0 1 1 0 8 0 mcl16k 16384 3 0 3 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k128 9344 7 0 7 1 0 1 1 0 8 1 mcl8k 8192 14 0 13 1 0 1 1 0 8 0 mcl4k 4096 3359 0 3300 13 0 13 13 0 8 5 mcl2k2 2112 2 0 2 1 0 1 1 0 8 1 mcl2k 2048 782 0 781 3 0 3 3 0 8 2 mextrefs 64 363 0 363 1 0 1 1 0 8 1 mtagpl 96 7 0 6 1 0 1 1 0 8 0 mbufpl 256 12094 0 11938 20 0 20 20 0 8 6 bufpl 272 7481 0 1265 415 0 415 415 0 8 0 anonpl 24 179221 0 176113 67 0 67 67 0 187 29 amapchunkpl 152 29587 0 28968 32 0 32 32 0 158 8 amappl16 200 3083 0 3057 27 11 16 27 0 8 8 amappl15 192 7 0 6 1 0 1 1 0 8 0 amappl14 184 554 0 553 1 0 1 1 0 8 0 amappl13 176 141 0 131 1 0 1 1 0 8 0 amappl12 168 1464 0 1437 2 0 2 2 0 8 0 amappl11 160 6 0 6 1 0 1 1 0 8 1 amappl10 152 57 0 47 1 0 1 1 0 8 0 amappl9 144 295 0 295 1 0 1 1 0 8 1 amappl8 136 143 0 142 1 0 1 1 0 8 0 amappl7 128 168 0 157 1 0 1 1 0 8 0 amappl6 120 272 0 270 1 0 1 1 0 8 0 amappl5 112 111 0 102 1 0 1 1 0 8 0 amappl4 104 301 0 283 1 0 1 1 0 8 0 amappl3 96 5879 0 5779 4 0 4 4 0 8 0 amappl2 88 629 0 571 2 0 2 2 0 8 0 amappl1 80 14185 0 13640 14 0 14 14 0 8 2 amappl 88 7922 0 7778 5 0 5 5 0 92 0 uvmvnodes 80 120 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 21 0 20 1 0 1 1 0 8 0 aobjpl 72 21 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1178 0 1150 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1178 0 1150 1 0 1 1 0 8 0 vmmpekpl 168 10296 0 10261 3 0 3 3 0 8 0 vmmpepl 168 81654 0 79928 103 0 103 103 0 357 19 vmsppl 368 1177 0 1150 4 0 4 4 0 8 1 rwobjpl 40 23880 0 22908 15 0 15 15 0 8 1 pdppl 4096 2362 0 2300 106 38 68 76 0 8 6 pvpl 32 505160 0 496697 146 0 146 146 0 265 52 pmappl 216 1177 0 1150 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 804 0 38 22 0 22 22 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80003b4ecf80) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff9006c742bf0,ffff80003b4ed018,23,fffff90007ffd3a8) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_rdwr(1,fffff9006c742bf0,ffff80003b4ed150,40,0,1,8e0c52b7d3bfafc6,0,1008,40) at vn_rdwr+0x12d sys/kern/vfs_vnops.c:330 acct_process(ffff8000300b1258) at acct_process+0x7a2 sys/kern/kern_acct.c:246 exit1(ffff8000300b1258,0,0,1) at exit1+0x5e3 sys/kern/kern_exit.c:228 sys_exit(ffff8000300b1258,ffff80003b4ed380,ffff80003b4ed2d0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003b4ed380) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003b4ed380) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70215b403fe0, count: -9 ddb> machine ddbcpu 1 No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80003b4ecf80) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff9006c742bf0,ffff80003b4ed018,23,fffff90007ffd3a8) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_rdwr(1,fffff9006c742bf0,ffff80003b4ed150,40,0,1,8e0c52b7d3bfafc6,0,1008,40) at vn_rdwr+0x12d sys/kern/vfs_vnops.c:330 acct_process(ffff8000300b1258) at acct_process+0x7a2 sys/kern/kern_acct.c:246 exit1(ffff8000300b1258,0,0,1) at exit1+0x5e3 sys/kern/kern_exit.c:228 sys_exit(ffff8000300b1258,ffff80003b4ed380,ffff80003b4ed2d0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003b4ed380) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003b4ed380) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70215b403fe0, count: -9