syzbot


kernel panic: in transaction restart: transaction_restart_relock, last restarted by

Status: moderation: reported on 2025/04/08 10:48
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+dfbea9052459da8e792a@syzkaller.appspotmail.com
First crash: 42d, last: 11d

Sample crash report:
loop0: detected capacity change from 0 to 32768
bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): Using encoding defined by superblock: utf8-12.1.0
bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names
  allowing incompatible features above 0.0: (unknown version)
bcachefs (loop0): initializing new filesystem
bcachefs (loop0): going read-write
bcachefs (loop0): marking superblocks
bcachefs (loop0): initializing freespace
bcachefs (loop0): done initializing freespace
bcachefs (loop0): reading snapshots table
bcachefs (loop0): reading snapshots done
bcachefs (loop0): done starting filesystem
Kernel panic - not syncing: in transaction restart: transaction_restart_relock, last restarted by
[<0>] btree_trans_restart_ip fs/bcachefs/btree_iter.h:353 [inline]
[<0>] btree_trans_restart fs/bcachefs/btree_iter.h:361 [inline]
[<0>] bch2_trans_relock_fail+0x4a0/0xa10 fs/bcachefs/btree_locking.c:763
[<0>] __bch2_trans_relock+0x44a/0x5a0 fs/bcachefs/btree_locking.c:783
[<0>] bch2_new_inode fs/bcachefs/fs.c:486 [inline]
[<0>] bch2_inode_hash_init_insert+0x118/0x170 fs/bcachefs/fs.c:503
[<0>] bch2_vfs_inode_get+0x272/0x330 fs/bcachefs/fs.c:526
[<0>] bch2_fs_get_tree+0xf6c/0x13a0 fs/bcachefs/fs.c:2579
[<0>] vfs_get_tree+0x8f/0x2b0 fs/super.c:1759
[<0>] do_new_mount+0x24a/0xa40 fs/namespace.c:3884
[<0>] do_mount fs/namespace.c:4224 [inline]
[<0>] __do_sys_mount fs/namespace.c:4435 [inline]
[<0>] __se_sys_mount+0x317/0x410 fs/namespace.c:4412
[<0>] do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
[<0>] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94
[<0>] entry_SYSCALL_64_after_hwframe+0x77/0x7f
CPU: 0 UID: 0 PID: 5311 Comm: syz.0.0 Not tainted 6.15.0-rc5-syzkaller-00022-g01f95500a162 #0 PREEMPT(full) 
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_lvl+0x99/0x250 lib/dump_stack.c:120
 panic+0x2db/0x790 kernel/panic.c:354
 bch2_trans_in_restart_error+0xdb/0x110 fs/bcachefs/btree_iter.c:1441
 bch2_trans_put+0xea1/0x10a0 fs/bcachefs/btree_iter.c:3423
 bch2_vfs_inode_get+0x285/0x330 fs/bcachefs/fs.c:527
 bch2_fs_get_tree+0xf6c/0x13a0 fs/bcachefs/fs.c:2579
 vfs_get_tree+0x8f/0x2b0 fs/super.c:1759
 do_new_mount+0x24a/0xa40 fs/namespace.c:3884
 do_mount fs/namespace.c:4224 [inline]
 __do_sys_mount fs/namespace.c:4435 [inline]
 __se_sys_mount+0x317/0x410 fs/namespace.c:4412
 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:0x7fca8bd9010a
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:00007fca8cc94e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fca8cc94ef0 RCX: 00007fca8bd9010a
RDX: 0000200000000080 RSI: 0000200000000180 RDI: 00007fca8cc94eb0
RBP: 0000200000000080 R08: 00007fca8cc94ef0 R09: 0000000000000010
R10: 0000000000000010 R11: 0000000000000246 R12: 0000200000000180
R13: 00007fca8cc94eb0 R14: 0000000000005a0c R15: 0000200000000040
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/06 00:42 upstream 01f95500a162 ae98e6b9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel panic: in transaction restart: transaction_restart_relock, last restarted by
2025/04/24 15:30 upstream a79be02bba5c 9c80ffa0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel panic: in transaction restart: transaction_restart_relock, last restarted by
2025/04/18 04:14 upstream b5c6891b2c5b 2a20f901 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel panic: in transaction restart: transaction_restart_relock, last restarted by
2025/04/04 10:44 upstream 06a22366d6a1 1740c707 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel panic: in transaction restart: transaction_restart_relock, last restarted by
* Struck through repros no longer work on HEAD.