bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): scanning for old btree nodes bcachefs (loop0): going read-write ================================================================================ UBSAN: shift-out-of-bounds in fs/bcachefs/move.c:992:31 shift exponent 64 is too large for 64-bit type 'unsigned long long' CPU: 1 PID: 2360 Comm: syz-executor.0 Not tainted 6.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x83/0xd0 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_shift_out_of_bounds+0x247/0x270 lib/ubsan.c:387 bformat_needs_redo fs/bcachefs/move.c:992 [inline] rewrite_old_nodes_pred+0x19c/0x1d0 fs/bcachefs/move.c:1008 bch2_move_btree+0x371/0x520 fs/bcachefs/move.c:887 bch2_scan_old_btree_nodes+0x60/0x110 fs/bcachefs/move.c:1022 bch2_fs_recovery+0x11ae/0x1310 fs/bcachefs/recovery.c:883 bch2_fs_start+0x2d8/0x3e0 fs/bcachefs/super.c:961 bch2_fs_open+0xe11/0x1520 fs/bcachefs/super.c:1948 bch2_mount+0x273/0x5b0 fs/bcachefs/fs.c:1829 legacy_get_tree+0x2d/0x60 fs/fs_context.c:638 vfs_get_tree+0x24/0xb0 fs/super.c:1750 do_new_mount+0x153/0x390 fs/namespace.c:3335 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x14b/0x1c0 fs/namespace.c:3861 do_syscall_64+0x46/0xc0 entry_SYSCALL_64_after_hwframe+0x6f/0xd9 RIP: 0033:0x7f0a1d07f3aa 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:00007f0a1de48ef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f0a1de48f80 RCX: 00007f0a1d07f3aa RDX: 0000000020011a00 RSI: 0000000020000100 RDI: 00007f0a1de48f40 RBP: 0000000020011a00 R08: 00007f0a1de48f80 R09: 0000000003004081 R10: 0000000003004081 R11: 0000000000000246 R12: 0000000020000100 R13: 00007f0a1de48f40 R14: 00000000000119f5 R15: 0000000020000040 ================================================================================