gfs2: fsid=syz:syz.0: fatal: invalid metadata block - bh = 8330 (bad magic number), function = gfs2_meta_buffer, file = fs/gfs2/meta_io.c, line = 500 gfs2: fsid=syz:syz.0: about to withdraw this file system ------------[ cut here ]------------ kernel BUG at fs/gfs2/util.c:340! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 UID: 0 PID: 6509 Comm: syz.0.15 Not tainted 6.11.0-syzkaller-10547-g684a64bf32b6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : gfs2_withdraw+0x1268/0x133c fs/gfs2/util.c:340 lr : gfs2_withdraw+0x1268/0x133c fs/gfs2/util.c:340 sp : ffff80009dd26ce0 x29: ffff80009dd26e20 x28: ffff0000cc0602bc x27: ffff700013ba4dac x26: 1fffe0001980c015 x25: ffff80009dd26d80 x24: 1ffff00013ba4dba x23: ffff80009dd26dd0 x22: 0000000000000040 x21: ffff0000cc0600a8 x20: 0000000000000716 x19: ffff0000cc060000 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008a351d48 x15: 0000000000000001 x14: 1fffe000367e76e2 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000001 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000ce23dac0 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009dd26438 x4 : ffff80008dbba380 x3 : ffff80008061034c x2 : 0000000000000001 x1 : 0000000000000004 x0 : 0000000000000000 Call trace: gfs2_withdraw+0x1268/0x133c fs/gfs2/util.c:340 gfs2_meta_check_ii+0x78/0x94 fs/gfs2/util.c:501 gfs2_metatype_check_i fs/gfs2/util.h:126 [inline] gfs2_meta_buffer+0x2c0/0x38c fs/gfs2/meta_io.c:500 gfs2_meta_inode_buffer fs/gfs2/meta_io.h:72 [inline] gfs2_inode_refresh+0xc4/0xde8 fs/gfs2/glops.c:478 inode_go_instantiate+0x4c/0x68 fs/gfs2/glops.c:501 gfs2_instantiate+0x17c/0x2c8 fs/gfs2/glock.c:468 gfs2_glock_holder_ready fs/gfs2/glock.c:1345 [inline] gfs2_glock_wait+0x1b8/0x298 fs/gfs2/glock.c:1365 gfs2_glock_nq+0xc8c/0x1660 fs/gfs2/glock.c:1622 gfs2_glock_nq_init fs/gfs2/glock.h:238 [inline] gfs2_lookupi+0x328/0x500 fs/gfs2/inode.c:329 gfs2_lookup_meta+0xe4/0x1e4 fs/gfs2/inode.c:280 init_journal+0x19c/0x1fb8 fs/gfs2/ops_fstype.c:721 init_inodes+0xe0/0x2d8 fs/gfs2/ops_fstype.c:864 gfs2_fill_super+0x186c/0x1fac fs/gfs2/ops_fstype.c:1249 get_tree_bdev+0x320/0x470 fs/super.c:1635 gfs2_get_tree+0x54/0x1b4 fs/gfs2/ops_fstype.c:1330 vfs_get_tree+0x90/0x28c fs/super.c:1800 do_new_mount+0x278/0x900 fs/namespace.c:3507 path_mount+0x590/0xe04 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4055 [inline] __se_sys_mount fs/namespace.c:4032 [inline] __arm64_sys_mount+0x45c/0x5a8 fs/namespace.c:4032 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: f94023e0 9793ea94 17ffff56 977f1c5e (d4210000) ---[ end trace 0000000000000000 ]---