syzbot


kernel BUG in bch2_folio_set

Status: upstream: reported C repro on 2025/08/11 07:25
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+8397085af632792ccc3a@syzkaller.appspotmail.com
First crash: 4d12h, last: 4d10h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] kernel BUG in bch2_folio_set 0 (1) 2025/08/11 07:25

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/bcachefs/fs-io-pagecache.c:219!
Internal error: Oops - BUG: 00000000f2000800 [#1]  SMP
Modules linked in:
CPU: 0 UID: 0 PID: 6736 Comm: syz.0.17 Not tainted 6.16.0-rc7-syzkaller-g82af5ea7c611 #0 PREEMPT 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/18/2025
pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--)
pc : bch2_folio_set+0x940/0x964 fs/bcachefs/fs-io-pagecache.c:201
lr : bch2_folio_set+0x940/0x964 fs/bcachefs/fs-io-pagecache.c:201
sp : ffff8000a0767660
x29: ffff8000a0767800 x28: 0040000000000040 x27: 0040000000000040
x26: ffc0000000000038 x25: ffff8000a0767790 x24: dfff800000000000
x23: ffc0000100000037 x22: fffffdffc39e5208 x21: fffffdffc39e5200
x20: ffc0000000000038 x19: ffc0000000000038 x18: 00000000ffffffff
x17: ffff800080d32178 x16: ffff80008ae69508 x15: 0000000000000003
x14: 0000000000000000 x13: 0000000000000013 x12: 0000000000ff0100
x11: ffff0000da3c5b80 x10: 0000000000ff0100 x9 : 0000000000000000
x8 : ffff0000da3c5b80 x7 : 20000000ffc00000 x6 : 00000038ffffffff
x5 : ffff8000a07677a0 x4 : ffff8000a0767774 x3 : 0000000000000000
x2 : ffff8000a0767778 x1 : 0040000000000040 x0 : ffc0000000000038
Call trace:
 bch2_folio_set+0x940/0x964 fs/bcachefs/fs-io-pagecache.c:201 (P)
 __bch2_buffered_write fs/bcachefs/fs-io-buffered.c:864 [inline]
 bch2_buffered_write fs/bcachefs/fs-io-buffered.c:1026 [inline]
 bch2_write_iter+0xa14/0x2300 fs/bcachefs/fs-io-buffered.c:1082
 new_sync_write fs/read_write.c:593 [inline]
 vfs_write+0x62c/0x97c fs/read_write.c:686
 ksys_write+0x120/0x210 fs/read_write.c:738
 __do_sys_write fs/read_write.c:749 [inline]
 __se_sys_write fs/read_write.c:746 [inline]
 __arm64_sys_write+0x7c/0x90 fs/read_write.c:746
 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879
 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596
Code: d4210000 9776de90 d4210000 9776de8e (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/08 23:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 82af5ea7c611 987b750d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in bch2_folio_set
2025/08/08 22:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 82af5ea7c611 987b750d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in bch2_folio_set
2025/08/08 21:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 82af5ea7c611 987b750d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_folio_set
* Struck through repros no longer work on HEAD.