syzbot


kernel panic: trans should be locked, unlocked by bch2_btree_update_start

Status: upstream: reported C repro on 2024/12/05 17:48
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+d540192e763531d307ff@syzkaller.appspotmail.com
First crash: 16d, last: 4d13h
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] kernel panic: trans should be locked, unlocked by bch2_btree_update_start 0 (1) 2024/12/05 17:48

Sample crash report:
  io_time[WRITE]    256
  fragmentation     0
  bp_start          8
0 transaction updates for bch2_moving_ctxt_init journal seq 0
  
Kernel panic - not syncing: trans should be locked, unlocked by bch2_btree_update_start+0x1168/0x14e0 fs/bcachefs/btree_update_interior.c:1268
CPU: 0 UID: 0 PID: 5432 Comm: syz-executor147 Not tainted 6.13.0-rc1-syzkaller-00025-gfeffde684ac2 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
 panic+0x349/0x880 kernel/panic.c:354
 bch2_trans_unlocked_error+0x42/0x50 fs/bcachefs/btree_iter.c:1439
 bch2_trans_verify_not_unlocked fs/bcachefs/btree_iter.h:340 [inline]
 bch2_path_get+0x11ea/0x1520 fs/bcachefs/btree_iter.c:1720
 bch2_trans_iter_init_common fs/bcachefs/btree_iter.h:502 [inline]
 bch2_trans_node_iter_init+0x325/0x630 fs/bcachefs/btree_iter.c:2921
 bch2_move_btree+0x4b8/0xde0 fs/bcachefs/move.c:846
 bch2_scan_old_btree_nodes+0x14b/0x3c0 fs/bcachefs/move.c:995
 bch2_fs_recovery+0x34f5/0x39d0 fs/bcachefs/recovery.c:974
 bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1037
 bch2_fs_get_tree+0xd68/0x1710 fs/bcachefs/fs.c:2170
 vfs_get_tree+0x90/0x2b0 fs/super.c:1814
 do_new_mount+0x2be/0xb40 fs/namespace.c:3507
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4057 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4034
 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:0x7f369224366a
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:00007ffd04f2f448 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffd04f2f460 RCX: 00007f369224366a
RDX: 00000000200058c0 RSI: 0000000020005900 RDI: 00007ffd04f2f460
RBP: 0000000000000004 R08: 00007ffd04f2f4a0 R09: 000000000000593f
R10: 0000000001000000 R11: 0000000000000282 R12: 0000000001000000
R13: 00007ffd04f2f4a0 R14: 0000000000000003 R15: 0000000001000000
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/05 04:05 upstream feffde684ac2 29f61fce .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root kernel panic: trans should be locked, unlocked by bch2_btree_update_start
2024/12/05 03:33 upstream feffde684ac2 29f61fce .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root kernel panic: trans should be locked, unlocked by bch2_btree_update_start
2024/12/05 03:04 upstream feffde684ac2 29f61fce .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci-snapshot-upstream-root kernel panic: trans should be locked, unlocked by bch2_btree_update_start
2024/12/14 03:16 upstream f932fb9b4074 7cbfbb3a .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root kernel panic: trans should be locked, unlocked by bch2_btree_update_start
2024/12/17 00:28 upstream f44d154d6e3d f93b2b55 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel panic: trans should be locked, unlocked by bch2_btree_update_start
2024/12/14 19:41 upstream a446e965a188 7cbfbb3a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel panic: trans should be locked, unlocked by bch2_btree_update_start
2024/12/10 20:54 upstream 7cb1b4663150 cfc402b4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel panic: trans should be locked, unlocked by bch2_btree_update_start
2024/12/06 05:27 upstream 5076001689e4 946d28f0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel panic: trans should be locked, unlocked by bch2_btree_update_start
2024/12/05 02:36 upstream feffde684ac2 29f61fce .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel panic: trans should be locked, unlocked by bch2_btree_update_start
* Struck through repros no longer work on HEAD.