uvm_fault(0xffffffff8355a950, 0xffff800020692030, 0, 1) -> d kernel: page fault trap, code=0 Stopped at ffs2_balloc+0x9fe: movq 0(%rcx,%rax,8),%r14 TID PID UID PRFLAGS PFLAGS CPU COMMAND 217445 43665 0 0 0 0 syz-executor * 39639 92564 0 0x2 0x1 1K syz-executor ffs2_balloc(fffffd806c075cc8,4bc83,68,fffffd807f7d34e0,1,ffff80002a1367b8) at ffs2_balloc+0x9fe sys/ufs/ffs/ffs_balloc.c:614 ffs_write(ffff80002a136840) at ffs_write+0x4f9 sys/ufs/ffs/ffs_vnops.c:345 VOP_WRITE(fffffd8060757c00,ffff80002a1368f8,3,fffffd807f7d34e0) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff800033da4f60,fffffd8060757c00,fffffd807f7d34e0,ffff80002a1369c0,ffff80002a1369a0) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrsyscall(ffff800033da4f60,b,20,ffff80002a136b50) at ktrsyscall+0x31d sys/kern/kern_ktrace.c:182 syscall(ffff80002a136b50) at syscall+0x2eb mi_syscall sys/sys/syscall_mi.h:157 [inline] syscall(ffff80002a136b50) at syscall+0x2eb sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7584130034a0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: uvm_fault(0xffffffff8355a950, 0xffff800020692030, 0, 1) -> d ddb{1}> trace ffs2_balloc(fffffd806c075cc8,4bc83,68,fffffd807f7d34e0,1,ffff80002a1367b8) at ffs2_balloc+0x9fe sys/ufs/ffs/ffs_balloc.c:614 ffs_write(ffff80002a136840) at ffs_write+0x4f9 sys/ufs/ffs/ffs_vnops.c:345 VOP_WRITE(fffffd8060757c00,ffff80002a1368f8,3,fffffd807f7d34e0) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff800033da4f60,fffffd8060757c00,fffffd807f7d34e0,ffff80002a1369c0,ffff80002a1369a0) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrsyscall(ffff800033da4f60,b,20,ffff80002a136b50) at ktrsyscall+0x31d sys/kern/kern_ktrace.c:182 syscall(ffff80002a136b50) at syscall+0x2eb mi_syscall sys/sys/syscall_mi.h:157 [inline] syscall(ffff80002a136b50) at syscall+0x2eb sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7584130034a0, count: -7 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80002a136760 rbx 0 rdx 0 rcx 0xffff800020692000 rax 0x6 r8 0xffffffffffffffff r9 0xffff80002a1367b8 r10 0xd000509356cda490 r11 0x16193ffd0a49c4fc r12 0x10 r13 0x1 r14 0xffffffff r15 0xfffffd8064c5be78 rip 0xffffffff82af31ae ffs2_balloc+0x9fe cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002a1365f0 ss 0x10 ffs2_balloc+0x9fe: movq 0(%rcx,%rax,8),%r14 ddb{1}> show proc PROC (syz-executor) tid=39639 pid=92564 tcnt=1 stat=onproc flags process=2 proc=1 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800033da4a50,0xffff800029fd9968 process=0xffff800033b8ed70 user=0xffff80002a131000, vmspace=0xfffffd806aaa6898 estcpu=36, cpticks=3, pctcpu=0.6, user=1, sys=8, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 99666 137976 92564 0 2 0 syz-executor 8998 187099 76963 0 2 0 syz-executor 8998 31425 76963 0 3 0x4000080 fsleep syz-executor 44217 437914 35614 0 2 0 syz-executor 44217 272534 35614 0 3 0x4000080 fsleep syz-executor 43665 217445 27688 0 7 0 syz-executor 43665 206212 27688 0 3 0x4000080 ttyout syz-executor 43665 357228 27688 0 3 0x4000080 netacc syz-executor 10143 7416 16307 0 2 0 syz-executor 10143 313666 16307 0 3 0x4000080 fsleep syz-executor 10143 442711 16307 0 3 0x4000080 fsleep syz-executor 74190 449509 45760 0 2 0 syz-executor 19213 106570 49852 0 2 0 syz-executor 19213 138741 49852 0 3 0x4000080 ttyin syz-executor 19213 264129 49852 0 3 0x4000080 fsleep syz-executor 90838 389611 61450 0 2 0 syz-executor 90838 363592 61450 0 3 0x4000080 sbwait syz-executor 90838 476742 61450 0 3 0x4000080 fsleep syz-executor 49852 50709 17420 0 3 0x82 nanoslp syz-executor *92564 39639 17420 0 7 0x3 syz-executor 76963 482345 17420 0 2 0x2 syz-executor 45760 256229 17420 0 3 0x82 nanoslp syz-executor 27688 313633 17420 0 2 0x2 syz-executor 35614 92501 17420 0 2 0x2 syz-executor 16307 313973 17420 0 3 0x82 nanoslp syz-executor 61450 284100 17420 0 2 0x2 syz-executor 25124 73339 0 0 3 0x14200 acct acct 93912 135690 1 0 3 0x100083 ttyopn getty 43259 282392 0 0 3 0x14200 bored sosplice 17420 205799 47437 0 2 0x2 syz-executor 47437 279367 49408 0 3 0x10008a sigsusp ksh 49408 38839 20811 0 3 0x98 kqread sshd-session 20811 356119 53224 0 3 0x92 kqread sshd-session 53224 474690 1 0 3 0x88 kqread sshd 34853 440125 87329 74 3 0x1100092 bpf pflogd 87329 70132 1 0 3 0x80 sbwait pflogd 91914 509181 28453 73 2 0x1100010 syslogd 28453 51693 1 0 3 0x100082 sbwait syslogd 75265 244885 1 0 3 0x100080 kqread resolvd 82168 505659 78799 77 3 0x100092 kqread dhcpleased 74973 50360 78799 77 3 0x100092 kqread dhcpleased 78799 92243 1 0 3 0x80 kqread dhcpleased 74924 418765 0 0 2 0x40014200 smr 17574 219649 0 0 2 0x14200 zerothread 26863 395223 0 0 3 0x14200 aiodoned aiodoned 3995 422603 0 0 3 0x14200 syncer update 48868 452509 0 0 3 0x14200 cleaner cleaner 17409 202802 0 0 3 0x14200 reaper reaper 84347 438632 0 0 3 0x14200 pgdaemon pagedaemon 49635 419526 0 0 3 0x14200 bored viomb 55082 15492 0 0 3 0x40014200 acpi0 acpi0 88436 461323 0 0 3 0x40014200 idle1 95965 243190 0 0 3 0x14200 bored softnet3 97055 433821 0 0 3 0x14200 bored softnet2 9205 238848 0 0 3 0x14200 bored softnet1 51584 184882 0 0 3 0x14200 bored softnet0 83056 244051 0 0 3 0x14200 bored systqmp 83704 296847 0 0 3 0x14200 bored systq 11771 493344 0 0 3 0x14200 tmoslp softclockmp 95831 15642 0 0 3 0x40014200 tmoslp softclock 60833 248171 0 0 3 0x40014200 idle0 1 276869 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 92564 (syz-executor) thread 0xffff800033da4f60 (39639) exclusive rrwlock inode r = 0 (0xfffffd806c075d60) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 vget+0x2bd sys/kern/vfs_subr.c:676 #6 ktrwriteraw+0x172 sys/kern/kern_ktrace.c:679 #7 ktrsyscall+0x31d sys/kern/kern_ktrace.c:182 #8 syscall+0x2eb mi_syscall sys/sys/syscall_mi.h:157 [inline] #8 syscall+0x2eb sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83513ac8) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 syscall+0x2cc mi_syscall sys/sys/syscall_mi.h:156 [inline] #1 syscall+0x2cc sys/arch/amd64/amd64/trap.c:577 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10226 10426K 10426K 166960K 11807 0 pcb 18 14K 16K 166960K 281 0 rtable 247 7K 7K 166960K 660 0 pf 35 17K 25K 166960K 85 0 ifaddr 44 7K 7K 166960K 88 0 ifgroup 55 2K 2K 166960K 117 0 sysctl 2 0K 0K 166960K 2 0 counters 64 36K 36K 166960K 96 0 ioctlops 0 0K 4K 166960K 1521 0 iov 1 2K 28K 166960K 75 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1396 88K 88K 166960K 1822 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 7 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 21 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 18 65K 97K 166960K 661 0 sigio 0 0K 0K 166960K 9 0 proc 72 91K 140K 166960K 788 0 subproc 104 6K 6K 166960K 208 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 41 0 in_multi 103 7K 7K 166960K 198 0 ether_multi 1 0K 0K 166960K 5 0 mrt 0 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 507 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 236 73K 87K 166960K 7168 0 UVM aobj 11 2K 4K 166960K 14 0 pinsyscall 43 86K 108K 166960K 1942 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 32 0 NDP 12 0K 2K 166960K 60 0 temp 44 6815K 6927K 166960K 32439 0 kqueue 14 22K 30K 166960K 96 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 77 0 74 1 0 1 1 0 8 0 rtentry 112 217 0 102 4 0 4 4 0 8 0 unpcb 144 561 0 540 7 3 4 4 0 8 1 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 120 0 116 3 1 2 2 0 8 1 arp 120 37 0 19 1 0 1 1 0 8 0 inpcb 336 745 0 735 11 6 5 7 0 8 3 nd6 136 53 0 29 1 0 1 1 0 8 0 pkpcb 40 4 0 4 3 2 1 1 0 8 1 kcovpl 48 16 0 8 1 0 1 1 0 8 0 ppxss 1168 4 0 4 2 2 0 1 0 8 0 pffrag 232 3 0 1 1 0 1 1 0 482 0 pffrnode 88 3 0 1 1 0 1 1 0 8 0 pffrent 40 6 0 4 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 63 0 17 1 0 1 1 0 8 0 pfstkey 128 63 0 17 2 0 2 2 0 8 0 pfstate 376 62 0 17 5 0 5 5 0 8 0 pfrule 1344 22 0 16 2 0 2 2 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 857 0 396 29 0 29 29 0 8 0 art_table 32 860 0 396 4 0 4 4 0 8 0 art_node 16 216 0 112 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 2 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 18 0 8 1 0 1 1 0 8 0 shmpl 112 11 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2286 0 765 96 0 96 96 0 8 0 ffsino 272 2286 0 765 102 0 102 102 0 8 0 nchpl 144 3087 0 1390 64 0 64 64 0 8 0 uvmvnodes 80 2731 0 0 56 0 56 56 0 8 0 vnodes 216 2731 0 0 152 0 152 152 0 8 0 namei 1024 10895 0 10895 3 2 1 2 0 8 1 percpumem 16 62 0 16 1 0 1 1 0 8 0 kstatmem 264 56 0 32 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 11578 0 11578 11 3 8 8 1 8 8 plimitpl 152 174 0 156 1 0 1 1 0 8 0 sigapl 424 946 0 894 8 2 6 7 0 8 0 futexpl 64 6494 0 6488 1 0 1 1 0 8 0 knotepl 120 587 0 0 18 0 18 18 0 8 0 kqueuepl 216 139 0 129 1 0 1 1 0 8 0 pipepl 320 202 0 175 5 2 3 5 0 8 0 fdescpl 496 926 0 894 7 2 5 6 0 8 0 filepl 152 5003 0 4744 19 6 13 16 0 8 0 lockfpl 104 146 0 144 1 0 1 1 0 8 0 lockfspl 48 69 0 67 1 0 1 1 0 8 0 sessionpl 144 31 0 22 1 0 1 1 0 8 0 pgrppl 48 56 0 39 1 0 1 1 0 8 0 ucredpl 104 711 0 697 1 0 1 1 0 8 0 zombiepl 144 894 0 894 2 1 1 1 0 8 1 processpl 1160 946 0 894 5 1 4 5 0 8 0 procpl 648 1658 0 1596 8 1 7 7 0 8 0 srpgc 96 2 0 2 1 1 0 1 0 8 0 sockpl 664 1393 0 1359 19 10 9 14 0 8 4 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 237 0 0 30 0 30 30 0 8 0 mtagpl 96 10 0 0 1 0 1 1 0 8 0 mbufpl 256 302 0 0 17 0 17 17 0 8 0 bufpl 280 6727 0 553 442 0 442 442 0 8 0 anonpl 24 200769 0 196876 66 12 54 55 0 185 19 amapchunkpl 152 23140 0 22634 37 4 33 33 0 158 10 amappl16 200 5232 0 5212 32 25 7 15 0 8 5 amappl15 192 4 0 4 2 2 0 1 0 8 0 amappl14 184 133 0 121 1 0 1 1 0 8 0 amappl13 176 10 0 9 1 0 1 1 0 8 0 amappl12 168 1702 0 1671 3 1 2 2 0 8 0 amappl11 160 70 0 56 1 0 1 1 0 8 0 amappl10 152 7 0 7 1 1 0 1 0 8 0 amappl9 144 134 0 134 1 1 0 1 0 8 0 amappl8 136 24 0 21 1 0 1 1 0 8 0 amappl7 128 123 0 111 1 0 1 1 0 8 0 amappl6 120 251 0 249 1 0 1 1 0 8 0 amappl5 112 167 0 155 1 0 1 1 0 8 0 amappl4 104 335 0 315 1 0 1 1 0 8 0 amappl3 96 4740 0 4633 4 0 4 4 0 8 0 amappl2 88 784 0 716 2 0 2 2 0 8 0 amappl1 80 9594 0 9027 15 2 13 15 0 8 0 amappl 88 6703 0 6530 5 0 5 5 0 92 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 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 8 0 8 2 2 0 1 0 8 0 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 13 0 3 1 0 1 1 0 8 0 uaddrrnd 24 926 0 894 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 926 0 894 1 0 1 1 0 8 0 vmmpekpl 168 8638 0 8595 3 0 3 3 0 8 0 vmmpepl 168 64566 0 62695 100 11 89 95 0 357 6 vmsppl 440 925 0 894 6 2 4 5 0 8 0 rwobjpl 56 24304 0 20645 53 1 52 52 0 8 0 pdppl 4096 1859 0 1788 115 42 73 87 0 8 2 pvpl 32 28088 0 0 229 2 227 228 0 265 0 pmappl 248 925 0 894 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 421 0 56 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83464ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff835138c0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835138c0) at __mp_lock+0x192 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x724654eee4f0, count: 9 ddb{0}> trace x86_ipi_db(ffffffff83464ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff835138c0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835138c0) at __mp_lock+0x192 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x724654eee4f0, count: -6 ddb{0}> machine ddbcpu 1 Stopped at ffs2_balloc+0x9fe: movq 0(%rcx,%rax,8),%r14 ffs2_balloc(fffffd806c075cc8,4bc83,68,fffffd807f7d34e0,1,ffff80002a1367b8) at ffs2_balloc+0x9fe sys/ufs/ffs/ffs_balloc.c:614 ffs_write(ffff80002a136840) at ffs_write+0x4f9 sys/ufs/ffs/ffs_vnops.c:345 VOP_WRITE(fffffd8060757c00,ffff80002a1368f8,3,fffffd807f7d34e0) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff800033da4f60,fffffd8060757c00,fffffd807f7d34e0,ffff80002a1369c0,ffff80002a1369a0) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrsyscall(ffff800033da4f60,b,20,ffff80002a136b50) at ktrsyscall+0x31d sys/kern/kern_ktrace.c:182 syscall(ffff80002a136b50) at syscall+0x2eb mi_syscall sys/sys/syscall_mi.h:157 [inline] syscall(ffff80002a136b50) at syscall+0x2eb sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7584130034a0, count: 8 ddb{1}> trace ffs2_balloc(fffffd806c075cc8,4bc83,68,fffffd807f7d34e0,1,ffff80002a1367b8) at ffs2_balloc+0x9fe sys/ufs/ffs/ffs_balloc.c:614 ffs_write(ffff80002a136840) at ffs_write+0x4f9 sys/ufs/ffs/ffs_vnops.c:345 VOP_WRITE(fffffd8060757c00,ffff80002a1368f8,3,fffffd807f7d34e0) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff800033da4f60,fffffd8060757c00,fffffd807f7d34e0,ffff80002a1369c0,ffff80002a1369a0) at ktrwriteraw+0x1bc sys/kern/kern_ktrace.c:682 ktrsyscall(ffff800033da4f60,b,20,ffff80002a136b50) at ktrsyscall+0x31d sys/kern/kern_ktrace.c:182 syscall(ffff80002a136b50) at syscall+0x2eb mi_syscall sys/sys/syscall_mi.h:157 [inline] syscall(ffff80002a136b50) at syscall+0x2eb sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7584130034a0, count: -7