uvm_fault(0xffffffff83ac0930, 0xffff8000298b2cad, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x49: repe stosb %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *442556 57428 0 0 0x4000001 0 syz-executor memset() at memset+0x49 ffs_write(ffff80003c93f440) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff5006c48ea38,ffff80003c93f4f0,3,fffff50007ffd750) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a766fa0,fffff5006c48ea38,fffff50007ffd750,ffff80003c93f5c0,ffff80003c93f5a0) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsysret(ffff80002a766fa0,36,0,ffff80003c93f680) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a766fa0,36,0,ffff80003c93f680) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80003c93f730) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80003c93f730) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x267f4f45ed0, 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(0xffffffff83ac0930, 0xffff8000298b2cad, 0, 2) -> d ddb> show kasan No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80003c93f440) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff5006c48ea38,ffff80003c93f4f0,3,fffff50007ffd750) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a766fa0,fffff5006c48ea38,fffff50007ffd750,ffff80003c93f5c0,ffff80003c93f5a0) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsysret(ffff80002a766fa0,36,0,ffff80003c93f680) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a766fa0,36,0,ffff80003c93f680) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80003c93f730) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80003c93f730) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x267f4f45ed0, count: -7 ddb> show registers rdi 0xffff8000298b2cad rsi 0 rbp 0xffff80003c93f360 rbx 0xccad __ALIGN_SIZE+0xbcad rdx 0x3 rcx 0x3 rax 0 r8 0x350 r9 0xffff80003c93f2c0 r10 0x43d7827750faded3 r11 0xffff8000298b2cad r12 0xcad r13 0x1000 __ALIGN_SIZE r14 0xfffff5006c48ea38 r15 0x1 rip 0xffffffff82b6c319 memset+0x49 cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80003c93f158 ss 0x10 memset+0x49: repe stosb %es:(%rdi) ddb> show proc PROC (syz-executor) tid=442556 pid=57428 tcnt=2 stat=onproc flags process=0 proc=4000001 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002f0b1a08,0xffffffff839ea038 process=0xffff800045ff8018 user=0xffff80003c93a000, vmspace=0xfffff5000e0a4018 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 57428 263744 12488 0 2 0 0 syz-executor *57428 442556 12488 0 7 0 0x4000001 syz-executor 96250 368312 85409 0 2 0 0 syz-executor 96250 168489 85409 0 3 0 0x4000080 netacc syz-executor 55660 186646 88903 0 2 0 0 syz-executor 55660 360613 88903 0 3 0 0x4000080 lockf syz-executor 55660 47388 88903 0 3 0 0x4000080 lockf syz-executor 55660 18021 88903 0 2 0 0x4000000 syz-executor 85582 312077 58025 0 2 0 0xc80 syz-executor 85582 144692 58025 0 3 0 0x4000080 msgwait syz-executor 85582 140689 58025 0 3 0 0x4000080 fsleep syz-executor 19803 305257 32875 -1 2 0x10 0 syz-executor 19803 498363 32875 -1 3 0x10 0x4000080 fsleep syz-executor 72864 171076 38739 0 2 0 0 syz-executor 72864 64244 38739 0 3 0 0x4000080 msgwait syz-executor 72864 59795 38739 0 3 0 0x4000080 fsleep syz-executor 19515 164946 48633 0 2 0 0 syz-executor 19515 3311 48633 0 3 0 0x4000080 fsleep syz-executor 19515 81413 48633 0 3 0 0x4000080 fsleep syz-executor 13282 82912 26875 -1 3 0x10 0x80 nanoslp syz-executor 13282 240479 26875 -1 3 0x10 0x4000080 netacc syz-executor 13282 3308 26875 -1 3 0x10 0x4000080 fsleep syz-executor 58025 158342 57829 0 2 0x2 0xc80 syz-executor 85409 494111 57829 0 3 0x2 0x80 nanoslp syz-executor 32875 232272 57829 0 2 0x2 0xc80 syz-executor 38739 439475 57829 0 3 0x2 0x80 nanoslp syz-executor 12488 17734 57829 0 2 0x2 0xc80 syz-executor 26875 117441 57829 0 2 0x2 0xc80 syz-executor 88903 508740 57829 0 3 0x2 0x80 nanoslp syz-executor 48633 212891 57829 0 2 0x2 0xc80 syz-executor 57829 513603 95547 0 3 0x2 0x80 kqread syz-executor 95547 452356 48449 0 3 0x100002 0x88 sigsusp ksh 48449 145584 98667 0 3 0x10 0x88 kqread sshd-session 98667 245034 47269 0 3 0x12 0x80 kqread sshd-session 76302 178502 1 0 3 0x100003 0x80 ttyin getty 47269 94098 1 0 3 0 0x88 kqread sshd 58638 496272 90468 73 3 0x1100010 0x80 kqread syslogd 90468 340986 1 0 3 0x100002 0x80 sbwait syslogd 75296 74929 1 0 3 0x100000 0x80 kqread resolvd 23365 298988 29451 77 3 0x100012 0x80 kqread dhcpleased 21682 482638 29451 77 3 0x100012 0x80 kqread dhcpleased 29451 191503 1 0 3 0 0x80 kqread dhcpleased 10011 461679 0 0 3 0x14000 0x200 bored smr 74889 326267 0 0 2 0x14000 0x200 zerothread 79866 103777 0 0 3 0x14000 0x200 aiodoned aiodoned 3720 42453 0 0 3 0x14000 0x200 syncer update 69206 316916 0 0 3 0x14000 0x200 cleaner cleaner 1954 443218 0 0 3 0x14000 0x200 reaper reaper 57165 247482 0 0 3 0x14000 0x200 pgdaemon pagedaemon 21492 222595 0 0 3 0x14000 0x200 bored viomb 79324 486784 0 0 3 0x14000 0x40000200 acpi0 acpi0 33154 217664 0 0 3 0x14000 0x200 bored softnet0 21482 462818 0 0 3 0x14000 0x200 bored systqmp 18761 104542 0 0 3 0x14000 0x200 bored systq 20586 122521 0 0 3 0x14000 0x40000200 tmoslp softclock 40875 141463 0 0 3 0x14000 0x40000200 idle0 1 162422 0 0 3 0x80002 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 11075 12264K 12466K 166960K 12782 0 pcb 19 12K 12K 166960K 128 0 rtable 246 9K 9K 166960K 502 0 pf 36 14K 17K 166960K 203 0 ifaddr 42 7K 7K 166960K 67 0 ifgroup 50 2K 2K 166960K 105 0 sysctl 4 1K 9K 166960K 10 0 counters 33 17K 18K 166960K 118 0 ioctlops 0 0K 4K 166960K 313 0 iov 0 0K 12K 166960K 180 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1331 84K 84K 166960K 1931 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 15 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 92 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 18 65K 89K 166960K 765 0 sigio 0 0K 0K 166960K 97 0 proc 60 59K 91K 166960K 567 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 495 0 in_multi 100 6K 7K 166960K 197 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 23 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 229 1023K 1023K 166960K 229 0 exec 0 0K 1K 166960K 442 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 233 152K 165K 166960K 8353 0 UVM aobj 19 2K 2K 166960K 24 0 pinsyscall 39 78K 94K 166960K 1901 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 69 0 NDP 11 0K 2K 166960K 44 0 temp 44 9112K 9252K 166960K 26621 0 kqueue 13 20K 27K 166960K 138 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 72 0 68 1 0 1 1 0 8 0 rtentry 136 159 0 53 4 0 4 4 0 8 0 unpcb 144 448 0 429 2 1 1 2 0 8 0 syncache 336 13 0 13 2 2 0 1 0 8 0 tcpcb 736 370 0 363 8 7 1 7 0 8 0 arp 96 22 0 3 1 0 1 1 0 8 0 inpcb 328 1171 0 1152 7 5 2 7 0 8 0 nd6 112 54 0 24 1 0 1 1 0 8 0 pkpcb 40 5 0 5 1 1 0 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 76 0 76 2 2 0 1 0 8 0 pppxif 1416 66 0 66 1 1 0 1 0 8 0 pfstscr 40 10 0 8 1 0 1 1 0 8 0 pffrag 232 12 0 4 1 0 1 1 0 482 0 pffrnode 88 12 0 4 1 0 1 1 0 8 0 pffrent 40 20 0 12 1 0 1 1 0 8 0 pfrktable 1344 2 0 2 1 1 0 1 0 8 0 pfsrclim 320 2 0 2 1 1 0 1 0 8 0 pftag 88 4 0 0 1 0 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 9 0 7 1 0 1 1 0 8 0 pfstate 384 5 0 4 1 0 1 1 0 8 0 pfrule 1360 10 0 10 1 1 0 1 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 658 0 194 31 1 30 31 0 8 0 art_table 40 661 0 194 6 0 6 6 0 8 0 art_node 32 159 0 63 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 6 1 0 1 1 0 8 0 semupl 112 2 0 2 2 2 0 1 0 8 0 semapl 72 89 0 79 1 0 1 1 0 8 0 shmpl 112 21 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2618 0 1157 92 0 92 92 0 8 0 ffsino 256 2618 0 1157 92 0 92 92 0 8 0 nchpl 144 3699 0 1993 64 0 64 64 0 8 0 rtmask 32 2 0 2 1 1 0 1 0 8 0 vnodes 216 3112 0 0 173 0 173 173 0 8 0 namei 1024 11578 0 11578 3 2 1 2 0 8 1 kstatmem 264 53 0 30 2 0 2 2 0 8 0 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 15975 0 15975 10 9 1 8 1 8 1 plimitpl 152 98 0 82 1 0 1 1 0 8 0 sigapl 424 1061 0 1018 6 1 5 6 0 8 0 knotepl 120 29691 0 29644 26 24 2 16 0 8 0 kqueuepl 184 177 0 168 3 2 1 3 0 8 0 pipepl 304 187 0 160 5 2 3 5 0 8 0 fdescpl 448 1048 0 1018 5 1 4 5 0 8 0 filepl 120 5897 0 5663 11 3 8 11 0 8 0 lockfpl 104 155 0 147 1 0 1 1 0 8 0 lockfspl 48 71 0 65 1 0 1 1 0 8 0 sessionpl 144 147 0 138 1 0 1 1 0 8 0 pgrppl 48 162 0 145 1 0 1 1 0 8 0 ucredpl 104 781 0 766 1 0 1 1 0 8 0 zombiepl 144 1018 0 1018 2 1 1 1 0 8 1 processpl 1152 1061 0 1018 4 0 4 4 0 8 0 procpl 664 1917 0 1860 5 0 5 5 0 8 0 sosppl 176 2 0 2 1 1 0 1 0 8 0 sockpl 552 1715 0 1673 9 5 4 8 0 8 0 mcl64k 65536 166 0 166 3 2 1 1 0 8 1 mcl16k 16384 6 0 6 2 2 0 1 0 8 0 mcl12k 12288 5 0 5 2 2 0 1 0 8 0 mcl9k128 9344 11 0 11 2 2 0 1 0 8 0 mcl8k 8192 67 0 67 2 2 0 1 0 8 0 mcl4k 4096 3527 0 3474 16 8 8 15 0 8 0 mcl2k 2048 700 0 684 4 1 3 3 0 8 0 mextrefs 64 429 0 423 1 0 1 1 0 8 0 mtagpl 96 5 0 5 1 1 0 1 0 8 0 mbufpl 256 12393 0 12135 29 11 18 28 0 8 0 bufpl 272 7489 0 1273 415 0 415 415 0 8 0 anonpl 24 228105 0 222477 71 35 36 57 0 187 0 amapchunkpl 152 30958 0 30324 43 18 25 32 0 158 0 amappl16 200 3137 0 3091 17 14 3 15 0 8 0 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 425 0 424 1 0 1 1 0 8 0 amappl13 176 122 0 112 1 0 1 1 0 8 0 amappl12 168 1291 0 1262 2 0 2 2 0 8 0 amappl11 160 7 0 7 1 1 0 1 0 8 0 amappl10 152 60 0 50 1 0 1 1 0 8 0 amappl9 144 267 0 267 1 1 0 1 0 8 0 amappl8 136 123 0 122 1 0 1 1 0 8 0 amappl7 128 141 0 130 1 0 1 1 0 8 0 amappl6 120 160 0 158 1 0 1 1 0 8 0 amappl5 112 94 0 87 1 0 1 1 0 8 0 amappl4 104 262 0 247 1 0 1 1 0 8 0 amappl3 96 5487 0 5368 4 0 4 4 0 8 0 amappl2 88 544 0 486 2 0 2 2 0 8 0 amappl1 80 12779 0 12227 13 1 12 13 0 8 0 amappl 88 7548 0 7378 4 0 4 4 0 92 0 uvmvnodes 80 156 0 0 4 0 4 4 0 8 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 256 0 256 2 2 0 1 0 8 0 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 23 0 5 1 0 1 1 0 8 0 uaddrrnd 24 1048 0 1018 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1048 0 1018 1 0 1 1 0 8 0 vmmpekpl 168 9512 0 9478 2 0 2 2 0 8 0 vmmpepl 168 72439 0 70577 93 12 81 91 0 357 0 vmsppl 368 1047 0 1018 4 1 3 4 0 8 0 rwobjpl 40 21687 0 20633 13 1 12 13 0 8 0 pdppl 4096 2102 0 2036 102 36 66 78 0 8 0 pvpl 32 585248 0 572322 172 67 105 132 0 265 0 pmappl 216 1047 0 1018 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 820 0 79 22 0 22 22 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80003c93f440) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff5006c48ea38,ffff80003c93f4f0,3,fffff50007ffd750) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a766fa0,fffff5006c48ea38,fffff50007ffd750,ffff80003c93f5c0,ffff80003c93f5a0) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsysret(ffff80002a766fa0,36,0,ffff80003c93f680) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a766fa0,36,0,ffff80003c93f680) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80003c93f730) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80003c93f730) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x267f4f45ed0, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace memset() at memset+0x49 ffs_write(ffff80003c93f440) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff5006c48ea38,ffff80003c93f4f0,3,fffff50007ffd750) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80002a766fa0,fffff5006c48ea38,fffff50007ffd750,ffff80003c93f5c0,ffff80003c93f5a0) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrsysret(ffff80002a766fa0,36,0,ffff80003c93f680) at ktrsysret+0x17f ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a766fa0,36,0,ffff80003c93f680) at ktrsysret+0x17f sys/kern/kern_ktrace.c:209 syscall(ffff80003c93f730) at syscall+0xad9 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80003c93f730) at syscall+0xad9 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x267f4f45ed0, count: -7