uvm_fault(0xffffffff8395b818, 0xffff800027e73b88, 0, 1) -> d kernel: page fault trap, code=0 Stopped at ffs2_balloc+0xa0a: movq 0(%rcx,%rax,8),%r14 TID PID UID PRFLAGS PFLAGS CPU COMMAND * 22607 26360 0 0x2000 0x4080000 0 syz-executor ffs2_balloc(fffffd806cc90800,df4000,4000,fffffd8007ffd618,2,ffff8000388dee68) at ffs2_balloc+0xa0a sys/ufs/ffs/ffs_balloc.c:614 ffs_write(ffff8000388deef0) at ffs_write+0x4f9 sys/ufs/ffs/ffs_vnops.c:345 VOP_WRITE(fffffd8068828608,ffff8000388df0a8,7,fffffd8007ffd618) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_write(fffffd806c81a880,ffff8000388df0a8,0) at vn_write+0x1c2 sys/kern/vfs_vnops.c:408 dofilewritev(ffff8000314c07e0,6,ffff8000388df0a8,0,ffff8000388df150) at dofilewritev+0x2bd sys/kern/sys_generic.c:384 sys_write(ffff8000314c07e0,ffff8000388df200,ffff8000388df150) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff8000388df200) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000388df200) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x65f4f15350, 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(0xffffffff8395b818, 0xffff800027e73b88, 0, 1) -> d ddb> trace ffs2_balloc(fffffd806cc90800,df4000,4000,fffffd8007ffd618,2,ffff8000388dee68) at ffs2_balloc+0xa0a sys/ufs/ffs/ffs_balloc.c:614 ffs_write(ffff8000388deef0) at ffs_write+0x4f9 sys/ufs/ffs/ffs_vnops.c:345 VOP_WRITE(fffffd8068828608,ffff8000388df0a8,7,fffffd8007ffd618) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_write(fffffd806c81a880,ffff8000388df0a8,0) at vn_write+0x1c2 sys/kern/vfs_vnops.c:408 dofilewritev(ffff8000314c07e0,6,ffff8000388df0a8,0,ffff8000388df150) at dofilewritev+0x2bd sys/kern/sys_generic.c:384 sys_write(ffff8000314c07e0,ffff8000388df200,ffff8000388df150) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff8000388df200) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000388df200) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x65f4f15350, count: -8 ddb> show registers rdi 0 rsi 0x2 rbp 0xffff8000388dee10 rbx 0xfffffd806cc90800 rdx 0 rcx 0xffff800027e72000 rax 0x371 r8 0xffffffffffffffff r9 0xffff8000388dee68 r10 0xb8ad548837c3a4d r11 0x2c068a9f13b24e61 r12 0x1 r13 0xffff800000c47800 r14 0xffff8000388decb0 r15 0xfffffd805d734580 rip 0xffffffff8255589a ffs2_balloc+0xa0a cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff8000388deca0 ss 0x10 ffs2_balloc+0xa0a: movq 0(%rcx,%rax,8),%r14 ddb> show proc PROC (syz-executor) tid=22607 pid=26360 tcnt=4 stat=onproc flags process=2000 proc=4080000 runpri=52, usrpri=52, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003c90a7e8 scnt=2 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000314c1770,0xffff8000314c0fb8 process=0xffff8000ffff9f98 user=0xffff8000388da000, vmspace=0xfffffd806ccc1d00 estcpu=2, cpticks=13, pctcpu=0.7, user=0, sys=13, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 62345 462157 42513 0 2 0 syz-executor 62345 24112 42513 0 2 0x4000000 syz-executor 93231 513493 10294 0 2 0 syz-executor 93231 53699 10294 0 2 0x4000000 syz-executor 3846 348405 14372 0 2 0xc80 syz-executor 3846 39622 14372 0 3 0x4000080 ttyin syz-executor 3846 81437 14372 0 3 0x4000080 fsleep syz-executor 56091 399351 14982 0 2 0xc90 syz-executor 56091 28548 14982 0 3 0x4000090 msgwait syz-executor 56091 416781 14982 0 3 0x4000090 fsleep syz-executor 97505 387412 17406 0 2 0xc80 syz-executor 97505 485285 17406 0 3 0x4000080 sbwait syz-executor 97505 469976 17406 0 3 0x4000080 fsleep syz-executor 19808 425323 99438 0 2 0xc80 syz-executor 19808 431277 99438 0 3 0x4000080 kqsel syz-executor 19808 116671 99438 0 3 0x4000080 fsleep syz-executor 44247 487677 25690 0 3 0x3000 suspend syz-executor 44247 320260 25690 0 2 0x4081000 syz-executor 26360 62933 22929 0 4 0x82000 syz-executor *26360 22607 22929 0 7 0x4082000 syz-executor 26360 315921 22929 0 2 0x4082c00 syz-executor 26360 146482 22929 0 3 0x4002000 suspend syz-executor 10294 316930 6996 0 3 0x82 nanoslp syz-executor 14372 500201 6996 0 3 0x82 nanoslp syz-executor 17406 299993 6996 0 2 0xc82 syz-executor 25690 22912 6996 0 2 0xc82 syz-executor 99438 498491 6996 0 2 0xc82 syz-executor 42513 286877 6996 0 3 0x82 nanoslp syz-executor 14982 141069 6996 0 2 0xc82 syz-executor 22929 241864 6996 0 3 0x82 wait syz-executor 6996 19408 82379 0 3 0x82 kqread syz-executor 82379 434709 56180 0 3 0x10008a sigsusp ksh 56180 195630 68669 0 3 0x98 kqread sshd-session 68669 62169 36216 0 3 0x92 kqread sshd-session 73591 237321 1 0 3 0x100083 ttyin getty 36216 168469 1 0 3 0x88 kqread sshd 18691 13200 5593 73 3 0x1100090 kqread syslogd 5593 295734 1 0 3 0x100082 sbwait syslogd 49369 18191 1 0 3 0x100080 kqread resolvd 49018 12752 65320 77 3 0x100092 kqread dhcpleased 36081 44197 65320 77 3 0x100092 kqread dhcpleased 65320 443688 1 0 3 0x80 kqread dhcpleased 44752 148017 0 0 3 0x14200 bored smr 336 110263 0 0 2 0x14200 zerothread 45648 470792 0 0 3 0x14200 aiodoned aiodoned 75509 318881 0 0 3 0x14200 syncer update 48478 523118 0 0 3 0x14200 cleaner cleaner 25402 235346 0 0 3 0x14200 reaper reaper 38635 191140 0 0 3 0x14200 pgdaemon pagedaemon 14891 262354 0 0 3 0x14200 bored viomb 55188 348332 0 0 3 0x40014200 acpi0 acpi0 25309 19428 0 0 3 0x14200 bored softnet0 28556 344950 0 0 3 0x14200 bored systqmp 77721 128281 0 0 3 0x14200 bored systq 42203 3000 0 0 2 0x40014200 softclock 12594 330781 0 0 3 0x40014200 idle0 1 492897 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 11059 12106K 12372K 166960K 12327 0 pcb 18 12K 12K 166960K 59 0 rtable 243 7K 7K 166960K 389 0 pf 33 13K 14K 166960K 50 0 ifaddr 41 7K 8K 166960K 56 0 ifgroup 50 2K 2K 166960K 77 0 sysctl 1 1K 9K 166960K 6 0 counters 33 17K 18K 166960K 43 0 ioctlops 0 0K 4K 166960K 88 0 iov 0 0K 16K 166960K 15 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1295 82K 82K 166960K 1631 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 10 0K 0K 166960K 13 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 93K 166960K 334 0 sigio 0 0K 0K 166960K 1 0 proc 60 59K 108K 166960K 520 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 16 0 in_multi 102 7K 7K 166960K 112 0 ether_multi 2 0K 0K 166960K 5 0 mrt 0 0K 0K 166960K 10 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 217 970K 970K 166960K 217 0 exec 0 0K 1K 166960K 441 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 239 150K 152K 166960K 4710 0 UVM aobj 6 2K 2K 166960K 7 0 pinsyscall 39 78K 94K 166960K 1395 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 8 0 NDP 11 0K 2K 166960K 34 0 temp 44 9072K 9136K 166960K 8894 0 kqueue 14 22K 28K 166960K 58 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 45 0 42 1 0 1 1 0 8 0 rtentry 136 119 0 10 4 0 4 4 0 8 0 unpcb 144 432 0 412 6 0 6 6 0 8 5 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 736 53 0 46 1 0 1 1 0 8 0 arp 96 18 0 2 1 0 1 1 0 8 0 inpcb 328 238 0 226 7 0 7 7 0 8 6 ip6q 72 2 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 112 28 0 2 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 5 0 5 1 0 1 1 0 8 1 pppxif 1416 3 0 3 1 0 1 1 0 8 1 pfstscr 40 2 0 1 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 6 0 2 1 0 1 1 0 8 0 pfstate 384 3 0 1 1 0 1 1 0 8 0 pfrule 1360 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 488 0 20 30 0 30 30 0 8 0 art_table 40 490 0 20 5 0 5 5 0 8 0 art_node 32 119 0 20 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 1 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 10 0 2 1 0 1 1 0 8 0 shmpl 112 4 0 1 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 1956 0 497 92 0 92 92 0 8 0 ffsino 256 1956 0 497 92 0 92 92 0 8 0 nchpl 144 2451 0 755 64 0 64 64 0 8 0 vnodes 216 2230 0 0 124 0 124 124 0 8 0 namei 1024 7972 0 7972 1 0 1 1 0 8 1 kstatmem 264 36 0 14 2 0 2 2 0 8 0 scxspl 216 18260 0 18260 3 0 3 3 1 8 3 plimitpl 152 323 0 304 1 0 1 1 0 8 0 sigapl 424 618 0 575 6 0 6 6 0 8 1 knotepl 120 10787 0 10490 10 0 10 10 0 8 0 kqueuepl 184 68 0 56 1 0 1 1 0 8 0 pipepl 304 125 0 98 3 0 3 3 0 8 0 fdescpl 448 605 0 575 5 0 5 5 0 8 1 filepl 120 3317 0 3085 13 0 13 13 0 8 5 lockfpl 104 100 0 95 1 0 1 1 0 8 0 lockfspl 48 42 0 39 1 0 1 1 0 8 0 sessionpl 144 64 0 56 1 0 1 1 0 8 0 pgrppl 48 72 0 56 1 0 1 1 0 8 0 ucredpl 104 566 0 554 1 0 1 1 0 8 0 zombiepl 144 576 0 575 1 0 1 1 0 8 0 processpl 1152 618 0 575 4 0 4 4 0 8 0 procpl 664 940 0 883 6 0 6 6 0 8 1 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 552 789 0 754 12 2 10 12 0 8 7 mcl64k 65536 15 0 15 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 1 0 1 1 0 8 1 mcl4k 4096 2805 0 2756 14 0 14 14 0 8 7 mcl2k 2048 278 0 277 3 0 3 3 0 8 2 mtagpl 96 5 0 5 1 0 1 1 0 8 1 mbufpl 256 6560 0 6379 18 0 18 18 0 8 5 bufpl 280 7987 0 1773 444 0 444 444 0 8 0 anonpl 24 148918 0 140879 89 0 89 89 0 187 21 amapchunkpl 152 15182 0 14475 36 0 36 36 0 158 7 amappl16 200 3654 0 3513 42 25 17 39 0 8 5 amappl15 192 9 0 9 1 0 1 1 0 8 1 amappl14 184 404 0 403 1 0 1 1 0 8 0 amappl13 176 110 0 100 1 0 1 1 0 8 0 amappl12 168 837 0 808 2 0 2 2 0 8 0 amappl11 160 7 0 6 1 0 1 1 0 8 0 amappl10 152 81 0 71 1 0 1 1 0 8 0 amappl9 144 243 0 243 1 0 1 1 0 8 1 amappl8 136 119 0 118 1 0 1 1 0 8 0 amappl7 128 146 0 135 1 0 1 1 0 8 0 amappl6 120 153 0 152 1 0 1 1 0 8 0 amappl5 112 105 0 98 1 0 1 1 0 8 0 amappl4 104 251 0 235 1 0 1 1 0 8 0 amappl3 96 2694 0 2577 4 0 4 4 0 8 1 amappl2 88 495 0 441 2 0 2 2 0 8 0 amappl1 80 9561 0 9013 13 0 13 13 0 8 1 amappl 88 4021 0 3845 5 0 5 5 0 92 0 uvmvnodes 80 103 0 0 3 0 3 3 0 8 0 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 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 6 0 1 1 0 1 1 0 8 0 uaddrrnd 24 605 0 575 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 605 0 575 1 0 1 1 0 8 0 vmmpekpl 168 6418 0 6388 2 0 2 2 0 8 0 vmmpepl 168 47139 0 45181 104 0 104 104 0 357 11 vmsppl 368 604 0 575 4 0 4 4 0 8 1 rwobjpl 40 16941 0 15861 17 0 17 17 0 8 4 pdppl 4096 1216 0 1150 96 30 66 80 0 8 0 pvpl 32 323269 0 309285 159 0 159 159 0 265 19 pmappl 216 604 0 575 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 368 0 30 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace ffs2_balloc(fffffd806cc90800,df4000,4000,fffffd8007ffd618,2,ffff8000388dee68) at ffs2_balloc+0xa0a sys/ufs/ffs/ffs_balloc.c:614 ffs_write(ffff8000388deef0) at ffs_write+0x4f9 sys/ufs/ffs/ffs_vnops.c:345 VOP_WRITE(fffffd8068828608,ffff8000388df0a8,7,fffffd8007ffd618) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_write(fffffd806c81a880,ffff8000388df0a8,0) at vn_write+0x1c2 sys/kern/vfs_vnops.c:408 dofilewritev(ffff8000314c07e0,6,ffff8000388df0a8,0,ffff8000388df150) at dofilewritev+0x2bd sys/kern/sys_generic.c:384 sys_write(ffff8000314c07e0,ffff8000388df200,ffff8000388df150) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff8000388df200) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000388df200) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x65f4f15350, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace ffs2_balloc(fffffd806cc90800,df4000,4000,fffffd8007ffd618,2,ffff8000388dee68) at ffs2_balloc+0xa0a sys/ufs/ffs/ffs_balloc.c:614 ffs_write(ffff8000388deef0) at ffs_write+0x4f9 sys/ufs/ffs/ffs_vnops.c:345 VOP_WRITE(fffffd8068828608,ffff8000388df0a8,7,fffffd8007ffd618) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_write(fffffd806c81a880,ffff8000388df0a8,0) at vn_write+0x1c2 sys/kern/vfs_vnops.c:408 dofilewritev(ffff8000314c07e0,6,ffff8000388df0a8,0,ffff8000388df150) at dofilewritev+0x2bd sys/kern/sys_generic.c:384 sys_write(ffff8000314c07e0,ffff8000388df200,ffff8000388df150) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff8000388df200) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000388df200) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x65f4f15350, count: -8