syzbot


WARNING in bch2_fs_journal_stop (2)

Status: upstream: reported on 2025/09/10 03:57
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+09fb21cd037d564c2519@syzkaller.appspotmail.com
First crash: 51d, last: 14d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] WARNING in bch2_fs_journal_stop (2) 0 (1) 2025/09/10 03:57
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in bch2_fs_journal_stop bcachefs -1 C done 1463 435d 467d 28/29 fixed on 2024/10/03 15:25

Sample crash report:
bcachefs (loop0): going read-only
bcachefs (loop0): finished waiting for writes to stop
bcachefs (loop0): flushing journal and stopping allocators, journal seq 24
bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 24
------------[ cut here ]------------
journal shutdown error: cur seq 24 but last empty seq 23
WARNING: CPU: 0 PID: 5379 at fs/bcachefs/journal.c:1472 bch2_fs_journal_stop+0x42b/0x440 fs/bcachefs/journal.c:1468
Modules linked in:
CPU: 0 UID: 0 PID: 5379 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:bch2_fs_journal_stop+0x42b/0x440 fs/bcachefs/journal.c:1468
Code: 44 24 30 42 80 3c 28 00 48 8b 5c 24 20 74 08 48 89 df e8 c8 32 d9 fd 48 8b 13 48 c7 c7 60 96 f5 8b 4c 89 e6 e8 56 c6 37 fd 90 <0f> 0b 90 90 e9 e4 fe ff ff e8 d7 e2 30 07 0f 1f 80 00 00 00 00 90
RSP: 0018:ffffc9000d4a79c0 EFLAGS: 00010246
RAX: 2bb97a3ce3216400 RBX: ffff88805404aa28 RCX: ffff8880003d2440
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc9000d4a7ae0 R08: ffff88801fc24253 R09: 1ffff11003f8484a
R10: dffffc0000000000 R11: ffffed1003f8484b R12: 0000000000000018
R13: dffffc0000000000 R14: ffff888054049800 R15: 1ffff1100a809300
FS:  00007f19879b36c0(0000) GS:ffff88808d007000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f19879b2fc8 CR3: 00000000425ff000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 __bch2_fs_read_only+0x343/0x5b0 fs/bcachefs/super.c:306
 bch2_fs_read_only+0x42a/0xb00 fs/bcachefs/super.c:366
 bch2_fs_reconfigure+0x1ba/0x400 fs/bcachefs/fs.c:2671
 reconfigure_super+0x227/0x890 fs/super.c:1077
 vfs_cmd_reconfigure fs/fsopen.c:262 [inline]
 vfs_fsconfig_locked+0x171/0x320 fs/fsopen.c:291
 __do_sys_fsconfig fs/fsopen.c:467 [inline]
 __se_sys_fsconfig+0x78e/0x8d0 fs/fsopen.c:344
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f198b58eec9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f19879b3038 EFLAGS: 00000246 ORIG_RAX: 00000000000001af
RAX: ffffffffffffffda RBX: 00007f198b7e6180 RCX: 00007f198b58eec9
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000007
RBP: 00007f198b611f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f198b7e6218 R14: 00007f198b7e6180 R15: 00007ffed6443c88
 </TASK>

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/27 23:58 upstream fec734e8d564 001c9061 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_fs_journal_stop
2025/09/21 22:52 upstream f975f08c2e89 67c37560 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_fs_journal_stop
2025/09/17 18:13 upstream 5aca7966d2a7 e2beed91 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_fs_journal_stop
2025/09/17 08:00 upstream 5aca7966d2a7 e2beed91 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_fs_journal_stop
2025/09/15 15:23 upstream f83ec76bf285 e2beed91 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_fs_journal_stop
2025/09/08 11:55 upstream 76eeb9b8de98 d291dd2d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_fs_journal_stop
2025/09/08 10:26 upstream 76eeb9b8de98 d291dd2d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_fs_journal_stop
2025/09/06 11:04 upstream d1d10cea0895 d291dd2d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_fs_journal_stop
2025/09/06 03:50 upstream c8ed9b5c02a5 d291dd2d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_fs_journal_stop
2025/10/12 20:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf45a62baffc ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_fs_journal_stop
2025/10/04 06:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf45a62baffc 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_fs_journal_stop
2025/09/26 10:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 35aa5763e111 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_fs_journal_stop
2025/09/18 22:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c9d61056440c e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_fs_journal_stop
* Struck through repros no longer work on HEAD.