syzbot


assert "ISSET(bp->b_flags, B_BC)" failed in vfs_bio.c

Status: upstream: reported on 2024/01/29 18:27
Reported-by: syzbot+32810f5c4b7941761619@syzkaller.appspotmail.com
First crash: 135d, last: 20d

Sample crash report:
panic: kernel diagnostic assertion "ISSET(bp->b_flags, B_BC)" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/vfs_bio.c", line 1683
Starting stack trace...
panic(ffffffff8295855f) at panic+0x16f sys/kern/subr_prf.c:229
__assert(ffffffff8291090e,ffffffff828ab8c3,693,ffffffff828fa74f) at __assert+0x29 sys/kern/subr_prf.c:157
bufcache_take(fffffd805d131020) at bufcache_take+0x254 sys/kern/vfs_bio.c:1684
getblk(fffffd807cf5de98,0,4000,0,ffffffffffffffff) at getblk+0x17e sys/kern/vfs_bio.c:1037
bread(fffffd807cf5de98,0,4000,ffff80002a2425e8) at bread+0x3e bio_doread sys/kern/vfs_bio.c:430 [inline]
bread(fffffd807cf5de98,0,4000,ffff80002a2425e8) at bread+0x3e sys/kern/vfs_bio.c:475
ffs_bufatoff(fffffd805aadd330,0,0,ffff80002a2426b0) at ffs_bufatoff+0x127 sys/ufs/ffs/ffs_subr.c:71
ufs_lookup() at ufs_lookup+0x426 sys/ufs/ufs/ufs_lookup.c:256
VOP_LOOKUP(fffffd807cf5de98,ffff80002a242b28,ffff80002a242b58) at VOP_LOOKUP+0x5c sys/kern/vfs_vops.c:85
vfs_lookup(ffff80002a242af8) at vfs_lookup+0x6f8 sys/kern/vfs_lookup.c:566
namei(ffff80002a242af8) at namei+0x56a sys/kern/vfs_lookup.c:250
vn_open(ffff80002a242af8,81,0) at vn_open+0x101 sys/kern/vfs_vnops.c:140
doopenat(ffff80002a2a8d18,ffffff9c,20000200,80,0,ffff80002a242ca0) at doopenat+0x269 sys/kern/vfs_syscalls.c:1127
syscall(ffff80002a242d50) at syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline]
syscall(ffff80002a242d50) at syscall+0x854 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x4d6e080db60, count: 243
End of stack trace.

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/23 17:05 openbsd 6859a790d2a4 4c2072ee .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore assert "ISSET(bp->b_flags, B_BC)" failed in vfs_bio.c
2024/05/21 00:19 openbsd d0fe8eba4c8c c0f1611a .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main assert "ISSET(bp->b_flags, B_BC)" failed in vfs_bio.c
2024/05/20 13:10 openbsd ab5fd4cb8341 c0f1611a .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore assert "ISSET(bp->b_flags, B_BC)" failed in vfs_bio.c
2024/05/14 17:17 openbsd 5dea098c4cfa fdb4c10c .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore assert "ISSET(bp->b_flags, B_BC)" failed in vfs_bio.c
2024/04/10 15:49 openbsd ffe6655cba7d 7d74efd0 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main assert "ISSET(bp->b_flags, B_BC)" failed in vfs_bio.c
2024/04/08 19:36 openbsd 146262ea791a 7591ebb5 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main assert "ISSET(bp->b_flags, B_BC)" failed in vfs_bio.c
2024/01/29 18:26 openbsd da5a99b8aa74 991a98f4 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main assert "ISSET(bp->b_flags, B_BC)" failed in vfs_bio.c
* Struck through repros no longer work on HEAD.