panic: ffs_blkfree: bad size (5)

2 views
Skip to first unread message

syzbot

unread,
Feb 7, 2025, 6:36:29 PM2/7/25
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: a57a16499ccf sync from unbound-1.21.1 to avoid some whites..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=12e44ca4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=1bc15e68cd2a49e5
dashboard link: https://syzkaller.appspot.com/bug?extid=b40369be6e372e79ea33

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d63db43265aa/disk-a57a1649.raw.xz
bsd.gdb: https://storage.googleapis.com/syzbot-assets/bd5be91c9821/bsd-a57a1649.gdb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/afb8b1d598a1/kernel-a57a1649.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b40369...@syzkaller.appspotmail.com

panic: ffs_blkfree: bad size
Stopped at db_enter+0x25: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*118732 51258 0 0x2 0 0 syz-executor
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff83312600) at panic+0x1cf sys/kern/subr_prf.c:198
ffs_blkfree(fffffd805eda04e8,edc52ea2,4000) at ffs_blkfree+0xd33 sys/ufs/ffs/ffs_alloc.c:1285
ffs_truncate(fffffd805eda04e8,0,4,fffffd807f7d75b0) at ffs_truncate+0x116b sys/ufs/ffs/ffs_inode.c:304
ufs_rmdir(ffff80002a8aba08) at ufs_rmdir+0x374 sys/ufs/ufs/ufs_vnops.c:1265
VOP_RMDIR(fffffd8061f9ade0,fffffd8061f9a498,ffff80002a8abae8) at VOP_RMDIR+0x19a sys/kern/vfs_vops.c:413
dounlinkat(ffff80002a7e0010,ffffff9c,72bb1d4af340,8) at dounlinkat+0x2e0 sys/kern/vfs_syscalls.c:1884
syscall(ffff80002a8abc60) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x72bb1d4af330, 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: ffs_blkfree: bad size
ddb> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff83312600) at panic+0x1cf sys/kern/subr_prf.c:198
ffs_blkfree(fffffd805eda04e8,edc52ea2,4000) at ffs_blkfree+0xd33 sys/ufs/ffs/ffs_alloc.c:1285
ffs_truncate(fffffd805eda04e8,0,4,fffffd807f7d75b0) at ffs_truncate+0x116b sys/ufs/ffs/ffs_inode.c:304
ufs_rmdir(ffff80002a8aba08) at ufs_rmdir+0x374 sys/ufs/ufs/ufs_vnops.c:1265
VOP_RMDIR(fffffd8061f9ade0,fffffd8061f9a498,ffff80002a8abae8) at VOP_RMDIR+0x19a sys/kern/vfs_vops.c:413
dounlinkat(ffff80002a7e0010,ffffff9c,72bb1d4af340,8) at dounlinkat+0x2e0 sys/kern/vfs_syscalls.c:1884
syscall(ffff80002a8abc60) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x72bb1d4af330, count: -9
ddb> show registers
rdi 0
rsi 0x1
rbp 0xffff80002a8ab610
rbx 0xffff800000b5f0d4
rdx 0
rcx 0
rax 0xffff80002a7e0010
r8 0x101010101010101
r9 0x8080808080808080
r10 0x603561d3eb750d4a
r11 0x17a99d30c88464c4
r12 0
r13 0x8
r14 0
r15 0x1
rip 0xffffffff82de6ce5 db_enter+0x25
cs 0x8
rflags 0x246
rsp 0xffff80002a8ab600
ss 0x10
db_enter+0x25: addq $0x8,%rsp
ddb> show proc
PROC (syz-executor) tid=118732 pid=51258 tcnt=1 stat=onproc
flags process=2<EXEC> proc=0
runpri=17, usrpri=50, slppri=17, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
forw=0xffffffffffffffff, list=0xffff80002a7e0520,0xffff80002a7cdc00
process=0xffff8000ffffb820 user=0xffff80002a8a6000, vmspace=0xfffffd807b932440
estcpu=36, cpticks=1, pctcpu=0.0, user=3, sys=13, intr=1
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
42868 221636 70350 0 2 0x82000 syz-executor
42868 235426 70350 0 3 0x4002000 suspend syz-executor
7673 350785 69477 0 2 0 syz-executor
7673 366315 69477 0 2 0x4000000 syz-executor
7673 326071 69477 0 3 0x4000080 fsleep syz-executor
7673 484279 69477 0 3 0x4000080 fsleep syz-executor
20510 329526 31134 0 2 0 syz-executor
20510 295715 31134 0 3 0x4000080 fsleep syz-executor
89019 151380 49144 0 2 0x82 syz-executor
23021 184042 0 0 3 0x14200 acct acct
56782 305507 0 0 3 0x14280 nfsidl nfsio
93794 415372 0 0 3 0x14280 nfsidl nfsio
84910 278878 0 0 3 0x14280 nfsidl nfsio
9023 426258 0 0 3 0x14280 nfsidl nfsio
9499 439753 0 0 3 0x14280 nfsidl nfsio
26789 218987 0 0 3 0x14280 nfsidl nfsio
25588 364307 0 0 3 0x14280 nfsidl nfsio
61894 102501 0 0 3 0x14280 nfsidl nfsio
68740 207602 0 0 3 0x14280 nfsidl nfsio
31556 106753 0 0 3 0x14280 nfsidl nfsio
60257 452279 0 0 3 0x14280 nfsidl nfsio
26997 294813 0 0 3 0x14280 nfsidl nfsio
97039 461948 0 0 3 0x14280 nfsidl nfsio
10087 290379 0 0 3 0x14280 nfsidl nfsio
33983 269361 0 0 3 0x14280 nfsidl nfsio
55844 303255 0 0 3 0x14280 nfsidl nfsio
39416 346197 0 0 3 0x14280 nfsidl nfsio
94570 521749 0 0 3 0x14280 nfsidl nfsio
76290 68967 0 0 3 0x14280 nfsidl nfsio
28643 381695 0 0 3 0x14280 nfsidl nfsio
69477 485862 49144 0 3 0x82 nanoslp syz-executor
20990 100439 1 0 3 0x100083 ttyin getty
7434 269370 0 0 3 0x14200 bored sosplice
94777 42346 49144 0 3 0x82 wait syz-executor
70192 187491 49144 0 2 0x2 syz-executor
*51258 118732 49144 0 7 0x2 syz-executor
82974 239523 49144 0 2 0x2 syz-executor
31134 135364 49144 0 3 0x82 nanoslp syz-executor
70350 488540 49144 0 3 0x82 nanoslp syz-executor
49144 507957 47367 0 3 0x82 nanoslp syz-executor
47367 211791 73264 0 3 0x10008a sigsusp ksh
73264 362909 66065 0 3 0x98 kqread sshd-session
66065 84638 97318 0 3 0x92 kqread sshd-session
97318 56400 1 0 3 0x88 kqread sshd
94990 514406 24433 73 3 0x1100090 kqread syslogd
24433 205896 1 0 3 0x100082 sbwait syslogd
28428 507730 1 0 3 0x100080 kqread resolvd
50533 507342 212 77 3 0x100092 kqread dhcpleased
62631 30096 212 77 3 0x100092 kqread dhcpleased
212 381268 1 0 3 0x80 kqread dhcpleased
26419 12144 0 0 3 0x14200 bored smr
17431 176527 0 0 2 0x14200 zerothread
10863 410443 0 0 3 0x14200 aiodoned aiodoned
30620 238862 0 0 3 0x14200 syncer update
24018 241195 0 0 3 0x14200 cleaner cleaner
37530 275701 0 0 3 0x14200 reaper reaper
19021 12243 0 0 3 0x14200 pgdaemon pagedaemon
9726 36254 0 0 3 0x14200 bored viomb
21931 245319 0 0 3 0x40014200 acpi0 acpi0
76203 441641 0 0 3 0x14200 bored softnet3
11858 210883 0 0 3 0x14200 bored softnet2
25037 67373 0 0 3 0x14200 bored softnet1
96033 244277 0 0 3 0x14200 bored softnet0
57666 122340 0 0 3 0x14200 bored systqmp
28012 188096 0 0 3 0x14200 bored systq
35368 190271 0 0 2 0x40014200 softclock
45528 481703 0 0 3 0x40014200 idle0
1 154775 0 0 3 0x80082 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 10233 11313K 11525K 166960K 13138 0
pcb 18 20K 22K 166960K 328 0
rtable 217 8K 9K 166960K 872 0
pf 34 13K 21K 166960K 224 0
ifaddr 40 7K 8K 166960K 144 0
ifgroup 50 2K 2K 166960K 227 0
sysctl 4 1K 3K 166960K 5 0
counters 30 17K 17K 166960K 86 0
ioctlops 0 0K 4K 166960K 240 0
iov 0 0K 18K 166960K 219 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1461 92K 92K 166960K 2848 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 5K 166960K 22 0
VM map 2 1K 1K 166960K 2 0
sem 12 0K 0K 166960K 46 0
dirhash 12 2K 2K 166960K 51 0
ACPI 1690 195K 286K 166960K 12468 0
file desc 14 49K 97K 166960K 1644 0
sigio 0 0K 0K 166960K 87 0
proc 60 59K 124K 166960K 950 0
subproc 72 4K 4K 166960K 174 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 286 0
in_multi 92 7K 7K 166960K 282 0
ether_multi 1 0K 0K 166960K 6 0
mrt 2 0K 0K 166960K 8 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 229 1023K 1023K 166960K 229 0
exec 0 0K 1K 166960K 698 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 182 71K 86K 166960K 15895 0
UVM aobj 32 4K 4K 166960K 41 0
pinsyscall 35 70K 96K 166960K 2956 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 1 0K 0K 166960K 145 0
NDP 13 0K 2K 166960K 100 0
temp 75 8636K 8764K 166960K 63720 0
kqueue 13 20K 30K 166960K 275 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 259 0 256 3 2 1 3 0 8 0
rtentry 112 288 0 191 4 0 4 4 0 8 0
unpcb 144 1290 0 1273 12 6 6 6 0 8 5
syncache 336 5 0 5 1 1 0 1 0 8 0
tcpqe 32 1 0 1 1 1 0 1 0 8 0
tcpcb 808 383 0 377 6 4 2 4 0 8 0
arp 88 49 0 30 1 0 1 1 0 8 0
ipq 40 4 0 3 1 0 1 1 0 8 0
ipqe 40 40 0 39 1 0 1 1 0 8 0
inpcb 344 1880 0 1869 33 19 14 14 0 8 10
nd6 104 64 0 40 1 0 1 1 0 8 0
pkpcb 40 8 0 8 3 2 1 1 0 8 1
kcovpl 48 19 0 11 1 0 1 1 0 8 0
ppxss 1072 23 0 23 3 2 1 1 0 8 1
pppxif 1376 11 0 11 3 2 1 1 0 8 1
pfstscr 40 2 0 2 1 0 1 1 0 8 1
pftag 88 36 0 36 2 1 1 1 0 8 1
pfstitem 24 10 0 0 1 0 1 1 0 8 0
pfstkey 128 16 0 8 1 0 1 1 0 8 0
pfstate 344 8 0 3 1 0 1 1 0 8 0
pfrule 1344 20 0 20 2 1 1 1 0 8 1
art_heap8 4096 3 0 0 3 0 3 3 0 8 0
art_heap4 256 1154 0 741 33 6 27 30 0 8 1
art_table 32 1157 0 741 4 0 4 4 0 8 0
art_node 16 283 0 200 1 0 1 1 0 8 0
sysvmsgpl 40 11 0 11 1 1 0 1 0 8 0
semapl 112 44 0 34 1 0 1 1 0 8 0
shmpl 112 38 0 9 1 0 1 1 0 8 0
dirhash 1024 43 0 26 3 0 3 3 0 8 0
dino2pl 256 4011 0 2495 96 0 96 96 0 8 0
ffsino 248 4011 0 2495 96 0 96 96 0 8 0
nchpl 144 6162 0 4448 64 0 64 64 0 8 0
rtmask 32 1 0 1 1 1 0 1 0 8 0
uvmvnodes 80 5146 0 0 106 0 106 106 0 8 0
vnodes 216 5146 0 0 286 0 286 286 0 8 0
namei 1024 22287 0 22286 3 2 1 2 0 8 0
kstatmem 264 110 0 88 2 0 2 2 0 8 0
scsiplug 72 1 0 1 1 1 0 1 0 8 0
scxspl 216 18020 0 18020 8 7 1 8 1 8 1
plimitpl 152 230 0 214 1 0 1 1 0 8 0
sigapl 424 1925 0 1860 9 1 8 8 0 8 0
futexpl 64 20979 0 20976 1 0 1 1 0 8 0
knotepl 120 55700 0 55653 25 15 10 10 0 8 7
kqueuepl 184 471 0 461 3 2 1 3 0 8 0
pipepl 296 485 0 458 8 5 3 8 0 8 0
fdescpl 440 1885 0 1859 5 1 4 5 0 8 0
filepl 120 12610 0 12391 20 7 13 15 0 8 4
lockfpl 104 532 0 530 2 0 2 2 0 8 1
lockfspl 48 135 0 133 1 0 1 1 0 8 0
sessionpl 144 34 0 26 1 0 1 1 0 8 0
pgrppl 48 56 0 40 1 0 1 1 0 8 0
ucredpl 104 2139 0 2128 1 0 1 1 0 8 0
zombiepl 144 2045 0 2043 2 1 1 1 0 8 0
processpl 1104 1925 0 1860 5 0 5 5 0 8 0
procpl 648 3971 0 3901 7 0 7 7 0 8 0
sosppl 168 7 0 7 3 2 1 1 0 8 1
sockpl 528 3457 0 3427 33 21 12 18 0 8 7
mcl64k 65536 50 0 50 3 2 1 1 0 8 1
mcl16k 16384 19 0 19 2 2 0 1 0 8 0
mcl12k 12288 5 0 5 2 2 0 1 0 8 0
mcl9k 9216 4 0 4 2 2 0 1 0 8 0
mcl8k 8192 175 0 175 3 2 1 1 0 8 1
mcl4k 4096 4361 0 4307 15 7 8 14 0 8 1
mcl2k2 2112 4 0 4 2 2 0 1 0 8 0
mcl2k 2048 1950 0 1949 3 2 1 2 0 8 0
mtagpl 96 214 0 24 5 0 5 5 0 8 0
mbufpl 256 22896 0 22503 75 48 27 67 0 8 1
bufpl 280 4730 0 130 329 0 329 329 0 8 0
anonpl 24 243932 0 241007 71 31 40 45 0 187 16
amapchunkpl 152 52347 0 51970 41 15 26 28 0 158 6
amappl16 200 4032 0 4003 21 15 6 15 0 8 3
amappl15 192 1 0 1 1 1 0 1 0 8 0
amappl14 184 124 0 114 1 0 1 1 0 8 0
amappl13 176 7 0 7 1 1 0 1 0 8 0
amappl12 168 2663 0 2637 3 1 2 3 0 8 0
amappl11 160 47 0 37 1 0 1 1 0 8 0
amappl10 152 80 0 80 1 1 0 1 0 8 0
amappl9 144 268 0 268 1 1 0 1 0 8 0
amappl8 136 22 0 21 1 0 1 1 0 8 0
amappl7 128 122 0 112 1 0 1 1 0 8 0
amappl6 120 284 0 281 1 0 1 1 0 8 0
amappl5 112 161 0 153 1 0 1 1 0 8 0
amappl4 104 333 0 317 1 0 1 1 0 8 0
amappl3 96 10524 0 10437 5 1 4 4 0 8 1
amappl2 88 792 0 734 2 0 2 2 0 8 0
amappl1 80 12930 0 12427 13 0 13 13 0 8 0
amappl 88 15382 0 15248 5 0 5 5 0 92 0
dma8192 8192 1 0 1 1 1 0 1 0 8 0
dma4096 4096 3 0 3 1 1 0 1 0 8 0
dma1024 1024 1 0 0 1 0 1 1 0 8 0
dma512 512 1 0 1 1 1 0 1 0 8 0
dma256 256 6 0 6 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 7 0 7 1 1 0 1 0 8 0
dma16 16 19 0 18 1 0 1 1 0 8 0
aobjpl 72 40 0 9 1 0 1 1 0 8 0
uaddrrnd 24 1885 0 1859 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 1885 0 1859 1 0 1 1 0 8 0
vmmpekpl 168 16127 0 16084 3 0 3 3 0 8 0
vmmpepl 168 115871 0 114308 91 10 81 89 0 357 3
vmsppl 360 1884 0 1859 4 1 3 4 0 8 0
rwobjpl 32 35292 0 29308 50 1 49 49 0 8 0
pdppl 4096 3777 0 3718 119 50 69 83 0 8 10
pvpl 32 771592 0 763586 159 52 107 115 0 265 22
pmappl 216 1884 0 1859 3 0 3 3 0 8 0
extentpl 40 55 0 38 1 0 1 1 0 8 0
phpool 112 370 0 130 9 0 9 9 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:437
panic(ffffffff83312600) at panic+0x1cf sys/kern/subr_prf.c:198
ffs_blkfree(fffffd805eda04e8,edc52ea2,4000) at ffs_blkfree+0xd33 sys/ufs/ffs/ffs_alloc.c:1285
ffs_truncate(fffffd805eda04e8,0,4,fffffd807f7d75b0) at ffs_truncate+0x116b sys/ufs/ffs/ffs_inode.c:304
ufs_rmdir(ffff80002a8aba08) at ufs_rmdir+0x374 sys/ufs/ufs/ufs_vnops.c:1265
VOP_RMDIR(fffffd8061f9ade0,fffffd8061f9a498,ffff80002a8abae8) at VOP_RMDIR+0x19a sys/kern/vfs_vops.c:413
dounlinkat(ffff80002a7e0010,ffffff9c,72bb1d4af340,8) at dounlinkat+0x2e0 sys/kern/vfs_syscalls.c:1884
syscall(ffff80002a8abc60) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x72bb1d4af330, count: -9
ddb> machine ddbcpu 1
No such command
ddb> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff83312600) at panic+0x1cf sys/kern/subr_prf.c:198
ffs_blkfree(fffffd805eda04e8,edc52ea2,4000) at ffs_blkfree+0xd33 sys/ufs/ffs/ffs_alloc.c:1285
ffs_truncate(fffffd805eda04e8,0,4,fffffd807f7d75b0) at ffs_truncate+0x116b sys/ufs/ffs/ffs_inode.c:304
ufs_rmdir(ffff80002a8aba08) at ufs_rmdir+0x374 sys/ufs/ufs/ufs_vnops.c:1265
VOP_RMDIR(fffffd8061f9ade0,fffffd8061f9a498,ffff80002a8abae8) at VOP_RMDIR+0x19a sys/kern/vfs_vops.c:413
dounlinkat(ffff80002a7e0010,ffffff9c,72bb1d4af340,8) at dounlinkat+0x2e0 sys/kern/vfs_syscalls.c:1884
syscall(ffff80002a8abc60) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x72bb1d4af330, count: -9


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Jun 6, 2025, 11:13:20 AM6/6/25
to syzkaller-o...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages