uvm_fault(0xffffffff83a82910, 0xffff800024722040, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x52: repe stosq %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *400314 97487 0 0 0x1 0 syz-executor memset() at memset+0x52 ffs_write(ffff8000388cf2c0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff2005dbda2d8,ffff8000388cf370,3,fffff20007ffd6e8) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000314b34f0,fffff2005dbda2d8,fffff20007ffd6e8,ffff8000388cf448,ffff8000388cf420) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrstruct(ffff8000314b34f0,ffffffff834e26b5,ffff8000388cf508,18) at ktrstruct+0x188 ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrstruct(ffff8000314b34f0,ffffffff834e26b5,ffff8000388cf508,18) at ktrstruct+0x188 sys/kern/kern_ktrace.c:315 sys___tfork(ffff8000314b34f0,ffff8000388cf640,ffff8000388cf590) at sys___tfork+0x160 sys/kern/kern_fork.c:132 syscall(ffff8000388cf640) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000388cf640) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75e10c4970a0, count: 7 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(0xffffffff83a82910, 0xffff800024722040, 0, 2) -> d ddb> trace memset() at memset+0x52 ffs_write(ffff8000388cf2c0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff2005dbda2d8,ffff8000388cf370,3,fffff20007ffd6e8) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000314b34f0,fffff2005dbda2d8,fffff20007ffd6e8,ffff8000388cf448,ffff8000388cf420) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrstruct(ffff8000314b34f0,ffffffff834e26b5,ffff8000388cf508,18) at ktrstruct+0x188 ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrstruct(ffff8000314b34f0,ffffffff834e26b5,ffff8000388cf508,18) at ktrstruct+0x188 sys/kern/kern_ktrace.c:315 sys___tfork(ffff8000314b34f0,ffff8000388cf640,ffff8000388cf590) at sys___tfork+0x160 sys/kern/kern_fork.c:132 syscall(ffff8000388cf640) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000388cf640) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75e10c4970a0, count: -8 ddb> show registers rdi 0xffff800024722040 rsi 0 rbp 0xffff8000388cf1e0 rbx 0x40 rdx 0 rcx 0xf8 rax 0 r8 0x7c0 r9 0xffff8000388cf140 r10 0xe9b0934273568fac r11 0xffff800024722040 r12 0x40 r13 0x800 r14 0xfffff2005dbda2d8 r15 0x1 rip 0xffffffff824bef22 memset+0x52 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff8000388cefd8 ss 0x10 memset+0x52: repe stosq %es:(%rdi) ddb> show proc PROC (syz-executor) tid=400314 pid=97487 tcnt=3 stat=onproc flags process=0 proc=1 runpri=79, usrpri=79, slppri=36, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002f0b1a08,0xffff8000314b3268 process=0xffff8000ffff8018 user=0xffff8000388ca000, vmspace=0xfffff20077068e78 estcpu=29, cpticks=11, pctcpu=0.9, user=10, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 93080 270059 34507 60928 2 0x10 syz-executor 93080 69978 34507 60928 3 0x4000090 fsleep syz-executor 93080 108565 34507 60928 3 0x4000090 fsleep syz-executor 93080 75855 34507 60928 3 0x4000090 fsleep syz-executor 43065 147568 49047 0 3 0x80 nanoslp syz-executor 43065 314625 49047 0 3 0x4000080 ttyout syz-executor 43065 369681 49047 0 3 0x4000080 fsleep syz-executor 43065 399907 49047 0 3 0x4000080 fsleep syz-executor *97487 400314 78124 0 7 0x1 syz-executor 97487 473911 78124 0 3 0x4000080 fsleep syz-executor 97487 284284 78124 0 3 0x4000080 fsleep syz-executor 49047 343493 25412 0 3 0x82 nanoslp syz-executor 34507 179635 25412 0 3 0x82 nanoslp syz-executor 78124 408534 25412 0 3 0x82 nanoslp syz-executor 25412 419095 93451 0 3 0x82 wait syz-executor 93451 211390 17673 0 3 0x10008a sigsusp ksh 17673 351980 72020 0 3 0x98 kqread sshd-session 72020 420262 18074 0 3 0x92 kqread sshd-session 71205 460903 1 0 3 0x100083 ttyin getty 18074 476074 1 0 3 0x88 kqread sshd 9357 325965 21794 73 3 0x1100090 kqread syslogd 21794 372932 1 0 3 0x100082 sbwait syslogd 25796 222905 1 0 3 0x100080 kqread resolvd 53331 486438 48195 77 3 0x100092 kqread dhcpleased 93601 181003 48195 77 3 0x100092 kqread dhcpleased 48195 414026 1 0 3 0x80 kqread dhcpleased 12906 246817 0 0 3 0x14200 bored smr 83799 170533 0 0 2 0x14200 zerothread 22753 263018 0 0 3 0x14200 aiodoned aiodoned 85418 138579 0 0 3 0x14200 syncer update 44206 88688 0 0 3 0x14200 cleaner cleaner 53492 468915 0 0 3 0x14200 reaper reaper 91987 200406 0 0 3 0x14200 pgdaemon pagedaemon 66835 185686 0 0 3 0x14200 bored viomb 95402 52827 0 0 3 0x40014200 acpi0 acpi0 96694 123244 0 0 3 0x14200 bored softnet0 4845 504833 0 0 3 0x14200 bored systqmp 76170 264313 0 0 3 0x14200 bored systq 66461 444447 0 0 3 0x40014200 tmoslp softclock 96631 288490 0 0 3 0x40014200 idle0 1 442351 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 11042 12180K 12578K 166960K 12800 0 pcb 18 14K 16K 166960K 253 0 rtable 202 6K 7K 166960K 438 0 pf 36 14K 20K 166960K 261 0 ifaddr 39 6K 7K 166960K 67 0 ifgroup 54 2K 2K 166960K 92 0 sysctl 4 1K 9K 166960K 15 0 counters 34 17K 18K 166960K 52 0 ioctlops 0 0K 4K 166960K 128 0 iov 0 0K 18K 166960K 29 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1330 84K 84K 166960K 1877 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 96 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 13 45K 93K 166960K 563 0 sigio 0 0K 0K 166960K 8 0 proc 60 59K 116K 166960K 590 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 45 0 in_multi 84 6K 7K 166960K 126 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 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 496 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 197 159K 178K 166960K 6780 0 UVM aobj 15 4K 4K 166960K 15 0 pinsyscall 34 68K 96K 166960K 1699 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 12 0K 2K 166960K 46 0 temp 73 9115K 13214K 166960K 22268 0 kqueue 13 20K 29K 166960K 97 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 55 0 52 1 0 1 1 0 8 0 rtentry 136 136 0 48 4 0 4 4 0 8 0 unpcb 144 305 0 288 1 0 1 1 0 8 0 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpcb 736 250 0 246 7 6 1 7 0 8 0 arp 96 21 0 5 1 0 1 1 0 8 0 ipq 40 2 0 1 1 0 1 1 0 8 0 ipqe 40 4 0 3 1 0 1 1 0 8 0 inpcb 328 760 0 752 21 14 7 13 0 8 6 ip6q 72 3 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 112 32 0 11 1 0 1 1 0 8 0 pkpcb 40 3 0 3 2 1 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 15 0 15 1 0 1 1 0 8 1 pfstscr 40 6 0 4 1 0 1 1 0 8 0 pfanchor 1288 9 0 2 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 6 0 4 1 0 1 1 0 8 0 pfstate 384 3 0 2 1 0 1 1 0 8 0 pfrule 1360 13 0 13 1 1 0 1 0 8 0 rttmr 136 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 639 0 239 30 3 27 30 0 8 1 art_table 40 640 0 239 5 0 5 5 0 8 0 art_node 32 136 0 56 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 1 1 0 1 1 0 8 0 semapl 72 58 0 48 1 0 1 1 0 8 0 shmpl 112 12 0 0 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2391 0 928 92 0 92 92 0 8 0 ffsino 256 2392 0 929 92 0 92 92 0 8 0 nchpl 144 3160 0 1462 64 0 64 64 0 8 0 rtmask 32 1 0 1 1 1 0 1 0 8 0 vnodes 216 2790 0 0 155 0 155 155 0 8 0 namei 1024 10362 0 10362 3 2 1 2 0 8 1 acpiwqpl 32 2 0 2 1 0 1 1 1 8 1 kstatmem 264 55 0 30 3 0 3 3 0 8 1 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 11226 0 11226 11 3 8 8 1 8 8 plimitpl 152 124 0 107 1 0 1 1 0 8 0 sigapl 424 859 0 821 6 1 5 6 0 8 0 knotepl 120 19837 0 19790 23 13 10 18 0 8 7 kqueuepl 184 125 0 114 1 0 1 1 0 8 0 pipepl 304 184 0 157 5 2 3 5 0 8 0 fdescpl 448 846 0 821 5 1 4 5 0 8 0 filepl 120 4750 0 4540 13 3 10 11 0 8 2 lockfpl 104 140 0 138 1 0 1 1 0 8 0 lockfspl 48 68 0 66 1 0 1 1 0 8 0 sessionpl 144 39 0 31 1 0 1 1 0 8 0 pgrppl 48 51 0 35 1 0 1 1 0 8 0 ucredpl 104 776 0 764 1 0 1 1 0 8 0 zombiepl 144 880 0 875 1 0 1 1 0 8 0 processpl 1152 859 0 821 4 0 4 4 0 8 0 procpl 664 1467 0 1421 7 1 6 6 0 8 0 sockpl 552 1135 0 1107 18 10 8 12 0 8 5 mcl64k 65536 83 0 82 1 0 1 1 0 8 0 mcl16k 16384 11 0 11 1 1 0 1 0 8 0 mcl12k 12288 5 0 5 2 1 1 1 0 8 1 mcl9k128 9344 2 0 2 1 1 0 1 0 8 0 mcl8k 8192 17 0 17 1 1 0 1 0 8 0 mcl4k 4096 3176 0 3125 15 7 8 14 0 8 0 mcl2k2 2112 3 0 3 2 1 1 1 0 8 1 mcl2k 2048 595 0 593 4 2 2 4 0 8 1 mtagpl 96 72 0 5 2 0 2 2 0 8 0 mbufpl 256 9296 0 9096 22 1 21 22 0 8 0 bufpl 280 4920 0 107 344 0 344 344 0 8 0 anonpl 24 123856 0 120666 68 21 47 47 0 186 17 amapchunkpl 152 22411 0 22035 39 10 29 36 0 158 8 amappl16 200 1946 0 1905 23 8 15 15 0 8 10 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 425 0 424 1 0 1 1 0 8 0 amappl13 176 116 0 106 1 0 1 1 0 8 0 amappl12 168 1129 0 1105 2 0 2 2 0 8 0 amappl11 160 20 0 20 1 1 0 1 0 8 0 amappl10 152 55 0 45 1 0 1 1 0 8 0 amappl9 144 271 0 271 1 1 0 1 0 8 0 amappl8 136 101 0 100 1 0 1 1 0 8 0 amappl7 128 163 0 151 1 0 1 1 0 8 0 amappl6 120 157 0 156 1 0 1 1 0 8 0 amappl5 112 91 0 83 1 0 1 1 0 8 0 amappl4 104 267 0 251 1 0 1 1 0 8 0 amappl3 96 4182 0 4095 4 0 4 4 0 8 0 amappl2 88 534 0 477 2 0 2 2 0 8 0 amappl1 80 11976 0 11433 13 1 12 13 0 8 0 amappl 88 5986 0 5854 5 0 5 5 0 92 0 uvmvnodes 80 120 0 0 3 0 3 3 0 8 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma4096 4096 2 0 2 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 1 1 0 1 0 8 0 dma64 64 7 0 7 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 14 0 0 1 0 1 1 0 8 0 uaddrrnd 24 846 0 821 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 846 0 821 1 0 1 1 0 8 0 vmmpekpl 168 8347 0 8300 3 0 3 3 0 8 0 vmmpepl 168 60460 0 58862 100 7 93 93 0 357 8 vmsppl 368 845 0 821 4 1 3 4 0 8 0 rwobjpl 40 18641 0 17671 13 0 13 13 0 8 1 pdppl 4096 1698 0 1642 100 34 66 80 0 8 10 pvpl 32 374077 0 366104 154 35 119 120 0 265 27 pmappl 216 845 0 821 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 387 0 64 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace memset() at memset+0x52 ffs_write(ffff8000388cf2c0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff2005dbda2d8,ffff8000388cf370,3,fffff20007ffd6e8) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000314b34f0,fffff2005dbda2d8,fffff20007ffd6e8,ffff8000388cf448,ffff8000388cf420) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrstruct(ffff8000314b34f0,ffffffff834e26b5,ffff8000388cf508,18) at ktrstruct+0x188 ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrstruct(ffff8000314b34f0,ffffffff834e26b5,ffff8000388cf508,18) at ktrstruct+0x188 sys/kern/kern_ktrace.c:315 sys___tfork(ffff8000314b34f0,ffff8000388cf640,ffff8000388cf590) at sys___tfork+0x160 sys/kern/kern_fork.c:132 syscall(ffff8000388cf640) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000388cf640) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75e10c4970a0, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace memset() at memset+0x52 ffs_write(ffff8000388cf2c0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffff2005dbda2d8,ffff8000388cf370,3,fffff20007ffd6e8) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000314b34f0,fffff2005dbda2d8,fffff20007ffd6e8,ffff8000388cf448,ffff8000388cf420) at ktrwriteraw+0x19b sys/kern/kern_ktrace.c:692 ktrstruct(ffff8000314b34f0,ffffffff834e26b5,ffff8000388cf508,18) at ktrstruct+0x188 ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrstruct(ffff8000314b34f0,ffffffff834e26b5,ffff8000388cf508,18) at ktrstruct+0x188 sys/kern/kern_ktrace.c:315 sys___tfork(ffff8000314b34f0,ffff8000388cf640,ffff8000388cf590) at sys___tfork+0x160 sys/kern/kern_fork.c:132 syscall(ffff8000388cf640) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000388cf640) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75e10c4970a0, count: -8