gfs2: fsid=syz:syz.s: fatal: invalid metadata block - bh = 19 (type: exp=4, found=6), function = gfs2_meta_buffer, file = fs/gfs2/meta_io.c, line = 499 gfs2: fsid=syz:syz.s: about to withdraw this file system ------------[ cut here ]------------ kernel BUG at fs/gfs2/util.c:331! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 6952 Comm: syz.4.214 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:gfs2_withdraw+0x1376/0x1430 fs/gfs2/util.c:331 Code: ff ff 48 8b 4c 24 18 80 e1 07 80 c1 03 38 c1 0f 8c 55 fb ff ff 48 8b 7c 24 18 e8 55 f4 24 fe e9 46 fb ff ff e8 ab 4a c1 fd 90 <0f> 0b 48 8b 4c 24 18 80 e1 07 80 c1 03 38 c1 0f 8c ab fb ff ff 48 RSP: 0018:ffffc9000aea72e0 EFLAGS: 00010283 RAX: ffffffff83ff4425 RBX: ffffc9000aea73a0 RCX: 0000000000080000 RDX: ffffc9000c63d000 RSI: 000000000000f1ad RDI: 000000000000f1ae RBP: ffffc9000aea7470 R08: ffffc9000aea7007 R09: 1ffff920015d4e00 R10: dffffc0000000000 R11: fffff520015d4e01 R12: dffffc0000000000 R13: 1ffff920015d4e70 R14: 1ffff1100ec42815 R15: 0000000000000004 FS: 00007fd31645f6c0(0000) GS:ffff8881259ff000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b341885c0 CR3: 000000007505a000 CR4: 00000000003526f0 Call Trace: gfs2_metatype_check_i fs/gfs2/util.h:131 [inline] gfs2_meta_buffer+0x250/0x2e0 fs/gfs2/meta_io.c:499 gfs2_meta_inode_buffer fs/gfs2/meta_io.h:70 [inline] gfs2_inode_refresh fs/gfs2/glops.c:484 [inline] inode_go_instantiate+0xdf/0x1260 fs/gfs2/glops.c:509 gfs2_instantiate+0x165/0x220 fs/gfs2/glock.c:468 gfs2_glock_holder_ready fs/gfs2/glock.c:1317 [inline] gfs2_glock_wait+0x1d4/0x2a0 fs/gfs2/glock.c:1337 gfs2_glock_nq_init fs/gfs2/glock.h:252 [inline] check_journal_clean+0x11c/0x310 fs/gfs2/util.c:61 init_journal+0x17f8/0x2260 fs/gfs2/ops_fstype.c:793 init_inodes+0xdb/0x320 fs/gfs2/ops_fstype.c:851 gfs2_fill_super+0x1923/0x20d0 fs/gfs2/ops_fstype.c:1253 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1692 gfs2_get_tree+0x51/0x1e0 fs/gfs2/ops_fstype.c:1335 vfs_get_tree+0x92/0x2b0 fs/super.c:1752 do_new_mount+0x2a2/0xa30 fs/namespace.c:3810 do_mount fs/namespace.c:4138 [inline] __do_sys_mount fs/namespace.c:4349 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4326 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd31559038a 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:00007fd31645ee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fd31645eef0 RCX: 00007fd31559038a RDX: 0000200000000400 RSI: 0000200000012500 RDI: 00007fd31645eeb0 RBP: 0000200000000400 R08: 00007fd31645eef0 R09: 0000000000200000 R10: 0000000000200000 R11: 0000000000000246 R12: 0000200000012500 R13: 00007fd31645eeb0 R14: 00000000000125bb R15: 0000200000000f40 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_withdraw+0x1376/0x1430 fs/gfs2/util.c:331 Code: ff ff 48 8b 4c 24 18 80 e1 07 80 c1 03 38 c1 0f 8c 55 fb ff ff 48 8b 7c 24 18 e8 55 f4 24 fe e9 46 fb ff ff e8 ab 4a c1 fd 90 <0f> 0b 48 8b 4c 24 18 80 e1 07 80 c1 03 38 c1 0f 8c ab fb ff ff 48 RSP: 0018:ffffc9000aea72e0 EFLAGS: 00010283 RAX: ffffffff83ff4425 RBX: ffffc9000aea73a0 RCX: 0000000000080000 RDX: ffffc9000c63d000 RSI: 000000000000f1ad RDI: 000000000000f1ae RBP: ffffc9000aea7470 R08: ffffc9000aea7007 R09: 1ffff920015d4e00 R10: dffffc0000000000 R11: fffff520015d4e01 R12: dffffc0000000000 R13: 1ffff920015d4e70 R14: 1ffff1100ec42815 R15: 0000000000000004 FS: 00007fd31645f6c0(0000) GS:ffff888125aff000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdd4fa17f98 CR3: 000000007505a000 CR4: 00000000003526f0