gfs2: fsid=syz:syz.s: fatal: invalid metadata block bh = 21 (type: exp=5, found=32) function = gfs2_meta_buffer, file = fs/gfs2/meta_io.c, line = 493 gfs2: fsid=syz:syz.s: about to withdraw this file system ------------[ cut here ]------------ kernel BUG at fs/gfs2/util.c:341! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 7348 Comm: syz.0.481 Not tainted 5.15.186-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:gfs2_withdraw+0x13d4/0x1460 fs/gfs2/util.c:341 Code: e9 68 f9 ff ff 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 0f 8c d4 f9 ff ff 48 8b 3c 24 e8 16 7a 50 fe e9 c6 f9 ff ff e8 1c 01 0b fe <0f> 0b 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 0f 8c 34 fa ff ff 48 8b RSP: 0018:ffffc900028c6f60 EFLAGS: 00010287 RAX: ffffffff836cc1f4 RBX: ffff888078510000 RCX: 0000000000080000 RDX: ffffc90003ef1000 RSI: 00000000000776e3 RDI: 00000000000776e4 RBP: ffffc900028c70b8 R08: dffffc0000000000 R09: ffffed10172067a8 R10: ffffed10172067a8 R11: 1ffff110172067a7 R12: dffffc0000000000 R13: 1ffff92000518dfc R14: ffff8880785102bc R15: 0000000000000004 FS: 00007f8005d396c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8007eb4d60 CR3: 000000006570f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_metatype_check_ii+0x74/0x90 fs/gfs2/util.c:520 gfs2_metatype_check_i fs/gfs2/util.h:129 [inline] gfs2_meta_buffer+0x262/0x310 fs/gfs2/meta_io.c:493 __fillup_metapath+0x14d/0x340 fs/gfs2/bmap.c:331 lookup_metapath fs/gfs2/bmap.c:358 [inline] __gfs2_iomap_get+0x703/0x13e0 fs/gfs2/bmap.c:906 gfs2_iomap_get fs/gfs2/bmap.c:1398 [inline] gfs2_block_map+0x229/0x670 fs/gfs2/bmap.c:1213 gfs2_write_alloc_required+0x362/0x610 fs/gfs2/bmap.c:2322 gfs2_jdesc_check+0x1c3/0x290 fs/gfs2/super.c:114 check_journal_clean+0x151/0x300 fs/gfs2/util.c:68 init_journal+0x179c/0x2220 fs/gfs2/ops_fstype.c:832 init_inodes+0xdb/0x320 fs/gfs2/ops_fstype.c:891 gfs2_fill_super+0x1701/0x1f50 fs/gfs2/ops_fstype.c:1249 get_tree_bdev+0x3f1/0x610 fs/super.c:1325 gfs2_get_tree+0x4d/0x1e0 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3014 do_mount fs/namespace.c:3357 [inline] __do_sys_mount fs/namespace.c:3565 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f8007ed30ca 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:00007f8005d38e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f8005d38ef0 RCX: 00007f8007ed30ca RDX: 0000200000000000 RSI: 0000200000000100 RDI: 00007f8005d38eb0 RBP: 0000200000000000 R08: 00007f8005d38ef0 R09: 0000000000208c1b R10: 0000000000208c1b R11: 0000000000000246 R12: 0000200000000100 R13: 00007f8005d38eb0 R14: 0000000000012791 R15: 00002000000129c0 Modules linked in: ---[ end trace 41096a8035c96ad7 ]--- RIP: 0010:gfs2_withdraw+0x13d4/0x1460 fs/gfs2/util.c:341 Code: e9 68 f9 ff ff 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 0f 8c d4 f9 ff ff 48 8b 3c 24 e8 16 7a 50 fe e9 c6 f9 ff ff e8 1c 01 0b fe <0f> 0b 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 0f 8c 34 fa ff ff 48 8b RSP: 0018:ffffc900028c6f60 EFLAGS: 00010287 RAX: ffffffff836cc1f4 RBX: ffff888078510000 RCX: 0000000000080000 RDX: ffffc90003ef1000 RSI: 00000000000776e3 RDI: 00000000000776e4 RBP: ffffc900028c70b8 R08: dffffc0000000000 R09: ffffed10172067a8 R10: ffffed10172067a8 R11: 1ffff110172067a7 R12: dffffc0000000000 R13: 1ffff92000518dfc R14: ffff8880785102bc R15: 0000000000000004 FS: 00007f8005d396c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8007eb4d60 CR3: 000000006570f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400