syzbot


panic: ffs_blkfree: bad size (5)

Status: upstream: reported on 2025/02/07 23:36
Reported-by: syzbot+b40369be6e372e79ea33@syzkaller.appspotmail.com
First crash: 11d, last: 7d04h
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd panic: ffs_blkfree: bad size (3) 1 403d 403d 0/3 auto-obsoleted due to no activity on 2024/04/11 20:56
openbsd panic: ffs_blkfree: bad size (4) 5 187d 285d 0/3 auto-obsoleted due to no activity on 2024/11/14 17:32
openbsd panic: ffs_blkfree: bad size 2 2058d 2062d 0/3 auto-closed as invalid on 2019/10/25 14:12
openbsd panic: ffs_blkfree: bad size (2) 1 509d 509d 0/3 auto-obsoleted due to no activity on 2023/12/28 07:11

Sample crash report:
panic: ffs_blkfree: bad size
Stopped at      db_enter+0x25:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*148205  55718      0         0x2          0    0  syz-executor
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff83315a99) at panic+0x1cf sys/kern/subr_prf.c:198
ffs_blkfree(fffffd806e47eab0,c48c45a3,4000) at ffs_blkfree+0xd33 sys/ufs/ffs/ffs_alloc.c:1285
ffs_truncate(fffffd806e47eab0,0,0,ffffffffffffffff) at ffs_truncate+0x116b sys/ufs/ffs/ffs_inode.c:304
ufs_inactive(ffff80003c996f38) at ufs_inactive+0x203 sys/ufs/ufs/ufs_inode.c:84
VOP_INACTIVE(fffffd8063954720,ffff800038944548) at VOP_INACTIVE+0xfe sys/kern/vfs_vops.c:495
vput(fffffd8063954720) at vput+0xdc sys/kern/vfs_subr.c:797
VOP_REMOVE(fffffd805f69e208,fffffd8063954720,ffff80003c9970b8) at VOP_REMOVE+0x19d sys/kern/vfs_vops.c:336
dounlinkat(ffff800038944548,ffffff9c,7b88c1db8df0,0) at dounlinkat+0x177 sys/kern/vfs_syscalls.c:1887
syscall(ffff80003c997230) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7b88c1db92a0, count: 4
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports.  Insufficient info makes it difficult to find and fix bugs.

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/12 16:04 openbsd 705b70e045d6 b27c2402 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main panic: ffs_blkfree: bad size
2025/02/10 08:19 openbsd 275cd30cffcd ef44b750 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main panic: ffs_blkfree: bad size
2025/02/07 23:35 openbsd a57a16499ccf ef44b750 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main panic: ffs_blkfree: bad size
* Struck through repros no longer work on HEAD.