uvm_fault(0xffffffff83a311a8, 0xffff800029435ff8, 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 *511182 68277 0 0x2 0 0 syz-executor ffs_indirtrunc(fffffd806c511e00,fffffffffffffff4,964e0,ffffffffffffffff,0,ffff80002a878bf8) at ffs_indirtrunc+0x689 sys/ufs/ffs/ffs_inode.c:495 ffs_truncate(fffffd806c511e00,0,0,ffffffffffffffff) at ffs_truncate+0x1036 sys/ufs/ffs/ffs_inode.c:297 ufs_inactive(ffff80002a878d50) at ufs_inactive+0x1ff sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd806c656468,ffff80002a7462a0) at VOP_INACTIVE+0xfb sys/kern/vfs_vops.c:498 vput(fffffd806c656468) at vput+0xdc sys/kern/vfs_subr.c:789 VOP_REMOVE(fffffd806c656030,fffffd806c656468,ffff80002a878eb8) at VOP_REMOVE+0x199 sys/kern/vfs_vops.c:336 dounlinkat(ffff80002a7462a0,ffffff9c,7cfa9a574a00,0) at dounlinkat+0x1c4 sys/kern/vfs_syscalls.c:1923 syscall(ffff80002a879020) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a879020) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7cfa9a574eb0, 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(0xffffffff83a311a8, 0xffff800029435ff8, 0, 1) -> d ddb> trace ffs_indirtrunc(fffffd806c511e00,fffffffffffffff4,964e0,ffffffffffffffff,0,ffff80002a878bf8) at ffs_indirtrunc+0x689 sys/ufs/ffs/ffs_inode.c:495 ffs_truncate(fffffd806c511e00,0,0,ffffffffffffffff) at ffs_truncate+0x1036 sys/ufs/ffs/ffs_inode.c:297 ufs_inactive(ffff80002a878d50) at ufs_inactive+0x1ff sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd806c656468,ffff80002a7462a0) at VOP_INACTIVE+0xfb sys/kern/vfs_vops.c:498 vput(fffffd806c656468) at vput+0xdc sys/kern/vfs_subr.c:789 VOP_REMOVE(fffffd806c656030,fffffd806c656468,ffff80002a878eb8) at VOP_REMOVE+0x199 sys/kern/vfs_vops.c:336 dounlinkat(ffff80002a7462a0,ffffff9c,7cfa9a574a00,0) at dounlinkat+0x1c4 sys/kern/vfs_syscalls.c:1923 syscall(ffff80002a879020) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a879020) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7cfa9a574eb0, count: -9 ddb> show registers rdi 0x2 rsi 0x2 rbp 0xffff80002a878ad0 rbx 0x7ff rdx 0 rcx 0xfffffffffffffff4 rax 0xffff800029432000 r8 0xffffffffffffffff r9 0xffff80002a878bf8 r10 0x1595275c71f0c2f6 r11 0x3d328707b03a6a40 r12 0xfffffffffffff7f6 r13 0x1 r14 0x2 r15 0xfffffd806c511e00 rip 0xffffffff82051dc9 ffs_indirtrunc+0x689 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a8789e0 ss 0x10 ffs_indirtrunc+0x689: movq 0(%rax,%rbx,8),%rbx ddb> show proc PROC (syz-executor) tid=511182 pid=68277 tcnt=1 stat=onproc flags process=2 proc=0 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a746d00,0xffff80002a746018 process=0xffff80002a795b10 user=0xffff80002a874000, vmspace=0xfffffd8070a44a18 estcpu=36, cpticks=19, pctcpu=0.2, user=2, sys=17, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 68507 314745 4734 0 2 0 syz-executor 68507 472161 4734 0 3 0x4000080 kqsel syz-executor 18178 100127 52141 0 2 0x1000000 syz-executor 18178 192109 52141 0 3 0x5000080 fsleep syz-executor 98150 521836 88383 0 2 0 syz-executor 98150 415336 88383 0 3 0x4000080 ttyopn syz-executor 28344 87521 17968 0 3 0x82 nanoslp syz-executor 1930 375280 17968 0 3 0x82 wait syz-executor 10919 279173 0 0 3 0x14200 acct acct 4734 105634 17968 0 3 0x82 nanoslp syz-executor 52141 497771 17968 0 3 0x82 nanoslp syz-executor *68277 511182 17968 0 7 0x2 syz-executor 88383 456869 17968 0 3 0x82 nanoslp syz-executor 60055 436230 17968 0 3 0x82 nanoslp syz-executor 17610 451541 17968 0 3 0x82 wait syz-executor 17968 10071 1322 0 3 0x82 kqread syz-executor 1322 60420 40465 0 3 0x10008a sigsusp ksh 40465 357240 70113 0 3 0x98 kqread sshd-session 70113 388606 92591 0 3 0x92 kqread sshd-session 98506 91838 1 0 3 0x100083 ttyopn getty 92591 484195 1 0 3 0x88 kqread sshd 9043 256981 42975 73 3 0x1100090 kqread syslogd 42975 216116 1 0 3 0x100082 sbwait syslogd 45483 112267 1 0 3 0x100080 kqread resolvd 11752 298285 56627 77 3 0x100092 kqread dhcpleased 77599 5742 56627 77 3 0x100092 kqread dhcpleased 56627 15160 1 0 3 0x80 kqread dhcpleased 51839 415708 0 0 3 0x14200 bored smr 33388 5497 0 0 2 0x14200 zerothread 15173 385228 0 0 3 0x14200 aiodoned aiodoned 2514 28498 0 0 3 0x14200 syncer update 47134 77388 0 0 3 0x14200 cleaner cleaner 92047 316370 0 0 3 0x14200 reaper reaper 84658 195423 0 0 3 0x14200 pgdaemon pagedaemon 29427 184175 0 0 3 0x14200 bored viomb 25720 515426 0 0 3 0x40014200 acpi0 acpi0 23431 279125 0 0 3 0x14200 bored softnet0 63330 106393 0 0 3 0x14200 bored systqmp 77249 55585 0 0 3 0x14200 bored systq 60699 492703 0 0 3 0x40014200 tmoslp softclock 18522 396974 0 0 3 0x40014200 idle0 1 504614 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 12241K 12459K 166960K 13328 0 pcb 17 14K 16K 166960K 266 0 rtable 209 7K 8K 166960K 502 0 pf 29 12K 19K 166960K 135 0 ifaddr 37 6K 7K 166960K 90 0 ifgroup 43 1K 2K 166960K 124 0 sysctl 4 1K 9K 166960K 10 0 counters 32 17K 18K 166960K 90 0 ioctlops 0 0K 4K 166960K 292 0 iov 0 0K 12K 166960K 37 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1353 85K 86K 166960K 2262 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 20K 24K 166960K 15 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 72 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 240K 166960K 924 0 sigio 0 0K 0K 166960K 8 0 proc 60 59K 100K 166960K 614 0 subproc 72 4K 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 87 0 in_multi 87 6K 7K 166960K 138 0 ether_multi 1 0K 0K 166960K 5 0 mrt 0 0K 0K 166960K 27 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 472 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 228 164K 190K 166960K 9780 0 UVM aobj 17 2K 2K 166960K 20 0 pinsyscall 38 76K 94K 166960K 2077 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 14 0 NDP 10 0K 2K 166960K 64 0 temp 63 9076K 9142K 166960K 25489 0 kqueue 14 22K 32K 166960K 236 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 92 0 89 1 0 1 1 0 8 0 rtentry 136 159 0 69 4 0 4 4 0 8 0 unpcb 144 571 0 556 5 0 5 5 0 8 4 syncache 336 7 0 7 1 0 1 1 0 8 1 tcpcb 736 310 0 305 7 0 7 7 0 8 6 arp 96 28 0 12 1 0 1 1 0 8 0 ipq 40 4 0 0 1 0 1 1 0 8 0 ipqe 40 4 0 0 1 0 1 1 0 8 0 inpcb 328 877 0 869 12 3 9 12 0 8 8 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 112 37 0 14 1 0 1 1 0 8 0 pkpcb 40 5 0 5 1 0 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1072 53 0 53 1 0 1 1 0 8 1 pppxif 1416 3 0 3 1 0 1 1 0 8 1 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 1 0 0 1 0 1 1 0 8 0 pfsrclim 320 1 0 1 1 0 1 1 0 8 1 pfanchor 1288 7 0 3 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfqueue 320 2 0 2 1 0 1 1 0 8 1 pfstitem 24 26 0 23 1 0 1 1 0 8 0 pfstkey 128 43 0 18 1 0 1 1 0 8 0 pfstate 384 22 0 20 1 0 1 1 0 8 0 pfrule 1360 13 0 12 1 0 1 1 0 8 0 rttmr 136 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 651 0 219 30 0 30 30 0 8 3 art_table 40 653 0 219 5 0 5 5 0 8 0 art_node 32 156 0 75 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 69 0 59 1 0 1 1 0 8 0 shmpl 112 17 0 3 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 3052 0 1599 92 0 92 92 0 8 0 ffsino 256 3052 0 1599 92 0 92 92 0 8 0 nchpl 144 4216 0 2510 64 0 64 64 0 8 0 rtmask 32 17 0 17 1 0 1 1 0 8 1 vnodes 216 3662 0 0 204 0 204 204 0 8 0 namei 1024 13797 0 13797 2 0 2 2 0 8 2 kstatmem 264 86 0 66 2 0 2 2 0 8 0 scsiplug 72 4 0 4 1 0 1 1 0 8 1 scxspl 216 19539 0 19539 8 0 8 8 1 8 8 plimitpl 152 165 0 147 1 0 1 1 0 8 0 sigapl 424 1200 0 1157 6 0 6 6 0 8 0 knotepl 120 44306 0 44257 40 30 10 21 0 8 8 kqueuepl 184 388 0 377 4 0 4 4 0 8 3 pipepl 304 326 0 299 8 0 8 8 0 8 5 fdescpl 448 1186 0 1157 5 0 5 5 0 8 1 filepl 120 6703 0 6484 15 0 15 15 0 8 7 lockfpl 104 416 0 413 2 0 2 2 0 8 1 lockfspl 48 191 0 188 1 0 1 1 0 8 0 sessionpl 144 54 0 45 1 0 1 1 0 8 0 pgrppl 48 73 0 57 1 0 1 1 0 8 0 ucredpl 104 1157 0 1146 1 0 1 1 0 8 0 zombiepl 144 1161 0 1157 1 0 1 1 0 8 0 processpl 1152 1200 0 1157 4 0 4 4 0 8 0 procpl 664 2274 0 2228 6 0 6 6 0 8 0 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 552 1569 0 1543 20 10 10 20 0 8 8 mcl64k 65536 234 0 233 1 0 1 1 0 8 0 mcl16k 16384 44 0 44 1 0 1 1 0 8 1 mcl12k 12288 21 0 21 1 0 1 1 0 8 1 mcl9k 9216 16 0 16 1 0 1 1 0 8 1 mcl8k 8192 40 0 40 1 0 1 1 0 8 1 mcl4k 4096 3833 0 3781 13 0 13 13 0 8 5 mcl2k2 2112 4 0 4 1 0 1 1 0 8 1 mcl2k 2048 787 0 782 4 0 4 4 0 8 3 mtagpl 96 39 0 5 1 0 1 1 0 8 0 mbufpl 256 14310 0 14087 76 54 22 76 0 8 5 bufpl 280 7629 0 1415 444 0 444 444 0 8 0 anonpl 24 239406 0 232075 70 0 70 70 0 187 24 amapchunkpl 152 33095 0 32490 35 0 35 35 0 158 10 amappl16 200 5835 0 5628 33 19 14 24 0 8 2 amappl15 192 4 0 4 1 0 1 1 0 8 1 amappl14 184 433 0 432 1 0 1 1 0 8 0 amappl13 176 129 0 119 1 0 1 1 0 8 0 amappl12 168 1486 0 1457 2 0 2 2 0 8 0 amappl11 160 95 0 95 1 0 1 1 0 8 1 amappl10 152 100 0 90 1 0 1 1 0 8 0 amappl9 144 250 0 250 1 0 1 1 0 8 1 amappl8 136 123 0 121 1 0 1 1 0 8 0 amappl7 128 155 0 144 1 0 1 1 0 8 0 amappl6 120 204 0 203 1 0 1 1 0 8 0 amappl5 112 106 0 98 1 0 1 1 0 8 0 amappl4 104 279 0 264 1 0 1 1 0 8 0 amappl3 96 6397 0 6290 4 0 4 4 0 8 0 amappl2 88 568 0 514 2 0 2 2 0 8 0 amappl1 80 13728 0 13179 15 0 15 15 0 8 2 amappl 88 8861 0 8697 5 0 5 5 0 92 0 uvmvnodes 80 113 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 255 0 255 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 19 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1186 0 1157 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1186 0 1157 1 0 1 1 0 8 0 vmmpekpl 168 11422 0 11387 2 0 2 2 0 8 0 vmmpepl 168 85170 0 83205 100 0 100 100 0 357 11 vmsppl 368 1185 0 1157 4 0 4 4 0 8 1 rwobjpl 40 26468 0 25319 14 0 14 14 0 8 0 pdppl 4096 2378 0 2314 120 54 66 80 0 8 2 pvpl 32 617306 0 601681 152 0 152 152 0 265 22 pmappl 216 1185 0 1157 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 458 0 108 12 0 12 12 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace ffs_indirtrunc(fffffd806c511e00,fffffffffffffff4,964e0,ffffffffffffffff,0,ffff80002a878bf8) at ffs_indirtrunc+0x689 sys/ufs/ffs/ffs_inode.c:495 ffs_truncate(fffffd806c511e00,0,0,ffffffffffffffff) at ffs_truncate+0x1036 sys/ufs/ffs/ffs_inode.c:297 ufs_inactive(ffff80002a878d50) at ufs_inactive+0x1ff sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd806c656468,ffff80002a7462a0) at VOP_INACTIVE+0xfb sys/kern/vfs_vops.c:498 vput(fffffd806c656468) at vput+0xdc sys/kern/vfs_subr.c:789 VOP_REMOVE(fffffd806c656030,fffffd806c656468,ffff80002a878eb8) at VOP_REMOVE+0x199 sys/kern/vfs_vops.c:336 dounlinkat(ffff80002a7462a0,ffffff9c,7cfa9a574a00,0) at dounlinkat+0x1c4 sys/kern/vfs_syscalls.c:1923 syscall(ffff80002a879020) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a879020) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7cfa9a574eb0, count: -9 ddb> machine ddbcpu 1 No such command ddb> trace ffs_indirtrunc(fffffd806c511e00,fffffffffffffff4,964e0,ffffffffffffffff,0,ffff80002a878bf8) at ffs_indirtrunc+0x689 sys/ufs/ffs/ffs_inode.c:495 ffs_truncate(fffffd806c511e00,0,0,ffffffffffffffff) at ffs_truncate+0x1036 sys/ufs/ffs/ffs_inode.c:297 ufs_inactive(ffff80002a878d50) at ufs_inactive+0x1ff sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffffd806c656468,ffff80002a7462a0) at VOP_INACTIVE+0xfb sys/kern/vfs_vops.c:498 vput(fffffd806c656468) at vput+0xdc sys/kern/vfs_subr.c:789 VOP_REMOVE(fffffd806c656030,fffffd806c656468,ffff80002a878eb8) at VOP_REMOVE+0x199 sys/kern/vfs_vops.c:336 dounlinkat(ffff80002a7462a0,ffffff9c,7cfa9a574a00,0) at dounlinkat+0x1c4 sys/kern/vfs_syscalls.c:1923 syscall(ffff80002a879020) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a879020) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7cfa9a574eb0, count: -9