syzbot


kernel BUG in bch2_btree_path_peek_slot

Status: upstream: reported C repro on 2024/11/29 12:12
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+3ebaf90b49bd97e920ee@syzkaller.appspotmail.com
First crash: 195d, last: 13d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] Monthly bcachefs report (May 2025) 0 (1) 2025/05/24 10:04
[syzbot] Monthly bcachefs report (Feb 2025) 0 (1) 2025/02/16 21:54
[syzbot] [bcachefs?] kernel BUG in bch2_btree_path_peek_slot 0 (3) 2025/02/08 23:23
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/05/15 09:42 23m retest repro linux-next error
2025/05/15 09:42 18m retest repro linux-next report log
2025/05/15 09:42 46m retest repro linux-next report log
2025/05/15 09:42 1h50m retest repro linux-next report log
2025/03/04 14:12 17m retest repro linux-next error
2025/03/04 14:12 17m retest repro linux-next error
2025/03/04 13:57 19m retest repro upstream OK log
2025/03/04 14:12 17m retest repro linux-next error
2025/03/04 14:12 9m retest repro linux-next error
2025/03/04 13:57 21m retest repro upstream OK log

Sample crash report:
bcachefs (loop0): creating //lost+found in subvol 1 snapshot 4294967295
bcachefs (loop0): creating //lost+found in subvol 1 snapshot 4294967295
bcachefs (loop0): creating //lost+found in subvol 1 snapshot 4294967295
bcachefs (loop0): creating //lost+found in subvol 1 snapshot 4294967295
------------[ cut here ]------------
kernel BUG at fs/bcachefs/btree_iter.c:1828!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 5824 Comm: syz-executor950 Not tainted 6.15.0-rc7-syzkaller-00142-g4856ebd99715 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:bch2_btree_path_peek_slot+0xfaf/0xff0 fs/bcachefs/btree_iter.c:1828
Code: f7 ff ff 48 89 74 24 08 be 08 00 00 00 89 54 24 04 e8 e5 96 05 fe 48 8b 74 24 08 8b 54 24 04 e9 23 f7 ff ff e8 02 c0 a5 fd 90 <0f> 0b e8 fa bf a5 fd 90 0f 0b e8 f2 bf a5 fd 90 0f 0b e8 ea bf a5
RSP: 0018:ffffc900043fe980 EFLAGS: 00010293
RAX: ffffffff841a30de RBX: 0000000000004361 RCX: ffff888079a71e00
RDX: 0000000000000000 RSI: 0000000000000100 RDI: 0000000000000000
RBP: ffffc900043fea90 R08: ffffc900043feb47 R09: 0000000000000000
R10: ffffc900043feb20 R11: fffff5200087fd69 R12: ffff888079af8a60
R13: ffff888079af8a80 R14: ffffc900043feb20 R15: 1ffff1100f35f14f
FS:  0000555585414380(0000) GS:ffff8881260f6000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffcc1d0f88 CR3: 0000000075afe000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bch2_btree_path_peek_slot_exact fs/bcachefs/btree_iter.h:264 [inline]
 verify_update_old_key+0x118/0x790 fs/bcachefs/btree_trans_commit.c:49
 run_one_trans_trigger fs/bcachefs/btree_trans_commit.c:486 [inline]
 bch2_trans_commit_run_triggers fs/bcachefs/btree_trans_commit.c:550 [inline]
 __bch2_trans_commit+0x364/0x8ae0 fs/bcachefs/btree_trans_commit.c:990
 bch2_trans_commit fs/bcachefs/btree_update.h:195 [inline]
 bch2_check_unreachable_inodes+0x45b/0xe90 fs/bcachefs/fsck.c:1416
 bch2_run_recovery_pass+0xe2/0x1d0 fs/bcachefs/recovery_passes.c:227
 bch2_run_recovery_passes+0x2a0/0xdb0 fs/bcachefs/recovery_passes.c:280
 bch2_fs_recovery+0x2399/0x37b0 fs/bcachefs/recovery.c:937
 bch2_fs_start+0x70b/0xae0 fs/bcachefs/super.c:1096
 bch2_fs_get_tree+0xad7/0x13b0 fs/bcachefs/fs.c:2483
 vfs_get_tree+0x92/0x2b0 fs/super.c:1759
 do_new_mount+0x24a/0xa40 fs/namespace.c:3881
 do_mount fs/namespace.c:4221 [inline]
 __do_sys_mount fs/namespace.c:4432 [inline]
 __se_sys_mount+0x317/0x410 fs/namespace.c:4409
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f311be4e0aa
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff111e0d68 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fff111e0d80 RCX: 00007f311be4e0aa
RDX: 0000200000000000 RSI: 0000200000000180 RDI: 00007fff111e0d80
RBP: 0000200000000180 R08: 00007fff111e0dc0 R09: 0037373737373737
R10: 0000000000000000 R11: 0000000000000282 R12: 0000200000000000
R13: 00007fff111e0dc0 R14: 0000000000000003 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:bch2_btree_path_peek_slot+0xfaf/0xff0 fs/bcachefs/btree_iter.c:1828
Code: f7 ff ff 48 89 74 24 08 be 08 00 00 00 89 54 24 04 e8 e5 96 05 fe 48 8b 74 24 08 8b 54 24 04 e9 23 f7 ff ff e8 02 c0 a5 fd 90 <0f> 0b e8 fa bf a5 fd 90 0f 0b e8 f2 bf a5 fd 90 0f 0b e8 ea bf a5
RSP: 0018:ffffc900043fe980 EFLAGS: 00010293
RAX: ffffffff841a30de RBX: 0000000000004361 RCX: ffff888079a71e00
RDX: 0000000000000000 RSI: 0000000000000100 RDI: 0000000000000000
RBP: ffffc900043fea90 R08: ffffc900043feb47 R09: 0000000000000000
R10: ffffc900043feb20 R11: fffff5200087fd69 R12: ffff888079af8a60
R13: ffff888079af8a80 R14: ffffc900043feb20 R15: 1ffff1100f35f14f
FS:  0000555585414380(0000) GS:ffff8881261f6000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f413a9a1796 CR3: 0000000075afe000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1546):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/24 08:32 upstream 4856ebd99715 ed351ea7 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in bch2_btree_path_peek_slot
2025/05/24 01:13 upstream 7586ac7c340c ed351ea7 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/02/08 23:23 linux-next ed58d103e6da ef44b750 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root kernel BUG in bch2_btree_path_peek_slot
2025/02/09 05:00 linux-next ed58d103e6da ef44b750 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root kernel BUG in bch2_btree_path_peek_slot
2025/02/08 20:03 linux-next ed58d103e6da ef44b750 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root kernel BUG in bch2_btree_path_peek_slot
2025/02/08 17:47 linux-next ed58d103e6da ef44b750 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root kernel BUG in bch2_btree_path_peek_slot
2025/02/14 10:17 upstream ab68d7eb7b1a d9a046cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in bch2_btree_path_peek_slot
2025/02/12 14:55 upstream 09fbf3d50205 b27c2402 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in bch2_btree_path_peek_slot
2025/02/10 05:59 upstream a64dcfb451e2 ef44b750 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root kernel BUG in bch2_btree_path_peek_slot
2025/02/08 15:50 upstream 8f6629c004b1 ef44b750 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in bch2_btree_path_peek_slot
2025/02/08 12:01 upstream 7ee983c850b4 ef44b750 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2 (clean fs)] ci2-upstream-fs kernel BUG in bch2_btree_path_peek_slot
2025/05/26 22:29 upstream 0ff41df1cb26 06877188 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 21:23 upstream 0ff41df1cb26 06877188 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 20:10 upstream 0ff41df1cb26 06877188 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 18:51 upstream 0ff41df1cb26 06877188 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 17:14 upstream 0ff41df1cb26 06877188 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 16:07 upstream 0ff41df1cb26 06877188 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 14:51 upstream 0ff41df1cb26 06877188 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 14:16 upstream 0ff41df1cb26 06877188 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 13:11 upstream 0ff41df1cb26 06877188 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 10:22 upstream 0ff41df1cb26 2d4582d0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 08:53 upstream 0ff41df1cb26 2d4582d0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 05:47 upstream d0c22de9995b 2d4582d0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 04:45 upstream d0c22de9995b 2d4582d0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 03:32 upstream d0c22de9995b 2d4582d0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 02:36 upstream d0c22de9995b 2d4582d0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 01:36 upstream d0c22de9995b 2d4582d0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/26 00:16 upstream d0c22de9995b 2d4582d0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 23:04 upstream d0c22de9995b 2d4582d0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 23:04 upstream d0c22de9995b 2d4582d0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 20:34 upstream d0c22de9995b 2d4582d0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 19:33 upstream d0c22de9995b 2d4582d0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 15:09 upstream b1427432d3b6 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 14:07 upstream b1427432d3b6 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 12:44 upstream b1427432d3b6 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 11:19 upstream b1427432d3b6 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 10:18 upstream b1427432d3b6 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 09:11 upstream b1427432d3b6 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 08:01 upstream b1427432d3b6 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 06:36 upstream b1427432d3b6 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 05:15 upstream b1427432d3b6 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 04:08 upstream b1427432d3b6 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 01:29 upstream 4856ebd99715 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/25 00:23 upstream 4856ebd99715 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/24 23:20 upstream 4856ebd99715 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/24 21:41 upstream 4856ebd99715 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/24 20:30 upstream 4856ebd99715 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/24 19:11 upstream 4856ebd99715 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/24 18:19 upstream 4856ebd99715 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/24 17:03 upstream 4856ebd99715 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/24 15:56 upstream 4856ebd99715 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/24 14:52 upstream 4856ebd99715 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/24 12:07 upstream 7586ac7c340c ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/24 10:54 upstream 7586ac7c340c ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2024/11/29 05:40 upstream 65ae975e97d5 5df23865 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2024/11/25 12:02 upstream 9f16d5e6f220 36dfdd05 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in bch2_btree_path_peek_slot
2025/05/23 13:27 linux-next 176e917e010c fa44301a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in bch2_btree_path_peek_slot
2025/02/18 10:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a64dcfb451e2 c37c7249 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in bch2_btree_path_peek_slot
* Struck through repros no longer work on HEAD.