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: 1 PID: 5014 Comm: syz-executor283 Not tainted 6.5.0-rc4-syzkaller-00051-g7bafbd4027ae #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:gfs2_rindex_update+0xbd/0x480 fs/gfs2/rgrp.c:1037
Code: 0f 85 9c 03 00 00 49 8b 85 40 07 00 00 48 8d b8 b8 04 00 00 48 89 44 24 30 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 78 03 00 00 48 8b 44 24 30 48 8d 7c 24 60 b9 07
RSP: 0018:ffffc9000337f350 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000097 RSI: ffffffff83a14f31 RDI: 00000000000004b8
RBP: ffffc9000337f460 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: ffff8880728c8000 R14: ffff888071b907b8 R15: 0000000000000000
FS:  0000555555bf4380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055beb942d468 CR3: 000000002e36e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 punch_hole+0xe11/0x3800 fs/gfs2/bmap.c:1807
 gfs2_truncatei_resume+0x37/0x70 fs/gfs2/bmap.c:2157
 inode_go_held+0x1bc/0x200 fs/gfs2/glops.c:526
 gfs2_instantiate+0x1dc/0x240 fs/gfs2/glock.c:463
 gfs2_glock_holder_ready fs/gfs2/glock.c:1319 [inline]
 gfs2_glock_holder_ready fs/gfs2/glock.c:1315 [inline]
 gfs2_glock_wait+0x210/0x330 fs/gfs2/glock.c:1339
 gfs2_glock_nq+0xd9f/0x17b0 fs/gfs2/glock.c:1587
 gfs2_glock_nq_init fs/gfs2/glock.h:261 [inline]
 init_statfs fs/gfs2/ops_fstype.c:695 [inline]
 init_journal fs/gfs2/ops_fstype.c:817 [inline]
 init_inodes+0x25c1/0x2e30 fs/gfs2/ops_fstype.c:885
 gfs2_fill_super+0x1a9e/0x2b10 fs/gfs2/ops_fstype.c:1248
 get_tree_bdev+0x43e/0x7d0 fs/super.c:1318
 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1333
 vfs_get_tree+0x88/0x350 fs/super.c:1519
 do_new_mount fs/namespace.c:3335 [inline]
 path_mount+0x1492/0x1ed0 fs/namespace.c:3662
 do_mount fs/namespace.c:3675 [inline]
 __do_sys_mount fs/namespace.c:3884 [inline]
 __se_sys_mount fs/namespace.c:3861 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:3861
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8d634ed8ca
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:00007ffe0a1e2ca8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffe0a1e2cc0 RCX: 00007f8d634ed8ca
RDX: 00000000200124c0 RSI: 0000000020000040 RDI: 00007ffe0a1e2cc0
RBP: 0000000000000004 R08: 00007ffe0a1e2d00 R09: 000000000001254b
R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000000
R13: 00007ffe0a1e2d00 R14: 0000000000000003 R15: 0000000001000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:gfs2_rindex_update+0xbd/0x480 fs/gfs2/rgrp.c:1037
Code: 0f 85 9c 03 00 00 49 8b 85 40 07 00 00 48 8d b8 b8 04 00 00 48 89 44 24 30 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 78 03 00 00 48 8b 44 24 30 48 8d 7c 24 60 b9 07
RSP: 0018:ffffc9000337f350 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000097 RSI: ffffffff83a14f31 RDI: 00000000000004b8
RBP: ffffc9000337f460 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: ffff8880728c8000 R14: ffff888071b907b8 R15: 0000000000000000
FS:  0000555555bf4380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005fdeb8 CR3: 000000002e36e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	0f 85 9c 03 00 00    	jne    0x3a2
   6:	49 8b 85 40 07 00 00 	mov    0x740(%r13),%rax
   d:	48 8d b8 b8 04 00 00 	lea    0x4b8(%rax),%rdi
  14:	48 89 44 24 30       	mov    %rax,0x30(%rsp)
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 78 03 00 00    	jne    0x3ac
  34:	48 8b 44 24 30       	mov    0x30(%rsp),%rax
  39:	48 8d 7c 24 60       	lea    0x60(%rsp),%rdi
  3e:	b9                   	.byte 0xb9
  3f:	07                   	(bad)