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 3 extents in 0ms general protection fault, probably for non-canonical address 0xdffffc0000000097: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000004b8-0x00000000000004bf] CPU: 0 PID: 5069 Comm: syz-executor740 Not tainted 6.1.0-syzkaller-14321-g0a924817d2ed #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:gfs2_rindex_update+0xaa/0x3a0 fs/gfs2/rgrp.c:1037 Code: d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 9c 09 21 fe 48 8b 03 48 89 44 24 30 48 8d 98 b8 04 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 77 09 21 fe 48 8b 03 48 89 44 24 RSP: 0018:ffffc90003cdf1e0 EFLAGS: 00010202 RAX: 0000000000000097 RBX: 00000000000004b8 RCX: ffff88801cac57c0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88807db74000 RBP: ffffc90003cdf2f0 R08: ffffffff83b6f150 R09: ffffed100e631e75 R10: ffffed100e631e75 R11: 1ffff1100e631e74 R12: dffffc0000000000 R13: 1ffff9200079be44 R14: 0000000000000000 R15: ffff88807db74000 FS: 000055555611f300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff25a94000 CR3: 00000000794e7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: punch_hole+0xef3/0x3a10 fs/gfs2/bmap.c:1793 gfs2_truncatei_resume+0x38/0x60 fs/gfs2/bmap.c:2151 gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline] gfs2_glock_wait+0x1d9/0x2a0 fs/gfs2/glock.c:1319 gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline] init_statfs fs/gfs2/ops_fstype.c:696 [inline] init_journal+0x1631/0x22c0 fs/gfs2/ops_fstype.c:820 init_inodes+0xdc/0x340 fs/gfs2/ops_fstype.c:889 gfs2_fill_super+0x1bb2/0x2700 fs/gfs2/ops_fstype.c:1247 get_tree_bdev+0x400/0x620 fs/super.c:1282 gfs2_get_tree+0x50/0x210 fs/gfs2/ops_fstype.c:1330 vfs_get_tree+0x88/0x270 fs/super.c:1489 do_new_mount+0x289/0xad0 fs/namespace.c:3145 do_mount fs/namespace.c:3488 [inline] __do_sys_mount fs/namespace.c:3697 [inline] __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3674 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7d468acaea Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff25a93188 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f7d468acaea RDX: 00000000200124c0 RSI: 0000000020000040 RDI: 00007fff25a931a0 RBP: 00007fff25a931a0 R08: 00007fff25a931e0 R09: 000000000001254b R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000004 R13: 000055555611f2c0 R14: 0000000000000000 R15: 00007fff25a931e0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_rindex_update+0xaa/0x3a0 fs/gfs2/rgrp.c:1037 Code: d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 9c 09 21 fe 48 8b 03 48 89 44 24 30 48 8d 98 b8 04 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 77 09 21 fe 48 8b 03 48 89 44 24 RSP: 0018:ffffc90003cdf1e0 EFLAGS: 00010202 RAX: 0000000000000097 RBX: 00000000000004b8 RCX: ffff88801cac57c0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88807db74000 RBP: ffffc90003cdf2f0 R08: ffffffff83b6f150 R09: ffffed100e631e75 R10: ffffed100e631e75 R11: 1ffff1100e631e74 R12: dffffc0000000000 R13: 1ffff9200079be44 R14: 0000000000000000 R15: ffff88807db74000 FS: 000055555611f300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff25a94000 CR3: 00000000794e7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: d8 48 c1 fmuls -0x3f(%rax) 3: e8 03 42 80 3c callq 0x3c80420b 8: 20 00 and %al,(%rax) a: 74 08 je 0x14 c: 48 89 df mov %rbx,%rdi f: e8 9c 09 21 fe callq 0xfe2109b0 14: 48 8b 03 mov (%rbx),%rax 17: 48 89 44 24 30 mov %rax,0x30(%rsp) 1c: 48 8d 98 b8 04 00 00 lea 0x4b8(%rax),%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 77 09 21 fe callq 0xfe2109b0 39: 48 8b 03 mov (%rbx),%rax 3c: 48 rex.W 3d: 89 .byte 0x89 3e: 44 rex.R 3f: 24 .byte 0x24