loop0: detected capacity change from 0 to 32768 ================================================================================ UBSAN: shift-out-of-bounds in fs/bcachefs/replicas.c:1011:20 shift exponent 155 is too large for 32-bit type 'int' CPU: 0 PID: 2355 Comm: syz-executor.0 Not tainted 6.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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 bch2_sb_dev_has_data+0xba/0x170 fs/bcachefs/replicas.c:1011 bch2_sb_members_to_text+0x11c/0x490 fs/bcachefs/sb-members.c:70 bch2_sb_field_to_text+0xc1/0xf0 fs/bcachefs/super-io.c:1097 bch2_sb_field_validate+0xc0/0x120 fs/bcachefs/super-io.c:1071 bch2_sb_validate+0x2db/0x350 fs/bcachefs/super-io.c:467 bch2_read_super+0x241/0x4a0 fs/bcachefs/super-io.c:782 bch2_fs_open+0xdb/0x1520 fs/bcachefs/super.c:1897 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:0x7fdb3da7f46a 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:00007fdb3e899ef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fdb3e899f80 RCX: 00007fdb3da7f46a RDX: 0000000020011a00 RSI: 0000000020011a40 RDI: 00007fdb3e899f40 RBP: 0000000020011a00 R08: 00007fdb3e899f80 R09: 0000000001200014 R10: 0000000001200014 R11: 0000000000000246 R12: 0000000020011a40 R13: 00007fdb3e899f40 R14: 00000000000119f6 R15: 0000000020000080 ================================================================================