uvm_fault(0xffffffff83a5d180, 0xffff800023a92fa0, 0, 1) -> d kernel: page fault trap, code=0 Stopped at ffs2_balloc+0xa0d: movq 0(%rcx,%rax,8),%r14 TID PID UID PRFLAGS PFLAGS CPU COMMAND *158841 84592 0 0x1000 0x4080000 1K syz-executor 77289 61688 0 0x2 0x1 0 syz-executor ffs2_balloc(fffffd806c5ae968,800000,4000,fffffd80097fd6e8,2,ffff80003c46b7e8) at ffs2_balloc+0xa0d sys/ufs/ffs/ffs_balloc.c:614 ffs_write(ffff80003c46b870) at ffs_write+0x4f9 sys/ufs/ffs/ffs_vnops.c:345 VOP_WRITE(fffffd805a541cc0,ffff80003c46ba28,7,fffffd80097fd6e8) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_write(fffffd806c510368,ffff80003c46ba28,0) at vn_write+0x1d3 sys/kern/vfs_vnops.c:414 dofilewritev(ffff80002a22f240,6,ffff80003c46ba28,0,ffff80003c46bae0) at dofilewritev+0x2bd sys/kern/sys_generic.c:384 sys_write(ffff80002a22f240,ffff80003c46bb90,ffff80003c46bae0) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff80003c46bb90) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c46bb90) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9e066fea1f0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: uvm_fault(0xffffffff83a5d180, 0xffff800023a92fa0, 0, 1) -> d ddb{1}> trace ffs2_balloc(fffffd806c5ae968,800000,4000,fffffd80097fd6e8,2,ffff80003c46b7e8) at ffs2_balloc+0xa0d sys/ufs/ffs/ffs_balloc.c:614 ffs_write(ffff80003c46b870) at ffs_write+0x4f9 sys/ufs/ffs/ffs_vnops.c:345 VOP_WRITE(fffffd805a541cc0,ffff80003c46ba28,7,fffffd80097fd6e8) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 vn_write(fffffd806c510368,ffff80003c46ba28,0) at vn_write+0x1d3 sys/kern/vfs_vnops.c:414 dofilewritev(ffff80002a22f240,6,ffff80003c46ba28,0,ffff80003c46bae0) at dofilewritev+0x2bd sys/kern/sys_generic.c:384 sys_write(ffff80002a22f240,ffff80003c46bb90,ffff80003c46bae0) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff80003c46bb90) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c46bb90) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9e066fea1f0, count: -8 ddb{1}> show registers rdi 0 rsi 0x2 rbp 0xffff80003c46b790 rbx 0 rdx 0xffff8000015f6e00 rcx 0xffff800023a92000 rax 0x1f4 r8 0xffffffffffffffff r9 0xffff80003c46b7e8 r10 0x84fe9426ab0717fe r11 0x5fde25d09706230 r12 0x1 r13 0xffff800000c31800 r14 0xffff80003c46b620 r15 0xfffffd805f436e58 rip 0xffffffff8135106d ffs2_balloc+0xa0d cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c46b610 ss 0x10 ffs2_balloc+0xa0d: movq 0(%rcx,%rax,8),%r14 ddb{1}> show proc PROC (syz-executor) tid=158841 pid=84592 tcnt=2 stat=onproc flags process=1000 proc=4080000 runpri=17, usrpri=82, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a22ea78 scnt=1 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a22ea78,0xffff8000fffecfc0 process=0xffff8000ffff2698 user=0xffff80003c466000, vmspace=0xfffffd80741a2d70 estcpu=32, cpticks=18, pctcpu=0.13, user=0, sys=18, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 40260 237656 38930 0 2 0 syz-executor 40260 222100 38930 0 3 0x4000080 fsleep syz-executor 57923 256334 37082 0 2 0 syz-executor 57923 51492 37082 0 2 0x4000000 syz-executor 24781 472792 1 0 3 0x82 nanoslp getty 8760 208147 25009 0 2 0x10 syz-executor 8760 17835 25009 0 3 0x4000010 smrbar syz-executor 84592 306255 9706 0 3 0x3000 suspend syz-executor *84592 158841 9706 0 7 0x4081000 syz-executor 60301 255040 9769 0 2 0x3000 syz-executor 65806 290073 0 0 3 0x14280 nfsidl nfsio 4928 174171 0 0 3 0x14280 nfsidl nfsio 87493 336670 0 0 3 0x14280 nfsidl nfsio 77847 109941 0 0 3 0x14280 nfsidl nfsio 64324 196218 0 0 3 0x14280 nfsidl nfsio 12684 390623 0 0 3 0x14280 nfsidl nfsio 13636 88305 0 0 3 0x14280 nfsidl nfsio 73552 91942 0 0 3 0x14280 nfsidl nfsio 15950 134247 0 0 3 0x14280 nfsidl nfsio 22556 304047 0 0 3 0x14280 nfsidl nfsio 65990 175787 0 0 3 0x14280 nfsidl nfsio 73612 114246 0 0 3 0x14280 nfsidl nfsio 94082 66632 0 0 3 0x14280 nfsidl nfsio 91251 174932 0 0 3 0x14280 nfsidl nfsio 11712 139156 0 0 3 0x14280 nfsidl nfsio 15621 172706 0 0 3 0x14280 nfsidl nfsio 1955 304770 0 0 3 0x14280 nfsidl nfsio 11484 23841 0 0 3 0x14280 nfsidl nfsio 7444 256282 0 0 3 0x14280 nfsidl nfsio 29471 168370 0 0 3 0x14280 nfsidl nfsio 9706 386677 42538 0 3 0x82 nanoslp syz-executor 7645 435604 42538 0 2 0x2 syz-executor 25009 198738 42538 0 3 0x82 nanoslp syz-executor 38930 495211 42538 0 3 0x82 nanoslp syz-executor 9769 179797 42538 0 3 0x82 nanoslp syz-executor 37082 390806 42538 0 2 0xc82 syz-executor 94782 224429 42538 0 3 0x82 nanoslp syz-executor 61688 77289 42538 0 7 0x3 syz-executor 42538 156724 1 0 3 0x82 kqread syz-executor 76456 236803 1 74 3 0x1100092 bpf pflogd 53956 518029 1 73 3 0x1100090 kqread syslogd 19858 32439 0 0 3 0x14200 bored smr 80205 347620 0 0 3 0x14200 pgzero zerothread 73667 308702 0 0 3 0x14200 aiodoned aiodoned 74100 33050 0 0 3 0x14200 syncer update 13863 490877 0 0 3 0x14200 cleaner cleaner 95281 404327 0 0 3 0x14200 reaper reaper 8550 46762 0 0 3 0x14200 pgdaemon pagedaemon 50547 426974 0 0 3 0x14200 bored viomb 8901 490327 0 0 3 0x40014200 acpi0 acpi0 81648 493448 0 0 3 0x40014200 idle1 88957 72868 0 0 3 0x14200 bored softnet1 60636 231720 0 0 3 0x14200 bored softnet0 40766 247910 0 0 3 0x14200 bored systqmp 59423 113294 0 0 3 0x14200 bored systq 69105 253244 0 0 3 0x14200 tmoslp softclockmp 58305 385032 0 0 3 0x40014200 tmoslp softclock 19340 57065 0 0 3 0x40014200 idle0 1 194640 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 84592 (syz-executor) thread 0xffff80002a22f240 (158841) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83ac9940) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 sleep_finish+0x2d8 sys/kern/kern_synch.c:369 #3 biowait+0xc6 sys/kern/vfs_bio.c:1242 #4 bwrite+0x2e7 sys/kern/vfs_bio.c:754 #5 ffs2_balloc+0x18b4 sys/ufs/ffs/ffs_balloc.c:701 #6 ffs_write+0x4f9 sys/ufs/ffs/ffs_vnops.c:345 #7 VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 #8 vn_write+0x1d3 sys/kern/vfs_vnops.c:414 #9 dofilewritev+0x2bd sys/kern/sys_generic.c:384 #10 sys_write+0xa2 sys/kern/sys_generic.c:300 #11 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #11 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 #12 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806c5aea08) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 rrw_enter+0xc6 sys/kern/kern_rwlock.c:621 #3 VOP_LOCK+0xbd sys/kern/vfs_vops.c:527 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:576 #5 vn_write+0x18f sys/kern/vfs_vnops.c:411 #6 dofilewritev+0x2bd sys/kern/sys_generic.c:384 #7 sys_write+0xa2 sys/kern/sys_generic.c:300 #8 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #8 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11088 12233K 12352K 166960K 12619 0 pcb 19 12K 12K 166960K 62 0 rtable 190 7K 9K 166960K 428 0 pf 40 18K 25K 166960K 137 0 ifaddr 39 6K 8K 166960K 65 0 ifgroup 59 2K 2K 166960K 92 0 sysctl 4 1K 9K 166960K 8 0 counters 72 37K 37K 166960K 108 0 ioctlops 0 0K 4K 166960K 1624 0 iov 0 0K 12K 166960K 18 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1298 82K 82K 166960K 1635 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 33 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 93K 166960K 493 0 sigio 0 0K 0K 166960K 12 0 proc 21 33K 164K 166960K 597 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 0 0K 0K 166960K 76 0 in_multi 81 5K 7K 166960K 123 0 ether_multi 1 0K 0K 166960K 8 0 mrt 1 0K 0K 166960K 20 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 103 466K 466K 166960K 103 0 exec 0 0K 1K 166960K 429 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 172 96K 160K 166960K 6292 0 UVM aobj 13 2K 2K 166960K 15 0 pinsyscall 24 48K 104K 166960K 1637 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 17 0 NDP 13 0K 2K 166960K 42 0 temp 43 9103K 9172K 166960K 28414 0 kqueue 3 4K 29K 166960K 100 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}>