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: 16d, 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: bch2_verify_accounting_clean() fs_usage_base.nr_inodes mismatch: 0 != 1
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8052 at fs/bcachefs/disk_accounting.c:993 bch2_verify_accounting_clean+0x2917/0x2ad0 fs/bcachefs/disk_accounting.c:993
Modules linked in:
CPU: 1 UID: 0 PID: 8052 Comm: syz.7.271 Not tainted 6.14.0-rc1-syzkaller-00235-g9946eaf552b1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:bch2_verify_accounting_clean+0x2917/0x2ad0 fs/bcachefs/disk_accounting.c:993
Code: e9 8f fe ff ff e8 c9 69 6d fd 48 c7 c7 a0 6c 52 8c 48 c7 c6 72 d1 12 8e 48 c7 c2 80 6d 52 8c 31 c9 4d 89 e0 e8 7a 0a d5 fc 90 <0f> 0b 90 e9 93 fe ff ff e8 9c 69 6d fd e9 63 fb ff ff e8 92 69 6d
RSP: 0018:ffffc9000cab7240 EFLAGS: 00010246
RAX: 0000000000000051 RBX: 0000000000000000 RCX: 6db39b6626beee00
RDX: ffffc9000cfba000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc9000cab7690 R08: ffffffff819f14dc R09: 1ffff92001956de4
R10: dffffc0000000000 R11: fffff52001956de5 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000000 R15: fffff52001956e78
FS:  00007f6ee805f6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000563dcab27950 CR3: 0000000064518000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bch2_fs_read_only+0x1150/0x12a0 fs/bcachefs/super.c:379
 __bch2_fs_stop+0x105/0x5c0 fs/bcachefs/super.c:634
 bch2_fs_stop+0x15/0x20 fs/bcachefs/super.c:691
 bch2_fs_get_tree+0xdc4/0x1740 fs/bcachefs/fs.c:2299
 vfs_get_tree+0x90/0x2b0 fs/super.c:1814
 do_new_mount+0x2be/0xb40 fs/namespace.c:3560
 do_mount fs/namespace.c:3900 [inline]
 __do_sys_mount fs/namespace.c:4111 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4088
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6ee718e58a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f6ee805ee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f6ee805eef0 RCX: 00007f6ee718e58a
RDX: 00004000000000c0 RSI: 0000400000000180 RDI: 00007f6ee805eeb0
RBP: 00004000000000c0 R08: 00007f6ee805eef0 R09: 0000000002210010
R10: 0000000002210010 R11: 0000000000000246 R12: 0000400000000180
R13: 00007f6ee805eeb0 R14: 0000000000005a21 R15: 00004000000001c0
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
* Struck through repros no longer work on HEAD.