uvm_fault(0xffffffff839e2e50, 0xffff800029ab2080, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x52: repe stosq %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *231461 50105 0 0x10000002 0x1 0 syz-executor memset() at memset+0x52 ffs_write(ffff80002a884ff0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff6806b4106e0,ffff80002a8850a0,3,fffff68007ffd4e0) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a736a68,fffff6806b4106e0,fffff68007ffd4e0,ffff80002a885170,ffff80002a885150) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsysret(ffff80002a736a68,5b,4,ffff80002a885230) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a736a68,5b,4,ffff80002a885230) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80002a8852e0) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a8852e0) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75b7a2569440, 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(0xffffffff839e2e50, 0xffff800029ab2080, 0, 2) -> d ddb> show kasan No such command ddb> trace memset() at memset+0x52 ffs_write(ffff80002a884ff0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff6806b4106e0,ffff80002a8850a0,3,fffff68007ffd4e0) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a736a68,fffff6806b4106e0,fffff68007ffd4e0,ffff80002a885170,ffff80002a885150) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsysret(ffff80002a736a68,5b,4,ffff80002a885230) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a736a68,5b,4,ffff80002a885230) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80002a8852e0) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a8852e0) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75b7a2569440, count: -7 ddb> show registers rdi 0xffff800029ab2080 rsi 0 rbp 0xffff80002a884f10 rbx 0x1c080 acpi_pdirpa+0x7ef1 rdx 0 rcx 0xf0 rax 0 r8 0x780 r9 0xffff80002a884e70 r10 0x50ceb7986b16426b r11 0xffff800029ab2080 r12 0x80 r13 0x800 r14 0xfffff6806b4106e0 r15 0x1 rip 0xffffffff82ff9752 memset+0x52 cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80002a884d08 ss 0 memset+0x52: repe stosq %es:(%rdi) ddb> show proc PROC (syz-executor) tid=231461 pid=50105 tcnt=1 stat=onproc flags process=10000002 proc=1 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7362a0,0xffff80002a737a08 process=0xffff80002a792890 user=0xffff80002a880000, vmspace=0xfffff6807f2378a0 estcpu=36, cpticks=10, pctcpu=0.2, user=0, sys=10, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 53610 291382 71673 0 2 0 0 syz-executor 53610 342259 71673 0 3 0 0x4000080 fsleep syz-executor 11950 508012 18061 0 2 0 0 syz-executor 11950 422281 18061 0 3 0 0x4000080 lockf syz-executor 90555 260465 25684 60928 3 0x10 0x80 nanoslp syz-executor 90555 73048 25684 60928 3 0x10 0x4000080 lockf syz-executor 90555 516964 25684 60928 3 0x10 0x4000080 fsleep syz-executor 90555 253759 25684 60928 3 0x10 0x4000080 fsleep syz-executor 41514 358010 53254 -1 3 0x10 0x80 nanoslp syz-executor 41514 113715 53254 -1 3 0x10 0x4000080 lockf syz-executor 20201 336017 92248 0 2 0 0xc80 syz-executor 20201 59058 92248 0 3 0 0x4000080 kqpoll syz-executor 20201 492822 92248 0 3 0 0x4000080 fsleep syz-executor 77249 392143 81906 0 3 0 0x80 nanoslp syz-executor 77249 143144 81906 0 3 0 0x4000080 kqpoll syz-executor 77249 393129 81906 0 3 0 0x4000080 fsleep syz-executor 23584 478170 29282 -1 2 0x10 0xc80 syz-executor 23584 216525 29282 -1 3 0x10 0x4000080 sbwait syz-executor 23584 85897 29282 -1 3 0x10 0x4000080 fsleep syz-executor 29282 37861 91695 0 2 0x2 0xc80 syz-executor *50105 231461 91695 0 7 0x10000002 0x1 syz-executor 53254 380390 91695 0 2 0x2 0xc80 syz-executor 25684 230826 91695 0 3 0x2 0x80 nanoslp syz-executor 92248 359576 91695 0 3 0x2 0x80 nanoslp syz-executor 18061 88039 91695 0 3 0x2 0x80 nanoslp syz-executor 71673 497829 91695 0 3 0x2 0x80 nanoslp syz-executor 81906 53265 91695 0 2 0x2 0xc80 syz-executor 91695 210177 67978 0 3 0x2 0x80 kqread syz-executor 67978 259038 23343 0 3 0x100002 0x88 sigsusp ksh 23343 521178 73467 0 3 0x10 0x88 kqread sshd-session 73467 130113 2805 0 3 0x12 0x80 kqread sshd-session 53882 483218 1 0 3 0x100003 0x80 ttyin getty 2805 162233 1 0 3 0 0x88 kqread sshd 49455 377361 26873 73 3 0x1100010 0x80 kqread syslogd 26873 29220 1 0 3 0x100002 0x80 sbwait syslogd 84448 174819 1 0 3 0x100000 0x80 kqread resolvd 76661 111131 46755 77 3 0x100012 0x80 kqread dhcpleased 31782 189719 46755 77 3 0x100012 0x80 kqread dhcpleased 46755 119187 1 0 3 0 0x80 kqread dhcpleased 91401 444462 0 0 3 0x14000 0x200 bored smr 89058 312097 0 0 2 0x14000 0x200 zerothread 27626 174805 0 0 3 0x14000 0x200 aiodoned aiodoned 63252 244388 0 0 3 0x14000 0x200 syncer update 11695 32110 0 0 3 0x14000 0x200 cleaner cleaner 99205 382126 0 0 3 0x14000 0x200 reaper reaper 41883 104387 0 0 3 0x14000 0x200 pgdaemon pagedaemon 8671 235251 0 0 3 0x14000 0x200 bored viomb 14052 401575 0 0 3 0x14000 0x40000200 acpi0 acpi0 29003 496185 0 0 3 0x14000 0x200 bored softnet0 29698 33947 0 0 3 0x14000 0x200 bored systqmp 54337 276239 0 0 3 0x14000 0x200 bored systq 29812 14940 0 0 3 0x14000 0x40000200 tmoslp softclock 83556 376702 0 0 3 0x14000 0x40000200 idle0 1 321591 0 0 3 0x80002 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 11061 12165K 13198K 166960K 12796 0 pcb 18 13K 14K 166960K 143 0 rtable 186 8K 9K 166960K 420 0 pf 27 12K 18K 166960K 309 0 ifaddr 30 5K 7K 166960K 52 0 ifgroup 42 1K 2K 166960K 64 0 sysctl 4 1K 9K 166960K 10 0 counters 31 17K 18K 166960K 41 0 ioctlops 0 0K 4K 166960K 116 0 iov 0 0K 13K 166960K 15 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1387 87K 88K 166960K 1719 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 14 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 33 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 17 61K 89K 166960K 564 0 sigio 0 0K 0K 166960K 1 0 proc 65 67K 91K 166960K 568 0 subproc 72 4K 4K 166960K 75 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 52 0 in_multi 65 4K 7K 166960K 108 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 21 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 406 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 228 172K 200K 166960K 6804 0 UVM aobj 21 2K 2K 166960K 22 0 pinsyscall 38 76K 94K 166960K 1677 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 19 0 NDP 9 0K 2K 166960K 33 0 temp 75 9120K 9164K 166960K 30263 0 kqueue 13 20K 29K 166960K 113 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 232 0 229 3 0 3 3 0 8 2 rtentry 136 116 0 42 4 0 4 4 0 8 0 unpcb 144 277 0 258 2 0 2 2 0 8 0 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpcb 736 280 0 276 7 0 7 7 0 8 6 arp 96 18 0 8 1 0 1 1 0 8 0 inpcb 328 658 0 647 7 0 7 7 0 8 5 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 1 1 0 1 1 0 8 0 nd6 112 25 0 9 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 7 0 7 1 0 1 1 0 8 1 pfstscr 40 2 0 0 1 0 1 1 0 8 0 pffrag 232 5 0 1 1 0 1 1 0 482 0 pffrnode 88 5 0 1 1 0 1 1 0 8 0 pffrent 40 7 0 3 1 0 1 1 0 8 0 pfsrclim 320 1 0 1 1 0 1 1 0 8 1 pfstitem 24 1 0 0 1 0 1 1 0 8 0 pfstkey 128 1 0 0 1 0 1 1 0 8 0 pfstate 384 1 0 0 1 0 1 1 0 8 0 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 480 0 149 30 0 30 30 0 8 6 art_table 40 481 0 149 5 0 5 5 0 8 0 art_node 32 114 0 47 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 3 1 0 1 1 0 8 1 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 72 28 0 18 1 0 1 1 0 8 0 shmpl 112 19 0 1 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2349 0 892 92 0 92 92 0 8 0 ffsino 256 2349 0 892 92 0 92 92 0 8 0 nchpl 144 3180 0 1476 64 0 64 64 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 vnodes 216 2663 0 0 148 0 148 148 0 8 0 namei 1024 10740 0 10740 2 0 2 2 0 8 2 kstatmem 264 35 0 16 2 0 2 2 0 8 0 scsiplug 72 4 0 4 1 0 1 1 0 8 1 scxspl 216 17323 0 17323 8 0 8 8 1 8 8 plimitpl 152 147 0 130 1 0 1 1 0 8 0 sigapl 424 864 0 821 6 0 6 6 0 8 1 knotepl 120 21579 0 21532 17 6 11 17 0 8 8 kqueuepl 184 133 0 122 1 0 1 1 0 8 0 pipepl 304 156 0 128 3 0 3 3 0 8 0 fdescpl 448 850 0 821 5 0 5 5 0 8 1 filepl 120 5360 0 5130 12 0 12 12 0 8 3 lockfpl 104 185 0 176 1 0 1 1 0 8 0 lockfspl 48 80 0 74 1 0 1 1 0 8 0 sessionpl 144 72 0 64 1 0 1 1 0 8 0 pgrppl 48 83 0 67 1 0 1 1 0 8 0 ucredpl 104 747 0 733 1 0 1 1 0 8 0 zombiepl 144 822 0 821 1 0 1 1 0 8 0 processpl 1152 864 0 821 4 0 4 4 0 8 0 procpl 664 1547 0 1492 6 0 6 6 0 8 1 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 552 1320 0 1287 12 1 11 12 0 8 8 mcl64k 65536 21 0 20 1 0 1 1 0 8 0 mcl9k128 9344 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 13 0 13 1 0 1 1 0 8 1 mcl4k 4096 3121 0 3073 12 0 12 12 0 8 5 mcl2k 2048 501 0 499 2 0 2 2 0 8 1 mextrefs 64 246 0 245 1 0 1 1 0 8 0 mtagpl 96 7 0 5 1 0 1 1 0 8 0 mbufpl 256 9308 0 9164 49 30 19 42 0 8 8 bufpl 272 6896 0 680 415 0 415 415 0 8 0 anonpl 24 158858 0 155604 51 0 51 51 0 187 14 amapchunkpl 152 25310 0 24637 39 0 39 39 0 158 11 amappl16 200 3039 0 3008 18 3 15 15 0 8 7 amappl15 192 19 0 19 1 0 1 1 0 8 1 amappl14 184 442 0 441 1 0 1 1 0 8 0 amappl13 176 115 0 105 1 0 1 1 0 8 0 amappl12 168 1118 0 1090 2 0 2 2 0 8 0 amappl11 160 9 0 9 1 0 1 1 0 8 1 amappl10 152 62 0 51 1 0 1 1 0 8 0 amappl9 144 269 0 269 1 0 1 1 0 8 1 amappl8 136 94 0 92 1 0 1 1 0 8 0 amappl7 128 167 0 154 1 0 1 1 0 8 0 amappl6 120 151 0 150 1 0 1 1 0 8 0 amappl5 112 95 0 87 1 0 1 1 0 8 0 amappl4 104 270 0 255 1 0 1 1 0 8 0 amappl3 96 4289 0 4177 4 0 4 4 0 8 0 amappl2 88 533 0 478 2 0 2 2 0 8 0 amappl1 80 11874 0 11332 13 0 13 13 0 8 1 amappl 88 6012 0 5848 5 0 5 5 0 92 0 uvmvnodes 80 120 0 0 3 0 3 3 0 8 0 dma8192 8192 1 0 1 1 0 1 1 0 8 1 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 7 0 7 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 21 0 1 1 0 1 1 0 8 0 uaddrrnd 24 850 0 821 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 850 0 821 1 0 1 1 0 8 0 vmmpekpl 168 8347 0 8311 2 0 2 2 0 8 0 vmmpepl 168 61881 0 60096 92 0 92 92 0 357 8 vmsppl 368 849 0 821 4 0 4 4 0 8 1 rwobjpl 40 19872 0 18882 13 0 13 13 0 8 0 pdppl 4096 1706 0 1642 104 38 66 78 0 8 2 pvpl 32 402444 0 393501 127 0 127 127 0 265 32 pmappl 216 849 0 821 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 826 0 68 23 0 23 23 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace memset() at memset+0x52 ffs_write(ffff80002a884ff0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff6806b4106e0,ffff80002a8850a0,3,fffff68007ffd4e0) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a736a68,fffff6806b4106e0,fffff68007ffd4e0,ffff80002a885170,ffff80002a885150) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsysret(ffff80002a736a68,5b,4,ffff80002a885230) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a736a68,5b,4,ffff80002a885230) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80002a8852e0) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a8852e0) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75b7a2569440, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace memset() at memset+0x52 ffs_write(ffff80002a884ff0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff6806b4106e0,ffff80002a8850a0,3,fffff68007ffd4e0) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a736a68,fffff6806b4106e0,fffff68007ffd4e0,ffff80002a885170,ffff80002a885150) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsysret(ffff80002a736a68,5b,4,ffff80002a885230) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a736a68,5b,4,ffff80002a885230) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80002a8852e0) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a8852e0) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75b7a2569440, count: -7