panic: ffs2_balloc: unwind failed Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *177793 20136 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833a5afc) at panic+0x1cf sys/kern/subr_prf.c:198 ffs2_balloc(fffffd806ca8f200,6001000003,1,fffffd8007ffd6e8,1,ffff80003c9217a0) at ffs2_balloc+0x1965 ffs_truncate(fffffd806ca8f200,6001000004,0,fffffd8007ffd6e8) at ffs_truncate+0x4f8 sys/ufs/ffs/ffs_inode.c:217 ufs_setattr(ffff80003c9218c0) at ufs_setattr+0x8e0 sys/ufs/ufs/ufs_vnops.c:403 VOP_SETATTR(fffffd806c967360,ffff80003c921948,fffffd8007ffd6e8,ffff800031cc02b0) at VOP_SETATTR+0x112 sys/kern/vfs_vops.c:210 dotruncate(ffff800031cc02b0,fffffd806c967360,6001000004) at dotruncate+0x1da sys/kern/vfs_syscalls.c:2892 sys_truncate(ffff800031cc02b0,ffff80003c921c10,ffff80003c921b60) at sys_truncate+0x13e sys/kern/vfs_syscalls.c:2916 syscall(ffff80003c921c10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c921c10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6a01854aad0, 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: ffs2_balloc: unwind failed ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833a5afc) at panic+0x1cf sys/kern/subr_prf.c:198 ffs2_balloc(fffffd806ca8f200,6001000003,1,fffffd8007ffd6e8,1,ffff80003c9217a0) at ffs2_balloc+0x1965 ffs_truncate(fffffd806ca8f200,6001000004,0,fffffd8007ffd6e8) at ffs_truncate+0x4f8 sys/ufs/ffs/ffs_inode.c:217 ufs_setattr(ffff80003c9218c0) at ufs_setattr+0x8e0 sys/ufs/ufs/ufs_vnops.c:403 VOP_SETATTR(fffffd806c967360,ffff80003c921948,fffffd8007ffd6e8,ffff800031cc02b0) at VOP_SETATTR+0x112 sys/kern/vfs_vops.c:210 dotruncate(ffff800031cc02b0,fffffd806c967360,6001000004) at dotruncate+0x1da sys/kern/vfs_syscalls.c:2892 sys_truncate(ffff800031cc02b0,ffff80003c921c10,ffff80003c921b60) at sys_truncate+0x13e sys/kern/vfs_syscalls.c:2916 syscall(ffff80003c921c10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c921c10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6a01854aad0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c921420 rbx 0xfffffd806ca8f200 rdx 0xffff8000015d5300 rcx 0 rax 0xffff800031cc02b0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x92e7d4515034c8e8 r11 0xb00105732cd53680 r12 0 r13 0xffff800000c47800 r14 0 r15 0x1 rip 0xffffffff825e18a5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c921410 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=177793 pid=20136 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=17, usrpri=55, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800031cc1770,0xffff800031cc14e8 process=0xffff8000ffffa418 user=0xffff80003c91c000, vmspace=0xfffffd807db2a468 estcpu=5, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 34394 53981 46674 0 2 0 syz-executor 55867 114981 29107 0 2 0x100002 sh 31572 185679 84194 0 2 0 syz-executor 31572 446862 84194 0 3 0x4000080 fsleep syz-executor 20136 238978 95306 0 2 0 syz-executor *20136 177793 95306 0 7 0x4000000 syz-executor 12153 330771 16404 0 2 0 syz-executor 12153 281597 16404 0 2 0x4000000 syz-executor 12153 469829 16404 0 3 0x4000080 fsleep syz-executor 25660 225115 85770 0 2 0 syz-executor 25660 270083 85770 0 2 0x4000000 syz-executor 71585 238253 10822 60929 2 0x10 syz-executor 71585 120154 10822 60929 3 0x4000090 fsleep syz-executor 71585 32471 10822 60929 3 0x4000090 fsleep syz-executor 16404 325461 76621 0 2 0xc82 syz-executor 46674 425557 76621 0 2 0x2 syz-executor 29107 273002 76621 0 3 0x82 wait syz-executor 31074 368898 76621 0 2 0x2 syz-executor 95306 108383 76621 0 2 0xc82 syz-executor 84194 508537 76621 0 2 0xc82 syz-executor 85770 222414 76621 0 2 0xc82 syz-executor 10822 192250 76621 0 2 0xc82 syz-executor 76621 479990 44129 0 2 0x82 syz-executor 44129 151219 75544 0 3 0x10008a sigsusp ksh 75544 203453 70447 0 3 0x98 kqread sshd-session 70447 360803 28392 0 3 0x92 kqread sshd-session 13487 5691 1 0 3 0x100083 ttyin getty 28392 333010 1 0 3 0x88 kqread sshd 36600 436350 74680 73 3 0x1100090 kqread syslogd 74680 224316 1 0 3 0x100082 sbwait syslogd 29610 101549 1 0 3 0x100080 kqread resolvd 19161 189388 84986 77 3 0x100092 kqread dhcpleased 63140 192363 84986 77 3 0x100092 kqread dhcpleased 84986 152583 1 0 3 0x80 kqread dhcpleased 56907 163481 0 0 3 0x14200 bored smr 63707 296486 0 0 2 0x14200 zerothread 37650 11892 0 0 3 0x14200 aiodoned aiodoned 41632 515777 0 0 3 0x14200 syncer update 50815 219667 0 0 3 0x14200 cleaner cleaner 22289 129201 0 0 3 0x14200 reaper reaper 49858 112416 0 0 3 0x14200 pgdaemon pagedaemon 73194 148903 0 0 3 0x14200 bored viomb 65026 189944 0 0 3 0x40014200 acpi0 acpi0 64732 166127 0 0 3 0x14200 bored softnet0 96791 394217 0 0 3 0x14200 smrbar systqmp 72604 379260 0 0 3 0x14200 bored systq 64472 104297 0 0 3 0x40014200 tmoslp softclock 44211 134949 0 0 3 0x40014200 idle0 1 359303 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 11030 12103K 12175K 166960K 12125 0 pcb 17 12K 12K 166960K 21 0 rtable 238 6K 6K 166960K 353 0 pf 29 12K 12K 166960K 30 0 ifaddr 42 7K 7K 166960K 44 0 ifgroup 47 1K 1K 166960K 50 0 sysctl 1 1K 9K 166960K 5 0 counters 33 17K 17K 166960K 33 0 ioctlops 0 0K 2K 166960K 32 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1289 81K 81K 166960K 1358 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 3 0K 0K 166960K 3 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 85K 166960K 143 0 proc 58 59K 91K 166960K 499 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 99 7K 7K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 37 175K 175K 166960K 37 0 exec 0 0K 1K 166960K 361 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 204 150K 157K 166960K 2904 0 UVM aobj 4 2K 2K 166960K 5 0 pinsyscall 38 76K 92K 166960K 1224 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 13 0K 1K 166960K 27 0 temp 34 9066K 9130K 166960K 3794 0 kqueue 13 20K 22K 166960K 23 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 36 0 33 1 0 1 1 0 8 0 rtentry 136 111 0 1 4 0 4 4 0 8 0 unpcb 144 33 0 18 1 0 1 1 0 8 0 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 736 7 0 3 1 0 1 1 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 inpcb 328 61 0 54 1 0 1 1 0 8 0 nd6 112 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 453 0 0 29 0 29 29 0 8 0 art_table 40 454 0 0 5 0 5 5 0 8 0 art_node 32 111 0 9 1 0 1 1 0 8 0 semapl 112 1 0 0 1 0 1 1 0 8 0 shmpl 112 2 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1567 0 107 92 0 92 92 0 8 0 ffsino 256 1567 0 107 92 0 92 92 0 8 0 nchpl 144 1769 0 74 63 0 63 63 0 8 0 vnodes 216 1651 0 0 92 0 92 92 0 8 0 namei 1024 5130 0 5130 1 0 1 1 0 8 1 kstatmem 264 23 0 0 2 0 2 2 0 8 0 scxspl 216 5878 0 5878 3 0 3 3 1 8 3 plimitpl 152 27 0 10 1 0 1 1 0 8 0 sigapl 424 434 0 392 6 0 6 6 0 8 0 knotepl 120 2840 0 2793 2 0 2 2 0 8 0 kqueuepl 184 22 0 12 1 0 1 1 0 8 0 pipepl 304 119 0 92 3 0 3 3 0 8 0 fdescpl 448 421 0 392 4 0 4 4 0 8 0 filepl 120 1417 0 1206 7 0 7 7 0 8 0 lockfpl 104 9 0 6 1 0 1 1 0 8 0 lockfspl 48 6 0 3 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 29 0 13 1 0 1 1 0 8 0 ucredpl 104 72 0 60 1 0 1 1 0 8 0 zombiepl 144 392 0 392 1 0 1 1 0 8 1 processpl 1152 434 0 392 4 0 4 4 0 8 0 procpl 664 449 0 400 5 0 5 5 0 8 0 sockpl 552 130 0 105 3 0 3 3 0 8 1 mcl8k 8192 5 0 5 1 0 1 1 0 8 1 mcl4k 4096 2474 0 2422 15 0 15 15 0 8 7 mcl2k 2048 126 0 125 3 0 3 3 0 8 2 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 4133 0 3989 13 0 13 13 0 8 0 bufpl 280 2236 0 102 153 0 153 153 0 8 0 anonpl 24 84100 0 81114 21 0 21 21 0 187 2 amapchunkpl 152 7957 0 7545 18 0 18 18 0 158 1 amappl16 200 1228 0 1213 4 0 4 4 0 8 3 amappl15 192 56 0 56 1 0 1 1 0 8 1 amappl14 184 409 0 407 1 0 1 1 0 8 0 amappl13 176 116 0 105 1 0 1 1 0 8 0 amappl12 168 652 0 626 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 0 1 1 0 8 1 amappl10 152 92 0 82 1 0 1 1 0 8 0 amappl9 144 259 0 258 1 0 1 1 0 8 0 amappl8 136 101 0 100 1 0 1 1 0 8 0 amappl7 128 134 0 123 1 0 1 1 0 8 0 amappl6 120 148 0 146 1 0 1 1 0 8 0 amappl5 112 84 0 77 1 0 1 1 0 8 0 amappl4 104 268 0 252 1 0 1 1 0 8 0 amappl3 96 1423 0 1328 3 0 3 3 0 8 0 amappl2 88 505 0 456 2 0 2 2 0 8 0 amappl1 80 8990 0 8440 13 0 13 13 0 8 0 amappl 88 2240 0 2099 4 0 4 4 0 92 0 uvmvnodes 80 97 0 0 2 0 2 2 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 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 4 0 1 1 0 1 1 0 8 0 uaddrrnd 24 421 0 392 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 421 0 392 1 0 1 1 0 8 0 vmmpekpl 168 5089 0 5057 2 0 2 2 0 8 0 vmmpepl 168 34577 0 32879 79 0 79 79 0 357 1 vmsppl 368 420 0 392 4 0 4 4 0 8 1 rwobjpl 40 12601 0 11687 11 0 11 11 0 8 0 pdppl 4096 848 0 784 94 22 72 76 0 8 8 pvpl 32 201630 0 193330 70 0 70 70 0 265 0 pmappl 216 420 0 392 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 357 0 22 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833a5afc) at panic+0x1cf sys/kern/subr_prf.c:198 ffs2_balloc(fffffd806ca8f200,6001000003,1,fffffd8007ffd6e8,1,ffff80003c9217a0) at ffs2_balloc+0x1965 ffs_truncate(fffffd806ca8f200,6001000004,0,fffffd8007ffd6e8) at ffs_truncate+0x4f8 sys/ufs/ffs/ffs_inode.c:217 ufs_setattr(ffff80003c9218c0) at ufs_setattr+0x8e0 sys/ufs/ufs/ufs_vnops.c:403 VOP_SETATTR(fffffd806c967360,ffff80003c921948,fffffd8007ffd6e8,ffff800031cc02b0) at VOP_SETATTR+0x112 sys/kern/vfs_vops.c:210 dotruncate(ffff800031cc02b0,fffffd806c967360,6001000004) at dotruncate+0x1da sys/kern/vfs_syscalls.c:2892 sys_truncate(ffff800031cc02b0,ffff80003c921c10,ffff80003c921b60) at sys_truncate+0x13e sys/kern/vfs_syscalls.c:2916 syscall(ffff80003c921c10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c921c10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6a01854aad0, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833a5afc) at panic+0x1cf sys/kern/subr_prf.c:198 ffs2_balloc(fffffd806ca8f200,6001000003,1,fffffd8007ffd6e8,1,ffff80003c9217a0) at ffs2_balloc+0x1965 ffs_truncate(fffffd806ca8f200,6001000004,0,fffffd8007ffd6e8) at ffs_truncate+0x4f8 sys/ufs/ffs/ffs_inode.c:217 ufs_setattr(ffff80003c9218c0) at ufs_setattr+0x8e0 sys/ufs/ufs/ufs_vnops.c:403 VOP_SETATTR(fffffd806c967360,ffff80003c921948,fffffd8007ffd6e8,ffff800031cc02b0) at VOP_SETATTR+0x112 sys/kern/vfs_vops.c:210 dotruncate(ffff800031cc02b0,fffffd806c967360,6001000004) at dotruncate+0x1da sys/kern/vfs_syscalls.c:2892 sys_truncate(ffff800031cc02b0,ffff80003c921c10,ffff80003c921b60) at sys_truncate+0x13e sys/kern/vfs_syscalls.c:2916 syscall(ffff80003c921c10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c921c10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6a01854aad0, count: -10