gfs2: fsid=}.0: fatal: invalid metadata block - bh = 2 (bad magic number), function = gfs2_meta_buffer, file = fs/gfs2/meta_io.c, line = 499 gfs2: fsid=}.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: 5310 Comm: syz-executor103 Not tainted 6.15.0-syzkaller-01972-g914873bc7df9 #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+0x1461/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 ca ef 2b fe e9 22 f9 ff ff e8 d0 0f c9 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:ffffc9000d4cf040 EFLAGS: 00010293 RAX: ffffffff83f6c4e0 RBX: ffffc9000d4cf100 RCX: ffff888000ea2440 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000 RBP: ffffc9000d4cf1c8 R08: ffff88801fc24293 R09: 1ffff11003f84852 R10: dffffc0000000000 R11: ffffed1003f84853 R12: dffffc0000000000 R13: 1ffff92001a99e1c R14: 1ffff1100849b815 R15: 0000000000000004 FS: 000055555a124380(0000) GS:ffff88808d291000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5d7b01f000 CR3: 0000000036155000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_meta_check_ii+0x67/0x80 fs/gfs2/util.c:501 gfs2_metatype_check_i fs/gfs2/util.h:126 [inline] gfs2_meta_buffer+0x22e/0x300 fs/gfs2/meta_io.c:499 __fillup_metapath+0x153/0x350 fs/gfs2/bmap.c:334 lookup_metapath fs/gfs2/bmap.c:361 [inline] __gfs2_iomap_get+0x70f/0x13d0 fs/gfs2/bmap.c:907 gfs2_iomap_get fs/gfs2/bmap.c:1417 [inline] gfs2_block_map+0x22c/0x670 fs/gfs2/bmap.c:1229 gfs2_write_alloc_required+0x369/0x620 fs/gfs2/bmap.c:2332 gfs2_jdesc_check+0x21a/0x2f0 fs/gfs2/super.c:118 init_journal+0xca7/0x2260 fs/gfs2/ops_fstype.c:764 init_inodes+0xdb/0x320 fs/gfs2/ops_fstype.c:848 gfs2_fill_super+0x1893/0x2010 fs/gfs2/ops_fstype.c:1250 get_tree_bdev_flags+0x40b/0x4d0 fs/super.c:1686 gfs2_get_tree+0x51/0x1e0 fs/gfs2/ops_fstype.c:1333 vfs_get_tree+0x92/0x2b0 fs/super.c:1809 do_new_mount+0x24a/0xa40 fs/namespace.c:3882 do_mount fs/namespace.c:4222 [inline] __do_sys_mount fs/namespace.c:4433 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4410 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x220 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f13332dc32a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc67f40418 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ffc67f40430 RCX: 00007f13332dc32a RDX: 0000200000000200 RSI: 0000200000000040 RDI: 00007ffc67f40430 RBP: 0000200000000040 R08: 00007ffc67f40470 R09: 0000000000012759 R10: 0000000000000859 R11: 0000000000000282 R12: 0000200000000200 R13: 0000000000000004 R14: 0000000000000003 R15: 00007ffc67f40470 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_withdraw+0x1461/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 ca ef 2b fe e9 22 f9 ff ff e8 d0 0f c9 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:ffffc9000d4cf040 EFLAGS: 00010293 RAX: ffffffff83f6c4e0 RBX: ffffc9000d4cf100 RCX: ffff888000ea2440 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000 RBP: ffffc9000d4cf1c8 R08: ffff88801fc24293 R09: 1ffff11003f84852 R10: dffffc0000000000 R11: ffffed1003f84853 R12: dffffc0000000000 R13: 1ffff92001a99e1c R14: 1ffff1100849b815 R15: 0000000000000004 FS: 000055555a124380(0000) GS:ffff88808d291000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000556fdef45788 CR3: 0000000036155000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400