uvm_fault(0xffffffff839859e8, 0xffff800027465ff8, 0, 1) -> d kernel: page fault trap, code=0 Stopped at ffs_indirtrunc+0x689: movq 0(%rax,%rbx,8),%rbx TID PID UID PRFLAGS PFLAGS CPU COMMAND *449358 82244 0 0x2 0 0 syz-executor ffs_indirtrunc(fffffd806bdf9b00,fffffffffffffff4,133180,ffffffffffffffff,0,ffff80002a8599f8) at ffs_indirtrunc+0x689 sys/ufs/ffs/ffs_inode.c:495 ffs_truncate(fffffd806bdf9b00,0,0,ffffffffffffffff) at ffs_truncate+0x1036 sys/ufs/ffs/ffs_inode.c:297 ufs_inactive(ffff80002a859b50) at ufs_inactive+0x1ff sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8065f02e70,ffff80002a747c90) at VOP_INACTIVE+0xfb sys/kern/vfs_vops.c:498 vput(fffffd8065f02e70) at vput+0xdc sys/kern/vfs_subr.c:789 VOP_REMOVE(fffffd8065f02b10,fffffd8065f02e70,ffff80002a859cb8) at VOP_REMOVE+0x199 sys/kern/vfs_vops.c:336 dounlinkat(ffff80002a747c90,ffffff9c,77875a1dfea0,0) at dounlinkat+0x1c4 sys/kern/vfs_syscalls.c:1923 syscall(ffff80002a859e20) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a859e20) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77875a1e0350, count: 6 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(0xffffffff839859e8, 0xffff800027465ff8, 0, 1) -> d ddb> trace ffs_indirtrunc(fffffd806bdf9b00,fffffffffffffff4,133180,ffffffffffffffff,0,ffff80002a8599f8) at ffs_indirtrunc+0x689 sys/ufs/ffs/ffs_inode.c:495 ffs_truncate(fffffd806bdf9b00,0,0,ffffffffffffffff) at ffs_truncate+0x1036 sys/ufs/ffs/ffs_inode.c:297 ufs_inactive(ffff80002a859b50) at ufs_inactive+0x1ff sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8065f02e70,ffff80002a747c90) at VOP_INACTIVE+0xfb sys/kern/vfs_vops.c:498 vput(fffffd8065f02e70) at vput+0xdc sys/kern/vfs_subr.c:789 VOP_REMOVE(fffffd8065f02b10,fffffd8065f02e70,ffff80002a859cb8) at VOP_REMOVE+0x199 sys/kern/vfs_vops.c:336 dounlinkat(ffff80002a747c90,ffffff9c,77875a1dfea0,0) at dounlinkat+0x1c4 sys/kern/vfs_syscalls.c:1923 syscall(ffff80002a859e20) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a859e20) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77875a1e0350, count: -9 ddb> show registers rdi 0x2 rsi 0x2 rbp 0xffff80002a8598d0 rbx 0x7ff rdx 0 rcx 0xfffffffffffffff4 rax 0xffff800027462000 r8 0xffffffffffffffff r9 0xffff80002a8599f8 r10 0x179418cb1c969ede r11 0x20fb840b0e0b059d r12 0xfffffffffffff7f6 r13 0x1 r14 0x2 r15 0xfffffd806bdf9b00 rip 0xffffffff810d2ba9 ffs_indirtrunc+0x689 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a8597e0 ss 0x10 ffs_indirtrunc+0x689: movq 0(%rax,%rbx,8),%rbx ddb> show proc PROC (syz-executor) tid=449358 pid=82244 tcnt=1 stat=onproc flags process=2 proc=0 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a746d00,0xffff80002a746018 process=0xffff80002a785b10 user=0xffff80002a854000, vmspace=0xfffffd8074e2b008 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 73925 134140 0 0 3 0x14200 acct acct 93052 453522 50411 0 2 0xc80 syz-executor 93052 152729 50411 0 3 0x4000080 kqpoll syz-executor 93052 228335 50411 0 3 0x4000080 fsleep syz-executor 76415 289870 17035 0 2 0xc80 syz-executor 76415 388593 17035 0 3 0x4000080 pipewr syz-executor 76415 76807 17035 0 3 0x4000080 pipewr syz-executor 76415 471074 17035 0 3 0x4000080 fsleep syz-executor 62082 415258 35970 0 3 0x80 nanoslp syz-executor 62082 158326 35970 0 3 0x4000080 sbwait syz-executor 62082 477221 35970 0 3 0x4000080 fsleep syz-executor 38687 29276 89402 0 3 0x82 wait syz-executor 61086 318892 89402 0 3 0x82 wait syz-executor 50411 4496 89402 0 2 0xc82 syz-executor *82244 449358 89402 0 7 0x2 syz-executor 35970 232146 89402 0 3 0x82 nanoslp syz-executor 17035 11609 89402 0 3 0x82 nanoslp syz-executor 89402 476737 94433 0 3 0x82 wait syz-executor 94433 398082 1357 0 3 0x10008a sigsusp ksh 1357 148015 68501 0 3 0x98 kqread sshd-session 68501 389894 32368 0 3 0x92 kqread sshd-session 48592 418157 1 0 3 0x100083 ttyin getty 32368 459203 1 0 3 0x88 kqread sshd 2520 312493 17792 73 3 0x1100090 kqread syslogd 17792 115335 1 0 3 0x100082 sbwait syslogd 85030 328745 1 0 3 0x100080 kqread resolvd 77220 490777 35812 77 3 0x100092 kqread dhcpleased 44129 152499 35812 77 3 0x100092 kqread dhcpleased 35812 496595 1 0 3 0x80 kqread dhcpleased 84207 375411 0 0 3 0x14200 bored smr 34042 9080 0 0 2 0x14200 zerothread 60578 6757 0 0 3 0x14200 aiodoned aiodoned 59017 472114 0 0 3 0x14200 syncer update 55227 26196 0 0 3 0x14200 cleaner cleaner 30268 54401 0 0 3 0x14200 reaper reaper 83197 296977 0 0 3 0x14200 pgdaemon pagedaemon 34162 90711 0 0 3 0x14200 bored viomb 71153 259823 0 0 3 0x40014200 acpi0 acpi0 12264 13020 0 0 3 0x14200 bored softnet0 58209 172519 0 0 3 0x14200 bored systqmp 41402 504923 0 0 3 0x14200 bored systq 10316 183662 0 0 3 0x40014200 tmoslp softclock 63544 76808 0 0 3 0x40014200 idle0 1 49296 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 11072 12172K 14227K 166960K 13700 0 pcb 17 16K 18K 166960K 236 0 rtable 230 9K 9K 166960K 506 0 pf 34 13K 19K 166960K 163 0 ifaddr 37 6K 7K 166960K 65 0 ifgroup 50 2K 2K 166960K 83 0 sysctl 4 1K 9K 166960K 10 0 counters 33 17K 18K 166960K 52 0 ioctlops 0 0K 4K 166960K 266 0 iov 0 0K 16K 166960K 23 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1487 93K 94K 166960K 2114 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 11 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 90 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 14 49K 236K 166960K 657 0 sigio 0 0K 0K 166960K 43 0 proc 60 59K 116K 166960K 607 0 subproc 63 3K 4K 166960K 90 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 120 0 in_multi 86 6K 7K 166960K 128 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 18 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 480 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 203 135K 163K 166960K 7388 0 UVM aobj 48 8K 8K 166960K 49 0 pinsyscall 35 70K 95K 166960K 1789 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 12 0 NDP 11 0K 1K 166960K 43 0 temp 69 9075K 9142K 166960K 22539 0 kqueue 15 24K 30K 166960K 103 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 143 0 140 3 2 1 3 0 8 0 rtentry 136 148 0 51 4 0 4 4 0 8 0 unpcb 144 596 0 579 5 1 4 4 0 8 3 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpcb 736 316 0 312 10 6 4 7 0 8 3 arp 96 26 0 9 1 0 1 1 0 8 0 ipq 40 3 0 1 2 1 1 1 0 8 0 ipqe 40 5 0 3 2 1 1 1 0 8 0 inpcb 328 813 0 804 21 12 9 15 0 8 8 ip6q 72 4 0 2 1 0 1 1 0 8 0 ip6af 40 6 0 4 1 0 1 1 0 8 0 nd6 112 35 0 12 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 kcovpl 48 10 0 3 1 0 1 1 0 8 0 ppxss 1072 15 0 15 2 1 1 1 0 8 1 pppxif 1416 1 0 1 1 1 0 1 0 8 0 pfstscr 40 2 0 0 1 0 1 1 0 8 0 pfsrclim 320 2 0 2 2 1 1 1 0 8 1 pfanchor 1288 4 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 320 1 0 0 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 9 0 5 1 0 1 1 0 8 0 pfstate 384 5 0 3 1 0 1 1 0 8 0 pfrule 1360 4 0 4 2 1 1 1 0 8 1 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 567 0 155 31 5 26 29 0 8 0 art_table 40 568 0 155 5 0 5 5 0 8 0 art_node 32 146 0 58 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 2 1 0 1 1 0 8 0 semapl 112 88 0 78 1 0 1 1 0 8 0 shmpl 112 46 0 1 2 0 2 2 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2470 0 1007 92 0 92 92 0 8 0 ffsino 256 2471 0 1008 92 0 92 92 0 8 0 nchpl 144 3380 0 1676 64 0 64 64 0 8 0 rtmask 32 3 0 3 2 1 1 1 0 8 1 vnodes 216 3135 0 0 175 0 175 175 0 8 0 namei 1024 11375 0 11375 3 2 1 2 0 8 1 kstatmem 264 47 0 24 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 16233 0 16233 15 7 8 8 1 8 8 plimitpl 152 341 0 325 1 0 1 1 0 8 0 sigapl 424 933 0 892 6 1 5 6 0 8 0 knotepl 120 24500 0 24449 31 19 12 19 0 8 8 kqueuepl 184 161 0 150 1 0 1 1 0 8 0 pipepl 304 171 0 143 3 0 3 3 0 8 0 fdescpl 448 919 0 893 5 1 4 5 0 8 0 filepl 120 5660 0 5453 15 2 13 13 0 8 3 lockfpl 104 202 0 200 1 0 1 1 0 8 0 lockfspl 48 89 0 87 1 0 1 1 0 8 0 sessionpl 144 40 0 30 1 0 1 1 0 8 0 pgrppl 48 60 0 42 1 0 1 1 0 8 0 ucredpl 104 744 0 733 1 0 1 1 0 8 0 zombiepl 144 896 0 892 2 1 1 1 0 8 0 processpl 1152 933 0 892 4 0 4 4 0 8 0 procpl 664 1677 0 1629 7 1 6 6 0 8 1 sosppl 176 1 0 1 1 1 0 1 0 8 0 sockpl 552 1571 0 1542 20 9 11 15 0 8 8 mcl64k 65536 18 0 17 2 1 1 1 0 8 0 mcl8k 8192 4 0 4 1 1 0 1 0 8 0 mcl4k 4096 3165 0 3113 16 8 8 15 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 536 0 532 3 1 2 2 0 8 1 mtagpl 96 45 0 7 1 0 1 1 0 8 0 mbufpl 256 9721 0 9513 30 13 17 26 0 8 2 bufpl 280 7556 0 1342 444 0 444 444 0 8 0 anonpl 24 169662 0 166583 50 5 45 45 0 187 16 amapchunkpl 152 25320 0 24907 41 7 34 34 0 158 13 amappl16 200 3050 0 3021 8 3 5 8 0 8 0 amappl15 192 11 0 11 1 1 0 1 0 8 0 amappl14 184 447 0 445 1 0 1 1 0 8 0 amappl13 176 194 0 184 1 0 1 1 0 8 0 amappl12 168 1163 0 1138 2 0 2 2 0 8 0 amappl11 160 7 0 7 1 1 0 1 0 8 0 amappl10 152 80 0 70 1 0 1 1 0 8 0 amappl9 144 263 0 263 1 1 0 1 0 8 0 amappl8 136 127 0 124 1 0 1 1 0 8 0 amappl7 128 146 0 134 1 0 1 1 0 8 0 amappl6 120 167 0 165 1 0 1 1 0 8 0 amappl5 112 179 0 171 1 0 1 1 0 8 0 amappl4 104 259 0 242 1 0 1 1 0 8 0 amappl3 96 4690 0 4595 5 1 4 4 0 8 0 amappl2 88 551 0 495 2 0 2 2 0 8 0 amappl1 80 11624 0 11091 15 2 13 15 0 8 0 amappl 88 6568 0 6427 5 0 5 5 0 92 0 uvmvnodes 80 118 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 7 0 7 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 1 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 48 0 1 1 0 1 1 0 8 0 uaddrrnd 24 919 0 893 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 919 0 893 1 0 1 1 0 8 0 vmmpekpl 168 8594 0 8547 3 0 3 3 0 8 0 vmmpepl 168 65768 0 64116 93 9 84 92 0 357 1 vmsppl 368 918 0 893 4 1 3 4 0 8 0 rwobjpl 40 20229 0 19249 13 1 12 13 0 8 0 pdppl 4096 1844 0 1786 106 40 66 82 0 8 8 pvpl 32 438647 0 430267 118 6 112 112 0 265 25 pmappl 216 918 0 893 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 406 0 83 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace ffs_indirtrunc(fffffd806bdf9b00,fffffffffffffff4,133180,ffffffffffffffff,0,ffff80002a8599f8) at ffs_indirtrunc+0x689 sys/ufs/ffs/ffs_inode.c:495 ffs_truncate(fffffd806bdf9b00,0,0,ffffffffffffffff) at ffs_truncate+0x1036 sys/ufs/ffs/ffs_inode.c:297 ufs_inactive(ffff80002a859b50) at ufs_inactive+0x1ff sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8065f02e70,ffff80002a747c90) at VOP_INACTIVE+0xfb sys/kern/vfs_vops.c:498 vput(fffffd8065f02e70) at vput+0xdc sys/kern/vfs_subr.c:789 VOP_REMOVE(fffffd8065f02b10,fffffd8065f02e70,ffff80002a859cb8) at VOP_REMOVE+0x199 sys/kern/vfs_vops.c:336 dounlinkat(ffff80002a747c90,ffffff9c,77875a1dfea0,0) at dounlinkat+0x1c4 sys/kern/vfs_syscalls.c:1923 syscall(ffff80002a859e20) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a859e20) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77875a1e0350, count: -9 ddb> machine ddbcpu 1 No such command ddb> trace ffs_indirtrunc(fffffd806bdf9b00,fffffffffffffff4,133180,ffffffffffffffff,0,ffff80002a8599f8) at ffs_indirtrunc+0x689 sys/ufs/ffs/ffs_inode.c:495 ffs_truncate(fffffd806bdf9b00,0,0,ffffffffffffffff) at ffs_truncate+0x1036 sys/ufs/ffs/ffs_inode.c:297 ufs_inactive(ffff80002a859b50) at ufs_inactive+0x1ff sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd8065f02e70,ffff80002a747c90) at VOP_INACTIVE+0xfb sys/kern/vfs_vops.c:498 vput(fffffd8065f02e70) at vput+0xdc sys/kern/vfs_subr.c:789 VOP_REMOVE(fffffd8065f02b10,fffffd8065f02e70,ffff80002a859cb8) at VOP_REMOVE+0x199 sys/kern/vfs_vops.c:336 dounlinkat(ffff80002a747c90,ffffff9c,77875a1dfea0,0) at dounlinkat+0x1c4 sys/kern/vfs_syscalls.c:1923 syscall(ffff80002a859e20) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a859e20) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77875a1e0350, count: -9