syzbot


kernel BUG in bch2_fs_free

Status: auto-obsoleted due to no activity on 2024/08/04 08:51
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+ab8e8a95fdeaf10f25fd@syzkaller.appspotmail.com
First crash: 131d, last: 126d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] kernel BUG in bch2_fs_free 0 (1) 2024/06/04 08:56

Sample crash report:
bcachefs (loop4): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed
bcachefs (loop4): shutting down
------------[ cut here ]------------
kernel BUG at fs/bcachefs/super.c:647!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 PID: 10430 Comm: syz-executor.4 Tainted: G        W          6.10.0-rc2-next-20240605-syzkaller #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:bch2_fs_free+0x3b1/0x3c0 fs/bcachefs/super.c:647
Code: e8 94 d7 b8 fd e9 1a fe ff ff 89 d9 80 e1 07 38 c1 0f 8c 72 ff ff ff 48 89 df e8 7a d7 b8 fd e9 65 ff ff ff e8 a0 e2 52 fd 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90
RSP: 0018:ffffc9000e787560 EFLAGS: 00010246
RAX: ffffffff8443ae90 RBX: ffff88802f018000 RCX: 0000000000040000
RDX: ffffc90009669000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: 0000000000000002 R08: ffffffff8443ad38 R09: 1ffff11005e03008
R10: dffffc0000000000 R11: ffffed1005e03009 R12: ffff8880645803d0
R13: 0000000000000000 R14: ffff8880645807a6 R15: 1ffff1100c8b00f4
FS:  00007fdfa65da6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe00a0e56c6 CR3: 000000002199e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bch2_fs_stop fs/bcachefs/super.c:661 [inline]
 bch2_fs_open+0xb57/0xdf0 fs/bcachefs/super.c:2129
 bch2_mount fs/bcachefs/fs.c:1908 [inline]
 bch2_fs_get_tree+0x75e/0x14d0 fs/bcachefs/fs.c:2069
 vfs_get_tree+0x90/0x2a0 fs/super.c:1780
 do_new_mount+0x2be/0xb40 fs/namespace.c:3352
 do_mount fs/namespace.c:3692 [inline]
 __do_sys_mount fs/namespace.c:3898 [inline]
 __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875
 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:0x7fdfa587e5ea
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fdfa65d9ef8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fdfa65d9f80 RCX: 00007fdfa587e5ea
RDX: 00000000200001c0 RSI: 0000000020000fc0 RDI: 00007fdfa65d9f40
RBP: 00000000200001c0 R08: 00007fdfa65d9f80 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000fc0
R13: 00007fdfa65d9f40 R14: 00000000000119f2 R15: 00000000200001c0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:bch2_fs_free+0x3b1/0x3c0 fs/bcachefs/super.c:647
Code: e8 94 d7 b8 fd e9 1a fe ff ff 89 d9 80 e1 07 38 c1 0f 8c 72 ff ff ff 48 89 df e8 7a d7 b8 fd e9 65 ff ff ff e8 a0 e2 52 fd 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90
RSP: 0018:ffffc9000e787560 EFLAGS: 00010246

RAX: ffffffff8443ae90 RBX: ffff88802f018000 RCX: 0000000000040000
RDX: ffffc90009669000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: 0000000000000002 R08: ffffffff8443ad38 R09: 1ffff11005e03008
R10: dffffc0000000000 R11: ffffed1005e03009 R12: ffff8880645803d0
R13: 0000000000000000 R14: ffff8880645807a6 R15: 1ffff1100c8b00f4
FS:  00007fdfa65da6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe0095b5988 CR3: 000000002199e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/05 08:51 linux-next 234cb065ad82 e1e2c66e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in bch2_fs_free
2024/06/05 08:50 linux-next 234cb065ad82 e1e2c66e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in bch2_fs_free
2024/06/01 05:43 linux-next 0e1980c40b6e 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in bch2_fs_free
2024/06/01 05:43 linux-next 0e1980c40b6e 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in bch2_fs_free
2024/05/31 09:26 linux-next 0e1980c40b6e 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in bch2_fs_free
2024/05/31 09:26 linux-next 0e1980c40b6e 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in bch2_fs_free
2024/05/31 08:49 linux-next 0e1980c40b6e 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in bch2_fs_free
* Struck through repros no longer work on HEAD.