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: journal 0 mapped with 1 extents in 1ms gfs2: fsid=syz:syz.0: first mount done, others may mount loop0: detected capacity change from 32768 to 32745 gfs2: fsid=syz:syz.0: fatal: invalid metadata block - bh = 9374 (bad magic number), function = gfs2_meta_buffer, file = fs/gfs2/meta_io.c, line = 461 CPU: 0 UID: 0 PID: 5352 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 gfs2_withdraw+0xc3/0x1b0 fs/gfs2/util.c:248 gfs2_metatype_check_i fs/gfs2/util.h:116 [inline] gfs2_meta_buffer+0x230/0x2f0 fs/gfs2/meta_io.c:461 gfs2_meta_inode_buffer fs/gfs2/meta_io.h:69 [inline] gfs2_inode_refresh fs/gfs2/glops.c:493 [inline] inode_go_instantiate+0xe7/0x12e0 fs/gfs2/glops.c:518 gfs2_instantiate+0x163/0x220 fs/gfs2/glock.c:410 gfs2_glock_holder_ready fs/gfs2/glock.c:1221 [inline] gfs2_glock_wait+0x1ca/0x2a0 fs/gfs2/glock.c:1241 gfs2_glock_nq_init fs/gfs2/glock.h:253 [inline] gfs2_statfs_sync+0x154/0x4d0 fs/gfs2/super.c:276 gfs2_make_fs_ro+0x167/0x310 fs/gfs2/super.c:552 gfs2_reconfigure+0x669/0xb20 fs/gfs2/ops_fstype.c:1593 reconfigure_super+0x232/0x8f0 fs/super.c:1097 do_remount fs/namespace.c:3538 [inline] path_mount+0xd51/0x1050 fs/namespace.c:4329 do_mount fs/namespace.c:4350 [inline] __do_sys_mount fs/namespace.c:4563 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4540 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7feb88da9a99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007feb851f4fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007feb89035fa0 RCX: 00007feb88da9a99 RDX: 0000000000000000 RSI: 0000200000039100 RDI: 0000000000000000 RBP: 00007feb88e3918b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000021 R11: 0000000000000246 R12: 0000000000000000 R13: 00007feb89036038 R14: 00007feb89035fa0 R15: 00007ffe436f9da8 gfs2: fsid=syz:syz.0: about to withdraw this file system ------------[ cut here ]------------ kernel BUG at fs/gfs2/quota.c:1540! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5352 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:gfs2_quota_cleanup+0x75a/0x760 fs/gfs2/quota.c:1539 Code: ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 58 fd ff ff 4c 89 e7 e8 36 cd e0 fd e9 4b fd ff ff e8 9c e9 a9 07 e8 87 f8 66 fd 90 <0f> 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d1c7a80 EFLAGS: 00010283 RAX: ffffffff84625b89 RBX: 0000000000000002 RCX: 0000000000100000 RDX: ffffc9000ef22000 RSI: 000000000000bdaf RDI: 000000000000bdb0 RBP: ffffc9000d1c7b90 R08: ffff8880143500af R09: 1ffff1100286a015 R10: dffffc0000000000 R11: ffffed100286a016 R12: ffff888014350000 R13: ffff888031b5c600 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007feb851f56c0(0000) GS:ffff88808a9e9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f173d037000 CR3: 0000000053c04000 CR4: 0000000000352ef0 Call Trace: gfs2_make_fs_ro+0x29b/0x310 fs/gfs2/super.c:570 gfs2_reconfigure+0x669/0xb20 fs/gfs2/ops_fstype.c:1593 reconfigure_super+0x232/0x8f0 fs/super.c:1097 do_remount fs/namespace.c:3538 [inline] path_mount+0xd51/0x1050 fs/namespace.c:4329 do_mount fs/namespace.c:4350 [inline] __do_sys_mount fs/namespace.c:4563 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4540 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7feb88da9a99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007feb851f4fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007feb89035fa0 RCX: 00007feb88da9a99 RDX: 0000000000000000 RSI: 0000200000039100 RDI: 0000000000000000 RBP: 00007feb88e3918b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000021 R11: 0000000000000246 R12: 0000000000000000 R13: 00007feb89036038 R14: 00007feb89035fa0 R15: 00007ffe436f9da8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_quota_cleanup+0x75a/0x760 fs/gfs2/quota.c:1539 Code: ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 58 fd ff ff 4c 89 e7 e8 36 cd e0 fd e9 4b fd ff ff e8 9c e9 a9 07 e8 87 f8 66 fd 90 <0f> 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d1c7a80 EFLAGS: 00010283 RAX: ffffffff84625b89 RBX: 0000000000000002 RCX: 0000000000100000 RDX: ffffc9000ef22000 RSI: 000000000000bdaf RDI: 000000000000bdb0 RBP: ffffc9000d1c7b90 R08: ffff8880143500af R09: 1ffff1100286a015 R10: dffffc0000000000 R11: ffffed100286a016 R12: ffff888014350000 R13: ffff888031b5c600 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007feb851f56c0(0000) GS:ffff88808a9e9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f173d03f000 CR3: 0000000053c04000 CR4: 0000000000352ef0