syzbot


kernel BUG in wb_flush_one

Status: upstream: reported C repro on 2024/10/23 13:00
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+bbf8e41759ee46cc56cc@syzkaller.appspotmail.com
First crash: 180d, last: 96d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] kernel BUG in wb_flush_one 0 (1) 2024/10/23 13:00
Last patch testing requests (3)
Created Duration User Patch Repo Result
2025/03/22 14:24 28m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2025/01/11 14:00 20m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/11/02 13:16 27m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log

Sample crash report:
bucket 0:41 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing
 done
bcachefs (loop0): going read-write
bcachefs (loop0): journal_replay...
------------[ cut here ]------------
kernel BUG at fs/bcachefs/btree_write_buffer.c:147!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 UID: 0 PID: 6991 Comm: syz.0.71 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : wb_flush_one+0x15bc/0x1638 fs/bcachefs/btree_write_buffer.c:147
lr : wb_flush_one+0x15bc/0x1638 fs/bcachefs/btree_write_buffer.c:147
sp : ffff8000a12f61e0
x29: ffff8000a12f6300 x28: ffff8000b4d034b0 x27: ffff8000a12f6580
x26: ffff0000f782c000 x25: ffff8000a12f6610 x24: ffff8000a12f6660
x23: 000000000000000b x22: ffff70001425ec4c x21: 090000000000000b
x20: dfff800000000000 x19: ffff8000a12f6260 x18: ffff8000a12f5a00
x17: 0000000000030414 x16: ffff80008b47f808 x15: ffff70001425ebc9
x14: 1ffff0001425ebc8 x13: 0000000000000004 x12: ffffffffffffffff
x11: 0000000000080000 x10: 000000000007ffff x9 : ffff8000a33d9000
x8 : 0000000000080000 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff8000a12f6610 x4 : ffff8000a12f6660 x3 : ffff8000a12f6630
x2 : ffff8000b4d034b0 x1 : 000000000000000b x0 : 090000000000000b
Call trace:
 wb_flush_one+0x15bc/0x1638 fs/bcachefs/btree_write_buffer.c:147 (P)
 wb_flush_one+0x15bc/0x1638 fs/bcachefs/btree_write_buffer.c:147 (L)
 bch2_btree_write_buffer_flush_locked+0x1394/0x2cac fs/bcachefs/btree_write_buffer.c:379
 btree_write_buffer_flush_seq+0x1104/0x1254 fs/bcachefs/btree_write_buffer.c:517
 bch2_btree_write_buffer_journal_flush+0xcc/0x154 fs/bcachefs/btree_write_buffer.c:533
 journal_flush_pins+0x524/0xa10 fs/bcachefs/journal_reclaim.c:565
 journal_flush_done+0x98/0x248 fs/bcachefs/journal_reclaim.c:819
 bch2_journal_flush_pins+0x174/0x338 fs/bcachefs/journal_reclaim.c:852
 bch2_journal_flush_all_pins fs/bcachefs/journal_reclaim.h:76 [inline]
 bch2_journal_replay+0x1bc8/0x1f0c fs/bcachefs/recovery.c:383
 bch2_run_recovery_pass+0xe4/0x1d4 fs/bcachefs/recovery_passes.c:191
 bch2_run_recovery_passes+0x30c/0x73c fs/bcachefs/recovery_passes.c:244
 bch2_fs_recovery+0x32d8/0x55dc fs/bcachefs/recovery.c:861
 bch2_fs_start+0x30c/0x53c fs/bcachefs/super.c:1037
 bch2_fs_get_tree+0x938/0x1030 fs/bcachefs/fs.c:2170
 vfs_get_tree+0x90/0x28c fs/super.c:1814
 do_new_mount+0x278/0x900 fs/namespace.c:3507
 path_mount+0x590/0xe04 fs/namespace.c:3834
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4057 [inline]
 __se_sys_mount fs/namespace.c:4034 [inline]
 __arm64_sys_mount+0x4d4/0x5ac fs/namespace.c:4034
 __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+0x54/0x168 arch/arm64/kernel/entry-common.c:744
 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600
Code: d4210000 97715e2b d4210000 97715e29 (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/01 20:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7b1d1d4cfac0 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in wb_flush_one
2024/11/11 06:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 563047e691f2 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in wb_flush_one
2024/10/19 12:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d2b1b3bccef6 cd6fc0a3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in wb_flush_one
* Struck through repros no longer work on HEAD.