login: uvm_fault(0xffffffff839f2718, 0xffff800019845ff8, 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 *336123 81686 0 0x1004 0 0 syz-executor ffs_indirtrunc(fffff7006d65e800,fffffffffffffff4,965a0,ffffffffffffffff,0,ffff80002f0f0818) at ffs_indirtrunc+0x689 sys/ufs/ffs/ffs_inode.c:495 ffs_truncate(fffff7006d65e800,0,0,ffffffffffffffff) at ffs_truncate+0x1036 sys/ufs/ffs/ffs_inode.c:297 ufs_inactive(ffff80002f0f0970) at ufs_inactive+0x1ff sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffff7006d5aee90,ffff80002a737230) at VOP_INACTIVE+0xfb sys/kern/vfs_vops.c:498 vrele(fffff7006d5aee90) at vrele+0x120 sys/kern/vfs_subr.c:843 uvm_unmap_detach(ffff80002f0f0a88,0) at uvm_unmap_detach+0x15e sys/uvm/uvm_map.c:1370 uvmspace_exec(ffff80002a737230,1000,7f7fffffc000) at uvmspace_exec+0x451 sys/uvm/uvm_map.c:3404 sys_execve(ffff80002a737230,ffff80002f0f1110,ffff80002f0f1060) at sys_execve+0xc61 sys/kern/kern_exec.c:474 syscall(ffff80002f0f1110) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f0f1110) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c2adfd6fff0, count: 5 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(0xffffffff839f2718, 0xffff800019845ff8, 0, 1) -> d ddb> show kasan No such command ddb> trace ffs_indirtrunc(fffff7006d65e800,fffffffffffffff4,965a0,ffffffffffffffff,0,ffff80002f0f0818) at ffs_indirtrunc+0x689 sys/ufs/ffs/ffs_inode.c:495 ffs_truncate(fffff7006d65e800,0,0,ffffffffffffffff) at ffs_truncate+0x1036 sys/ufs/ffs/ffs_inode.c:297 ufs_inactive(ffff80002f0f0970) at ufs_inactive+0x1ff sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffff7006d5aee90,ffff80002a737230) at VOP_INACTIVE+0xfb sys/kern/vfs_vops.c:498 vrele(fffff7006d5aee90) at vrele+0x120 sys/kern/vfs_subr.c:843 uvm_unmap_detach(ffff80002f0f0a88,0) at uvm_unmap_detach+0x15e sys/uvm/uvm_map.c:1370 uvmspace_exec(ffff80002a737230,1000,7f7fffffc000) at uvmspace_exec+0x451 sys/uvm/uvm_map.c:3404 sys_execve(ffff80002a737230,ffff80002f0f1110,ffff80002f0f1060) at sys_execve+0xc61 sys/kern/kern_exec.c:474 syscall(ffff80002f0f1110) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f0f1110) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c2adfd6fff0, count: -10 ddb> show registers rdi 0x2 rsi 0x2 rbp 0xffff80002f0f06f0 rbx 0x7ff rdx 0 rcx 0xfffffffffffffff4 rax 0xffff800019842000 r8 0xffffffffffffffff r9 0xffff80002f0f0818 r10 0x58c148a88b396e45 r11 0xa1411289300f2769 r12 0xfffffffffffff7f6 r13 0x1 r14 0x2 r15 0xfffff7006d65e800 rip 0xffffffff830f3559 ffs_indirtrunc+0x689 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002f0f0600 ss 0x10 ffs_indirtrunc+0x689: movq 0(%rax,%rbx,8),%rbx ddb> show proc PROC (syz-executor) tid=336123 pid=81686 tcnt=1 stat=onproc flags process=1004 proc=0 runpri=86, usrpri=86, slppri=24, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a737230 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000380cb4e0,0xffffffff83addbc0 process=0xffff800045ff9f98 user=0xffff80002f0ec000, vmspace=0xfffff7006d193740 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND *81686 336123 1 0 7 0x1004 0 syz-executor 20307 175771 0 0 3 0x14000 0x200 acct acct 5979 312067 1 0 3 0x100003 0x80 ttyin getty 1988 351450 1 0 2 0x2 0xc80 syz-executor 6082 306604 1 0 3 0x2 0x88 kqread sshd 81698 88487 20192 73 3 0x1100010 0x80 kqread syslogd 20192 443669 1 0 3 0x100002 0x80 sbwait syslogd 83003 211781 1 0 3 0x100000 0x80 kqread resolvd 37302 94372 80748 77 3 0x100012 0x80 kqread dhcpleased 8950 520325 80748 77 3 0x100012 0x80 kqread dhcpleased 80748 241414 1 0 3 0 0x80 kqread dhcpleased 24903 378274 0 0 3 0x14000 0x200 bored smr 85341 391228 0 0 2 0x14000 0x200 zerothread 69611 503818 0 0 3 0x14000 0x200 aiodoned aiodoned 7036 124232 0 0 3 0x14000 0x200 syncer update 76845 75836 0 0 3 0x14000 0x200 cleaner cleaner 64135 28191 0 0 3 0x14000 0x200 reaper reaper 75769 21807 0 0 3 0x14000 0x200 pgdaemon pagedaemon 55324 282138 0 0 3 0x14000 0x200 bored viomb 13721 359569 0 0 3 0x14000 0x40000200 acpi0 acpi0 23334 111998 0 0 3 0x14000 0x200 bored softnet0 83320 69251 0 0 3 0x14000 0x200 smrbar systqmp 68217 215560 0 0 3 0x14000 0x200 bored systq 58429 140864 0 0 3 0x14000 0x40000200 tmoslp softclock 35285 60690 0 0 3 0x14000 0x40000200 idle0 1 405331 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11013 12089K 12642K 166960K 13054 0 pcb 17 12K 12K 166960K 121 0 rtable 69 3K 9K 166960K 541 0 pf 15 10K 18K 166960K 87 0 ifaddr 10 1K 7K 166960K 64 0 ifgroup 17 1K 2K 166960K 93 0 sysctl 3 1K 9K 166960K 9 0 counters 25 16K 17K 166960K 45 0 ioctlops 0 0K 4K 166960K 231 0 iov 0 0K 24K 166960K 126 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1325 83K 83K 166960K 2003 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 15 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 53 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 4 9K 89K 166960K 906 0 sigio 0 0K 0K 166960K 10 0 proc 60 59K 91K 166960K 675 0 subproc 9 0K 4K 166960K 91 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 98 0 in_multi 8 0K 7K 166960K 168 0 ether_multi 1 0K 0K 166960K 6 0 mrt 0 0K 0K 166960K 22 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 1 0K 1K 166960K 507 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 102 74K 170K 166960K 9367 0 UVM aobj 22 2K 4K 166960K 26 0 pinsyscall 21 42K 93K 166960K 2188 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 30 0 NDP 3 0K 2K 166960K 42 0 temp 16 9110K 9182K 166960K 37710 0 kqueue 10 14K 28K 166960K 173 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 80 0 77 1 0 1 1 0 8 0 rtentry 136 156 0 143 4 0 4 4 0 8 1 unpcb 144 540 0 528 4 0 4 4 0 8 3 syncache 336 16 0 16 1 0 1 1 0 8 1 tcpqe 32 4 0 4 1 0 1 1 0 8 1 tcpcb 736 211 0 205 4 0 4 4 0 8 2 arp 96 25 0 23 1 0 1 1 0 8 0 ipq 40 2 0 1 1 0 1 1 0 8 0 ipqe 40 3 0 2 1 0 1 1 0 8 0 inpcb 328 672 0 663 5 0 5 5 0 8 3 ip6q 72 2 0 1 1 0 1 1 0 8 0 ip6af 40 3 0 2 1 0 1 1 0 8 0 nd6 112 37 0 37 1 0 1 1 0 8 1 pkpcb 40 4 0 4 1 0 1 1 0 8 1 kcovpl 48 10 0 9 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 4 0 4 1 0 1 1 0 8 1 pppxif 1416 1 0 1 1 0 1 1 0 8 1 pfstscr 40 14 0 6 1 0 1 1 0 8 0 pfrktable 1344 3 0 3 1 0 1 1 0 8 1 pfsrclim 320 1 0 1 1 0 1 1 0 8 1 pfanchor 1288 2 0 2 1 0 1 1 0 8 1 pfstitem 24 12 0 2 1 0 1 1 0 8 0 pfstkey 128 16 0 4 1 0 1 1 0 8 0 pfstate 384 8 0 3 1 0 1 1 0 8 0 pfrule 1360 10 0 9 1 0 1 1 0 8 0 rttmr 136 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 616 0 510 30 5 25 30 0 8 13 art_table 40 617 0 510 5 0 5 5 0 8 2 art_node 32 153 0 134 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 5 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 47 0 37 1 0 1 1 0 8 0 shmpl 112 23 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2889 0 1438 92 0 92 92 0 8 0 ffsino 256 2947 0 1496 92 0 92 92 0 8 0 nchpl 144 4150 0 2447 64 0 64 64 0 8 0 vnodes 216 3380 0 0 188 0 188 188 0 8 0 namei 1024 13367 0 13366 2 0 2 2 0 8 1 pfiaddrpl 120 1 0 1 1 0 1 1 0 8 1 kstatmem 264 45 0 38 2 0 2 2 0 8 1 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 19136 0 19136 8 0 8 8 1 8 8 plimitpl 152 303 0 296 1 0 1 1 0 8 0 sigapl 424 1201 0 1174 6 0 6 6 0 8 1 knotepl 120 29181 0 29156 26 15 11 17 0 8 8 kqueuepl 184 200 0 194 1 0 1 1 0 8 0 pipepl 304 347 0 341 4 0 4 4 0 8 1 fdescpl 448 1187 0 1174 5 0 5 5 0 8 1 filepl 120 6429 0 6360 11 0 11 11 0 8 4 lockfpl 104 383 0 381 1 0 1 1 0 8 0 lockfspl 48 145 0 143 1 0 1 1 0 8 0 sessionpl 144 56 0 49 1 0 1 1 0 8 0 pgrppl 48 125 0 117 1 0 1 1 0 8 0 ucredpl 104 983 0 973 1 0 1 1 0 8 0 zombiepl 144 1175 0 1174 1 0 1 1 0 8 0 processpl 1152 1201 0 1174 4 0 4 4 0 8 0 procpl 664 2232 0 2205 6 0 6 6 0 8 2 sosppl 176 4 0 4 1 0 1 1 0 8 1 sockpl 552 1330 0 1306 8 0 8 8 0 8 4 mcl64k 65536 31 0 31 1 0 1 1 0 8 1 mcl16k 16384 3 0 3 1 0 1 1 0 8 1 mcl9k128 9344 4 0 4 1 0 1 1 0 8 1 mcl8k 8192 18 0 17 1 0 1 1 0 8 0 mcl4k 4096 3550 0 3501 14 0 14 14 0 8 7 mcl2k 2048 822 0 821 9 0 9 9 0 8 8 mextrefs 64 409 0 409 1 0 1 1 0 8 1 mtagpl 96 11 0 11 1 0 1 1 0 8 1 mbufpl 256 12270 0 12211 22 5 17 22 0 8 8 bufpl 272 7123 0 907 415 0 415 415 0 8 0 anonpl 24 270072 0 268463 94 0 94 94 0 187 56 amapchunkpl 152 32878 0 32716 39 0 39 39 0 158 23 amappl16 200 7828 0 7819 61 47 14 40 0 8 10 amappl15 192 7 0 7 1 0 1 1 0 8 1 amappl14 184 435 0 435 1 0 1 1 0 8 1 amappl13 176 123 0 115 1 0 1 1 0 8 0 amappl12 168 1528 0 1517 2 0 2 2 0 8 0 amappl11 160 39 0 39 1 0 1 1 0 8 1 amappl10 152 60 0 50 1 0 1 1 0 8 0 amappl9 144 276 0 276 1 0 1 1 0 8 1 amappl8 136 102 0 101 1 0 1 1 0 8 0 amappl7 128 153 0 143 1 0 1 1 0 8 0 amappl6 120 171 0 169 1 0 1 1 0 8 0 amappl5 112 90 0 84 1 0 1 1 0 8 0 amappl4 104 307 0 291 1 0 1 1 0 8 0 amappl3 96 6263 0 6221 4 0 4 4 0 8 0 amappl2 88 568 0 524 2 0 2 2 0 8 0 amappl1 80 14290 0 13974 13 0 13 13 0 8 4 amappl 88 8430 0 8377 5 0 5 5 0 92 0 uvmvnodes 80 108 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 7 0 7 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 25 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1187 0 1174 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1187 0 1174 1 0 1 1 0 8 0 vmmpekpl 168 11563 0 11538 3 0 3 3 0 8 0 vmmpepl 168 88679 0 87823 112 0 112 112 0 357 50 vmsppl 368 1186 0 1174 4 0 4 4 0 8 1 rwobjpl 40 28878 0 28244 18 0 18 18 0 8 3 pdppl 4096 2380 0 2348 100 52 48 78 0 8 16 pvpl 32 623318 0 619589 186 0 186 186 0 265 110 pmappl 216 1186 0 1174 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 802 0 62 22 0 22 22 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace ffs_indirtrunc(fffff7006d65e800,fffffffffffffff4,965a0,ffffffffffffffff,0,ffff80002f0f0818) at ffs_indirtrunc+0x689 sys/ufs/ffs/ffs_inode.c:495 ffs_truncate(fffff7006d65e800,0,0,ffffffffffffffff) at ffs_truncate+0x1036 sys/ufs/ffs/ffs_inode.c:297 ufs_inactive(ffff80002f0f0970) at ufs_inactive+0x1ff sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(fffff7006d5aee90,ffff80002a737230) at VOP_INACTIVE+0xfb sys/kern/vfs_vops.c:498 vrele(fffff7006d5aee90) at vrele+0x120 sys/kern/vfs_subr.c:843 uvm_unmap_detach(ffff80002f0f0a88,0) at uvm_unmap_detach+0x15e sys/uvm/uvm_map.c:1370 uvmspace_exec(ffff80002a737230,1000,7f7fffffc000) at uvmspace_exec+0x451 sys/uvm/uvm_map.c:3404 sys_execve(ffff80002a737230,ffff80002f0f1110,ffff80002f0f1060) at sys_execve+0xc61 sys/kern/kern_exec.c:474 syscall(ffff80002f0f1110) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f0f1110) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c2adfd6fff0, count: -10 ddb>