login: uvm_fault(0xffffffff839feec0, 0xffff800029644597, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x49: repe stosb %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *111873 13463 0 0 0x4000001 0 syz-executor memset() at memset+0x49 ffs_write(ffff80002a7e0e00) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff280705ce388,ffff80002a7e0eb0,3,fffff28007ffd4e0) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002f0b07e0,fffff280705ce388,fffff28007ffd4e0,ffff80002a7e0f80,ffff80002a7e0f60) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsysret(ffff80002f0b07e0,36,0,ffff80002a7e1040) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002f0b07e0,36,0,ffff80002a7e1040) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80002a7e10f0) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a7e10f0) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x42dd4bf4e00, 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(0xffffffff839feec0, 0xffff800029644597, 0, 2) -> d ddb> show kasan No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80002a7e0e00) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff280705ce388,ffff80002a7e0eb0,3,fffff28007ffd4e0) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002f0b07e0,fffff280705ce388,fffff28007ffd4e0,ffff80002a7e0f80,ffff80002a7e0f60) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsysret(ffff80002f0b07e0,36,0,ffff80002a7e1040) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002f0b07e0,36,0,ffff80002a7e1040) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80002a7e10f0) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a7e10f0) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x42dd4bf4e00, count: -7 ddb> show registers rdi 0xffff800029644597 rsi 0 rbp 0xffff80002a7e0d20 rbx 0x32597 acpi_pdirpa+0x1e408 rdx 0x1 rcx 0x1 rax 0 r8 0x1a68 __ALIGN_SIZE+0xa68 r9 0xffff80002a7e0c80 r10 0x7c5c2b8b579a8872 r11 0xffff800029644597 r12 0x2597 __ALIGN_SIZE+0x1597 r13 0x4000 __ALIGN_SIZE+0x3000 r14 0xfffff280705ce388 r15 0x1 rip 0xffffffff8215bb19 memset+0x49 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002a7e0b18 ss 0x10 memset+0x49: repe stosb %es:(%rdi) ddb> show proc PROC (syz-executor) tid=111873 pid=13463 tcnt=2 stat=onproc flags process=0 proc=4000001 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002f0b02b0,0xffff80003c8fad28 process=0xffff800045ff8498 user=0xffff80002a7dc000, vmspace=0xfffff2806d1a5460 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 88989 275863 34920 0 3 0 0x80 nanoslp syz-executor 88989 37054 34920 0 3 0 0x4000080 netacc syz-executor 21819 40193 21514 0 2 0 0 syz-executor 21819 383567 21514 0 3 0 0x4000080 fsleep syz-executor 96596 437978 74806 0 2 0 0 syz-executor 96596 164316 74806 0 3 0 0x4000080 fsleep syz-executor 96596 372644 74806 0 3 0 0x4000080 pipewr syz-executor 69203 368991 26312 0 3 0 0x80 nanoslp syz-executor 69203 481039 26312 0 3 0 0x4000080 piperd syz-executor 69203 88644 26312 0 3 0 0x4000080 fsleep syz-executor 48614 408072 89676 0 3 0 0x80 nanoslp syz-executor 48614 16508 89676 0 3 0 0x4000080 piperd syz-executor 48614 434282 89676 0 3 0 0x4000080 fsleep syz-executor 13463 259738 26457 0 2 0 0 syz-executor *13463 111873 26457 0 7 0 0x4000001 syz-executor 72798 494025 80484 0 2 0 0 syz-executor 72798 521651 80484 0 3 0 0x4000080 fsleep syz-executor 72798 352088 80484 0 3 0 0x4000080 fsleep syz-executor 33754 490427 45238 0 3 0 0x80 nanoslp syz-executor 33754 318537 45238 0 3 0 0x4000080 sbwait syz-executor 33754 51457 45238 0 3 0 0x4000080 fsleep syz-executor 17865 85791 1 0 3 0x100003 0x80 ttyin getty 89676 348952 4620 0 3 0x2 0x80 nanoslp syz-executor 34920 220011 4620 0 3 0x2 0x80 nanoslp syz-executor 80484 201133 4620 0 3 0x2 0x80 nanoslp syz-executor 21514 490759 4620 0 3 0x2 0x80 nanoslp syz-executor 74806 91393 4620 0 3 0x2 0x80 nanoslp syz-executor 26312 267405 4620 0 3 0x2 0x80 nanoslp syz-executor 26457 33491 4620 0 3 0x2 0x80 nanoslp syz-executor 45238 332689 4620 0 3 0x2 0x80 nanoslp syz-executor 4620 13408 1 0 3 0x2 0x80 kqread syz-executor 70028 67548 1 73 3 0x1100010 0x80 kqread syslogd 56046 313673 0 0 3 0x14000 0x200 bored smr 95629 423780 0 0 2 0x14000 0x200 zerothread 19226 239854 0 0 3 0x14000 0x200 aiodoned aiodoned 85075 415873 0 0 3 0x14000 0x200 syncer update 34264 278355 0 0 3 0x14000 0x200 cleaner cleaner 81314 345056 0 0 3 0x14000 0x200 reaper reaper 60624 9316 0 0 3 0x14000 0x200 pgdaemon pagedaemon 91417 508848 0 0 3 0x14000 0x200 bored viomb 29779 85044 0 0 3 0x14000 0x40000200 acpi0 acpi0 6215 40302 0 0 3 0x14000 0x200 bored softnet0 49694 284550 0 0 3 0x14000 0x200 smrbar systqmp 29395 98176 0 0 3 0x14000 0x200 bored systq 35080 369468 0 0 3 0x14000 0x40000200 tmoslp softclock 31102 173367 0 0 3 0x14000 0x40000200 idle0 1 159562 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11032 12163K 12362K 166960K 12727 0 pcb 17 13K 14K 166960K 255 0 rtable 209 6K 7K 166960K 547 0 pf 29 12K 73K 166960K 55 0 ifaddr 39 7K 8K 166960K 60 0 ifgroup 46 2K 2K 166960K 75 0 sysctl 4 1K 9K 166960K 11 0 counters 32 17K 18K 166960K 45 0 ioctlops 0 0K 4K 166960K 241 0 iov 2 2K 16K 166960K 57 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1293 81K 82K 166960K 1837 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 20 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 18 65K 97K 166960K 864 0 sigio 0 0K 0K 166960K 4 0 proc 20 25K 116K 166960K 575 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 47 0 in_multi 89 6K 6K 166960K 122 0 ether_multi 1 0K 0K 166960K 4 0 mrt 0 0K 0K 166960K 25 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 421 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 156 83K 165K 166960K 8803 0 UVM aobj 30 4K 4K 166960K 30 0 pinsyscall 22 44K 95K 166960K 1997 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 55 0 NDP 10 0K 2K 166960K 37 0 temp 39 9110K 9175K 166960K 29016 0 kqueue 4 6K 26K 166960K 151 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 136 0 134 1 0 1 1 0 8 0 rtentry 136 141 0 50 5 0 5 5 0 8 0 unpcb 144 581 0 574 6 0 6 6 0 8 5 syncache 336 10 0 10 1 0 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 108 0 104 2 0 2 2 0 8 1 arp 96 21 0 4 1 0 1 1 0 8 0 ipq 40 4 0 0 1 0 1 1 0 8 0 ipqe 40 5 0 1 1 0 1 1 0 8 0 inpcb 328 601 0 596 4 0 4 4 0 8 2 nd6 112 37 0 15 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 mppekey 1024 2 0 2 1 0 1 1 0 8 1 ppxss 1072 8 0 8 1 0 1 1 0 8 1 pppxif 1416 1 0 1 1 0 1 1 0 8 1 pfstscr 40 70 0 2 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 36 0 31 1 0 1 1 0 8 0 pfstkey 128 37 0 33 1 0 1 1 0 8 0 pfstate 384 35 0 1 4 0 4 4 0 8 0 pfrule 1360 2 0 2 1 0 1 1 0 8 1 rttmr 136 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 771 0 315 43 6 37 43 0 8 8 art_table 40 772 0 315 7 0 7 7 0 8 1 art_node 32 141 0 59 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 3 1 0 1 1 0 8 1 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 18 0 8 1 0 1 1 0 8 0 shmpl 112 27 0 0 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2766 0 1309 92 0 92 92 0 8 0 ffsino 256 2766 0 1309 92 0 92 92 0 8 0 nchpl 144 3921 0 2221 64 0 64 64 0 8 0 rtmask 32 2 0 2 1 0 1 1 0 8 1 vnodes 216 3165 0 0 176 0 176 176 0 8 0 namei 1024 11872 0 11872 2 0 2 2 0 8 2 kstatmem 264 37 0 16 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 0 1 1 0 8 1 scxspl 216 17782 0 17782 8 0 8 8 1 8 8 plimitpl 152 185 0 174 1 0 1 1 0 8 0 sigapl 424 1159 0 1125 6 0 6 6 0 8 1 knotepl 120 27965 0 27941 10 0 10 10 0 8 8 kqueuepl 184 143 0 140 1 0 1 1 0 8 0 pipepl 304 254 0 224 7 0 7 7 0 8 4 fdescpl 448 1146 0 1125 5 0 5 5 0 8 1 filepl 120 5678 0 5488 15 0 15 15 0 8 7 lockfpl 104 157 0 156 1 0 1 1 0 8 0 lockfspl 48 70 0 69 1 0 1 1 0 8 0 sessionpl 144 71 0 67 1 0 1 1 0 8 0 pgrppl 48 84 0 72 1 0 1 1 0 8 0 ucredpl 104 881 0 876 1 0 1 1 0 8 0 zombiepl 144 1125 0 1125 1 0 1 1 0 8 1 processpl 1152 1159 0 1125 4 0 4 4 0 8 0 procpl 664 2113 0 2066 6 0 6 6 0 8 1 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 552 1338 0 1324 12 2 10 12 0 8 8 mcl64k 65536 72 0 72 1 0 1 1 0 8 1 mcl16k 16384 24 0 24 1 0 1 1 0 8 1 mcl12k 12288 7 0 7 1 0 1 1 0 8 1 mcl9k128 9344 4 0 4 1 0 1 1 0 8 1 mcl8k 8192 17 0 17 1 0 1 1 0 8 1 mcl4k 4096 3660 0 3605 15 0 15 15 0 8 7 mcl2k 2048 618 0 607 2 0 2 2 0 8 0 mextrefs 64 460 0 451 1 0 1 1 0 8 0 mtagpl 96 5 0 5 1 0 1 1 0 8 1 mbufpl 256 11033 0 10850 18 0 18 18 0 8 4 bufpl 272 7574 0 1358 415 0 415 415 0 8 0 anonpl 24 159575 0 157513 45 0 45 45 0 187 19 amapchunkpl 152 28730 0 28325 27 0 27 27 0 158 8 amappl16 200 2909 0 2881 15 3 12 15 0 8 7 amappl15 192 3 0 3 1 0 1 1 0 8 1 amappl14 184 438 0 438 1 0 1 1 0 8 1 amappl13 176 117 0 115 1 0 1 1 0 8 0 amappl12 168 1388 0 1368 2 0 2 2 0 8 0 amappl11 160 7 0 5 1 0 1 1 0 8 0 amappl10 152 57 0 55 1 0 1 1 0 8 0 amappl9 144 271 0 271 1 0 1 1 0 8 1 amappl8 136 96 0 96 1 0 1 1 0 8 1 amappl7 128 172 0 167 1 0 1 1 0 8 0 amappl6 120 159 0 158 1 0 1 1 0 8 0 amappl5 112 89 0 87 1 0 1 1 0 8 0 amappl4 104 269 0 262 1 0 1 1 0 8 0 amappl3 96 6032 0 5943 4 0 4 4 0 8 0 amappl2 88 543 0 525 2 0 2 2 0 8 0 amappl1 80 13228 0 13070 13 0 13 13 0 8 2 amappl 88 8018 0 7882 5 0 5 5 0 92 1 uvmvnodes 80 111 0 0 3 0 3 3 0 8 0 dma32768 32768 2 0 2 1 0 1 1 0 8 1 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 8 0 8 1 0 1 1 0 8 1 dma128 128 254 0 254 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 29 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1146 0 1125 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1146 0 1125 1 0 1 1 0 8 0 vmmpekpl 168 10068 0 10023 3 0 3 3 0 8 0 vmmpepl 168 77185 0 76173 90 0 90 90 0 357 42 vmsppl 368 1145 0 1125 4 0 4 4 0 8 1 rwobjpl 40 22140 0 21609 13 0 13 13 0 8 2 pdppl 4096 2298 0 2250 104 56 48 82 0 8 0 pvpl 32 511388 0 505285 116 0 116 116 0 265 48 pmappl 216 1145 0 1125 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 808 0 62 22 0 22 22 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80002a7e0e00) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff280705ce388,ffff80002a7e0eb0,3,fffff28007ffd4e0) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002f0b07e0,fffff280705ce388,fffff28007ffd4e0,ffff80002a7e0f80,ffff80002a7e0f60) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsysret(ffff80002f0b07e0,36,0,ffff80002a7e1040) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002f0b07e0,36,0,ffff80002a7e1040) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80002a7e10f0) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a7e10f0) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x42dd4bf4e00, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80002a7e0e00) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff280705ce388,ffff80002a7e0eb0,3,fffff28007ffd4e0) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002f0b07e0,fffff280705ce388,fffff28007ffd4e0,ffff80002a7e0f80,ffff80002a7e0f60) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsysret(ffff80002f0b07e0,36,0,ffff80002a7e1040) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002f0b07e0,36,0,ffff80002a7e1040) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80002a7e10f0) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a7e10f0) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x42dd4bf4e00, count: -7 ddb>