loop0: detected capacity change from 0 to 32768 bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,read_only allowing incompatible features above 0.0: (unknown version) features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 bcachefs (loop0): recovering from clean shutdown, journal seq 18446744073709551488 bcachefs (loop0): Version upgrade from 1.13: inode_has_child_snapshots to 1.7: mi_btree_bitmap incomplete Doing compatible version upgrade from 1.13: inode_has_child_snapshots to 1.28: inode_has_case_insensitive running recovery passes: check_allocations,check_extents_to_backpointers,check_inodes syz.0.0: attempt to access beyond end of device loop0: rw=6144, sector=18446744073709551615, nr_sectors = 8 limit=32768 bcachefs (loop0): superblock read error: I/O bcachefs (loop0): bch2_write_super(): fatal error : Unable to write superblock to sufficient devices (from bch2_fs_recovery) bcachefs (loop0): fatal error - emergency read only bcachefs (loop0): cannot start: journal seq overflow bcachefs (loop0): error in recovery: EINVAL bcachefs (loop0): bch2_fs_start(): error starting filesystem EINVAL bcachefs (loop0): shutting down bcachefs (loop0): shutdown complete bcachefs: bch2_fs_get_tree() error: EINVAL loop0: detected capacity change from 0 to 32768 gfs2: fsid=syz:syz: Trying to join cluster "lock_nolock", "syz:syz" gfs2: fsid=syz:syz: Now mounting FS (format 1801)... gfs2: fsid=syz:syz.0: fatal: filesystem consistency error - inode = 1 19, function = gfs2_check_internal_file_size, file = fs/gfs2/inode.h, line = 85 gfs2: fsid=syz:syz.0: G: s:SH n:2/13 f:aqob t:SH d:EX/0 a:0 v:0 r:2 m:20 p:1 gfs2: fsid=syz:syz.0: H: s:SH f:eEcH e:0 p:0 [(none)] init_inodes+0xdb/0x320 fs/gfs2/ops_fstype.c:851 gfs2: fsid=syz:syz.0: I: n:1/19 t:8 f:0x00 d:0x00000200 s:2084864 p:0 gfs2: fsid=syz:syz.0: about to withdraw this file system ------------[ cut here ]------------ kernel BUG at fs/gfs2/util.c:340! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5336 Comm: syz.0.0 Not tainted 6.16.0-rc6-syzkaller-00002-g155a3c003e55 #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 RIP: 0010:gfs2_withdraw+0x1463/0x14f0 fs/gfs2/util.c:340 Code: ff ff 48 8b 4c 24 10 80 e1 07 80 c1 03 38 c1 0f 8c 31 f9 ff ff 48 8b 7c 24 10 e8 48 8a 2a fe e9 22 f9 ff ff e8 4e 0a c7 fd 90 <0f> 0b 48 8b 4c 24 10 80 e1 07 80 c1 03 38 c1 0f 8c 83 f9 ff ff 48 RSP: 0018:ffffc9000d547660 EFLAGS: 00010293 RAX: ffffffff83f92922 RBX: ffffc9000d547720 RCX: ffff888000c98000 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000 RBP: ffffc9000d547800 R08: ffff88801fc24293 R09: 1ffff11003f84852 R10: dffffc0000000000 R11: ffffed1003f84853 R12: dffffc0000000000 R13: 1ffff92001aa8ee0 R14: 1ffff11008818015 R15: 0000000000000004 FS: 00007efcbe46a6c0(0000) GS:ffff88808d21b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7407246000 CR3: 00000000437d9000 CR4: 0000000000352ef0 Call Trace: gfs2_jdesc_check+0x17d/0x2f0 fs/gfs2/super.c:-1 init_journal+0xca7/0x2260 fs/gfs2/ops_fstype.c:767 init_inodes+0xdb/0x320 fs/gfs2/ops_fstype.c:851 gfs2_fill_super+0x1939/0x20e0 fs/gfs2/ops_fstype.c:1253 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1681 gfs2_get_tree+0x51/0x1e0 fs/gfs2/ops_fstype.c:1335 vfs_get_tree+0x8f/0x2b0 fs/super.c:1804 do_new_mount+0x24a/0xa40 fs/namespace.c:3902 do_mount fs/namespace.c:4239 [inline] __do_sys_mount fs/namespace.c:4450 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4427 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7efcbd5900ca 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:00007efcbe469e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007efcbe469ef0 RCX: 00007efcbd5900ca RDX: 00002000000124c0 RSI: 0000200000012500 RDI: 00007efcbe469eb0 RBP: 00002000000124c0 R08: 00007efcbe469ef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000012500 R13: 00007efcbe469eb0 R14: 00000000000124af R15: 0000200000000080 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_withdraw+0x1463/0x14f0 fs/gfs2/util.c:340 Code: ff ff 48 8b 4c 24 10 80 e1 07 80 c1 03 38 c1 0f 8c 31 f9 ff ff 48 8b 7c 24 10 e8 48 8a 2a fe e9 22 f9 ff ff e8 4e 0a c7 fd 90 <0f> 0b 48 8b 4c 24 10 80 e1 07 80 c1 03 38 c1 0f 8c 83 f9 ff ff 48 RSP: 0018:ffffc9000d547660 EFLAGS: 00010293 RAX: ffffffff83f92922 RBX: ffffc9000d547720 RCX: ffff888000c98000 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000 RBP: ffffc9000d547800 R08: ffff88801fc24293 R09: 1ffff11003f84852 R10: dffffc0000000000 R11: ffffed1003f84853 R12: dffffc0000000000 R13: 1ffff92001aa8ee0 R14: 1ffff11008818015 R15: 0000000000000004 FS: 00007efcbe46a6c0(0000) GS:ffff88808d21b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056263d0d2168 CR3: 00000000437d9000 CR4: 0000000000352ef0