gfs2: fsid=syz:syz.0: fatal: invalid metadata block bh = 4149 (magic number) function = gfs2_meta_indirect_buffer, file = fs/gfs2/meta_io.c, line = 417 gfs2: fsid=syz:syz.0: about to withdraw this file system general protection fault, probably for non-canonical address 0xdffffc000000000e: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000070-0x0000000000000077] CPU: 1 PID: 24516 Comm: syz-executor.2 Not tainted 5.9.0-rc6-syzkaller #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014 RIP: 0010:signal_our_withdraw fs/gfs2/util.c:97 [inline] RIP: 0010:gfs2_withdraw.cold+0xff/0xc0e fs/gfs2/util.c:294 Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 19 02 00 00 4c 8b bb a0 08 00 00 b8 ff ff 37 00 48 c1 e0 2a 49 8d 7f 70 48 89 fa 48 c1 ea 03 <80> 3c 02 00 74 05 e8 67 6d 68 fe 4d 8b 7f 70 b8 ff ff 37 00 48 c1 RSP: 0018:ffffc90004657358 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff888021ea0000 RCX: ffffc900085cc000 RDX: 000000000000000e RSI: ffffffff834e9fdf RDI: 0000000000000070 RBP: ffff888021ea026d R08: 0000000000000038 R09: ffffffff8d0b7b3f R10: 0000000000000000 R11: 0000000000000000 R12: ffff888021ea0050 R13: ffff888021ea02f0 R14: ffffffff88cc1320 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88802cf00000(0063) knlGS:00000000f55ceb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00007f5dc2bb1000 CR3: 0000000057740000 CR4: 0000000000350ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_meta_check_ii+0x68/0xa0 fs/gfs2/util.c:450 gfs2_metatype_check_i fs/gfs2/util.h:126 [inline] gfs2_meta_indirect_buffer+0x3a3/0x3f0 fs/gfs2/meta_io.c:417 gfs2_meta_inode_buffer fs/gfs2/meta_io.h:70 [inline] gfs2_inode_refresh+0x95/0xdf0 fs/gfs2/glops.c:438 inode_go_lock+0x309/0x49f fs/gfs2/glops.c:468 do_promote+0x4a0/0xc10 fs/gfs2/glock.c:390 finish_xmote+0x4ed/0xf40 fs/gfs2/glock.c:560 do_xmote+0x812/0xba0 fs/gfs2/glock.c:686 run_queue+0x323/0x680 fs/gfs2/glock.c:751 gfs2_glock_nq+0x716/0x11b0 fs/gfs2/glock.c:1410 gfs2_glock_nq_init fs/gfs2/glock.h:238 [inline] gfs2_lookupi+0x314/0x630 fs/gfs2/inode.c:317 gfs2_lookup_simple+0x99/0xe0 fs/gfs2/inode.c:268 init_journal fs/gfs2/ops_fstype.c:620 [inline] init_inodes+0x367/0x1f40 fs/gfs2/ops_fstype.c:756 gfs2_fill_super+0x195e/0x254a fs/gfs2/ops_fstype.c:1125 get_tree_bdev+0x421/0x740 fs/super.c:1342 gfs2_get_tree+0x4a/0x270 fs/gfs2/ops_fstype.c:1201 vfs_get_tree+0x89/0x2f0 fs/super.c:1547 do_new_mount fs/namespace.c:2875 [inline] path_mount+0x1387/0x20a0 fs/namespace.c:3192 do_mount+0xf3/0x110 fs/namespace.c:3205 __do_compat_sys_mount fs/compat.c:122 [inline] __se_compat_sys_mount fs/compat.c:89 [inline] __ia32_compat_sys_mount+0x193/0x710 fs/compat.c:89 do_syscall_32_irqs_on arch/x86/entry/common.c:78 [inline] __do_fast_syscall_32+0x60/0x90 arch/x86/entry/common.c:137 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:160 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7fd4549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f55cdf00 EFLAGS: 00000292 ORIG_RAX: 0000000000000015 RAX: ffffffffffffffda RBX: 00000000f55cdf70 RCX: 0000000020000100 RDX: 0000000020000000 RSI: 0000000000000000 RDI: 00000000f55cdfb0 RBP: 00000000f55cdfb0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 56dd3b6370df404d ]--- RIP: 0010:signal_our_withdraw fs/gfs2/util.c:97 [inline] RIP: 0010:gfs2_withdraw.cold+0xff/0xc0e fs/gfs2/util.c:294 Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 19 02 00 00 4c 8b bb a0 08 00 00 b8 ff ff 37 00 48 c1 e0 2a 49 8d 7f 70 48 89 fa 48 c1 ea 03 <80> 3c 02 00 74 05 e8 67 6d 68 fe 4d 8b 7f 70 b8 ff ff 37 00 48 c1 RSP: 0018:ffffc90004657358 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff888021ea0000 RCX: ffffc900085cc000 RDX: 000000000000000e RSI: ffffffff834e9fdf RDI: 0000000000000070 RBP: ffff888021ea026d R08: 0000000000000038 R09: ffffffff8d0b7b3f R10: 0000000000000000 R11: 0000000000000000 R12: ffff888021ea0050 R13: ffff888021ea02f0 R14: ffffffff88cc1320 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88802ce00000(0063) knlGS:00000000f55ceb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000000189f170 CR3: 0000000057740000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400