syzbot


WARNING in bch2_verify_accounting_clean

Status: upstream: reported on 2025/02/08 18:16
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+e99c7092c361b53acda2@syzkaller.appspotmail.com
First crash: 165d, last: 12d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] WARNING in bch2_verify_accounting_clean 0 (1) 2025/02/08 18:16

Sample crash report:
bcachefs (loop1): clean shutdown complete, journal seq 7
bcachefs: bch2_verify_accounting_clean() dev accounting mismatch: u64s 8 type accounting 216174981137039360:0:0 len 0 ver 4294968297: dev_data_type dev=0 data_type=journal 8 2048 0 in mem 8 2048 1
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5843 at fs/bcachefs/disk_accounting.c:1055 bch2_verify_accounting_clean+0x2124/0x27c0 fs/bcachefs/disk_accounting.c:1055
Modules linked in:
CPU: 1 UID: 0 PID: 5843 Comm: syz-executor Not tainted 6.16.0-rc5-syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:bch2_verify_accounting_clean+0x2124/0x27c0 fs/bcachefs/disk_accounting.c:1055
Code: 03 8c 49 89 d8 48 c7 c2 80 65 03 8c e8 c5 91 52 fd 31 ff 4c 89 e6 e8 ab 81 73 fd 4d 85 e4 0f 85 ae fe ff ff e8 2d 86 73 fd 90 <0f> 0b 90 e9 62 f0 ff ff e8 1f 86 73 fd e8 ea fe 58 fd 31 ff 41 89
RSP: 0018:ffffc90003017840 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff84485036
RDX: ffff888028729e00 RSI: ffffffff84485fd3 RDI: 0000000000000001
RBP: ffffc90003017bb0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000000
FS:  0000555579fbd500(0000) GS:ffff88812481c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8bc362e008 CR3: 000000005c470000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 bch2_fs_read_only+0xb83/0xdc0 fs/bcachefs/super.c:389
 __bch2_fs_stop+0xf2/0x700 fs/bcachefs/super.c:677
 generic_shutdown_super+0x156/0x390 fs/super.c:643
 bch2_kill_sb+0x3b/0x50 fs/bcachefs/fs.c:2618
 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474
 deactivate_super fs/super.c:507 [inline]
 deactivate_super+0xde/0x100 fs/super.c:503
 cleanup_mnt+0x225/0x450 fs/namespace.c:1417
 task_work_run+0x150/0x240 kernel/task_work.c:227
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:114
 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline]
 syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline]
 do_syscall_64+0x3f6/0x4c0 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9e93d8fc57
Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fffcc702bd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f9e93e10925 RCX: 00007f9e93d8fc57
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fffcc702c90
RBP: 00007fffcc702c90 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fffcc703d20
R13: 00007f9e93e10925 R14: 000000000002a62a R15: 00007fffcc703d60
 </TASK>

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/07 13:04 upstream d7b8f8e20813 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in bch2_verify_accounting_clean
2025/07/04 07:13 upstream 17bbde2e1716 76ad128c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_verify_accounting_clean
2025/06/28 12:54 upstream aaf724ed6926 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_verify_accounting_clean
2025/06/18 03:49 upstream 4663747812d1 e77fae15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_verify_accounting_clean
2025/06/17 02:11 upstream e04c78d86a96 d1716036 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_verify_accounting_clean
2025/06/14 18:01 upstream 4774cfe3543a 5f4b362d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_verify_accounting_clean
2025/03/27 20:12 upstream 1a9239bb4253 6c09fb82 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_verify_accounting_clean
2025/02/09 02:45 upstream 9946eaf552b1 ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_verify_accounting_clean
2025/02/08 09:25 upstream 7ee983c850b4 ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_verify_accounting_clean
2025/02/04 18:11 upstream 0de63bb7d919 8f267cef .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_verify_accounting_clean
2025/06/19 22:48 upstream 24770983ccfe ed3e87f7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_verify_accounting_clean
2025/06/19 22:04 upstream 24770983ccfe ed3e87f7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_verify_accounting_clean
2025/06/15 20:41 upstream 08215f5486ec 5f4b362d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_verify_accounting_clean
* Struck through repros no longer work on HEAD.