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 20 extents in 0ms BUG: kernel NULL pointer dereference, address: 00000000000004b0 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 80000001093b1067 P4D 80000001093b1067 PUD 10b3c6067 PMD 0 Oops: 0000 [#1] PREEMPT SMP PTI CPU: 0 PID: 1864 Comm: syz-executor.0 Not tainted 5.19.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:gfs2_rindex_update+0x25/0x170 fs/gfs2/rgrp.c:1037 Code: 00 0f 1f 40 00 66 0f 1f 00 55 41 57 41 56 41 54 53 48 83 ec 40 65 48 8b 04 25 28 00 00 00 48 89 44 24 38 4c 8b b7 40 07 00 00 <49> 8b 9e b0 04 00 00 48 c7 44 24 30 00 00 00 00 48 c7 44 24 28 00 RSP: 0018:ffffc900015eb900 EFLAGS: 00010286 RAX: d73d6c35aa846700 RBX: ffff88817a882550 RCX: ffff888100a6e0e8 RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff888102290000 RBP: ffffc900015ebb70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888102290000 R13: 0000000000000000 R14: 0000000000000000 R15: 00000000ffffff01 FS: 00007f3c682fc6c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000000004b0 CR3: 00000001062a8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: punch_hole+0x5d3/0x1610 fs/gfs2/bmap.c:1797 gfs2_truncatei_resume+0x13/0x30 fs/gfs2/bmap.c:2155 gfs2_instantiate+0x6c/0xa0 fs/gfs2/glock.c:510 gfs2_glock_holder_ready fs/gfs2/glock.c:1291 [inline] gfs2_glock_wait+0x7f/0xa0 fs/gfs2/glock.c:1311 gfs2_glock_nq_init fs/gfs2/glock.h:263 [inline] init_statfs fs/gfs2/ops_fstype.c:690 [inline] init_journal+0x822/0xd20 fs/gfs2/ops_fstype.c:813 init_inodes+0x57/0x140 fs/gfs2/ops_fstype.c:882 gfs2_fill_super+0xb82/0xcb0 fs/gfs2/ops_fstype.c:1240 get_tree_bdev+0x1cc/0x250 fs/super.c:1292 gfs2_get_tree+0x20/0x90 fs/gfs2/ops_fstype.c:1323 vfs_get_tree+0x26/0x90 fs/super.c:1497 do_new_mount+0x153/0x390 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x14b/0x1b0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x48/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f3c6767f4aa Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3c682fbef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f3c682fbf80 RCX: 00007f3c6767f4aa RDX: 0000000020000040 RSI: 0000000020000100 RDI: 00007f3c682fbf40 RBP: 0000000020000040 R08: 00007f3c682fbf80 R09: 0000000000008c1b R10: 0000000000008c1b R11: 0000000000000246 R12: 0000000020000100 R13: 00007f3c682fbf40 R14: 0000000000012789 R15: 0000000020000140 Modules linked in: CR2: 00000000000004b0 ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_rindex_update+0x25/0x170 fs/gfs2/rgrp.c:1037 Code: 00 0f 1f 40 00 66 0f 1f 00 55 41 57 41 56 41 54 53 48 83 ec 40 65 48 8b 04 25 28 00 00 00 48 89 44 24 38 4c 8b b7 40 07 00 00 <49> 8b 9e b0 04 00 00 48 c7 44 24 30 00 00 00 00 48 c7 44 24 28 00 RSP: 0018:ffffc900015eb900 EFLAGS: 00010286 RAX: d73d6c35aa846700 RBX: ffff88817a882550 RCX: ffff888100a6e0e8 RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff888102290000 RBP: ffffc900015ebb70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888102290000 R13: 0000000000000000 R14: 0000000000000000 R15: 00000000ffffff01 FS: 00007f3c682fc6c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000000004b0 CR3: 00000001062a8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 0f 1f 40 00 nopl 0x0(%rax) 4: 66 0f 1f 00 nopw (%rax) 8: 55 push %rbp 9: 41 57 push %r15 b: 41 56 push %r14 d: 41 54 push %r12 f: 53 push %rbx 10: 48 83 ec 40 sub $0x40,%rsp 14: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax 1b: 00 00 1d: 48 89 44 24 38 mov %rax,0x38(%rsp) 22: 4c 8b b7 40 07 00 00 mov 0x740(%rdi),%r14 * 29: 49 8b 9e b0 04 00 00 mov 0x4b0(%r14),%rbx <-- trapping instruction 30: 48 c7 44 24 30 00 00 movq $0x0,0x30(%rsp) 37: 00 00 39: 48 rex.W 3a: c7 .byte 0xc7 3b: 44 24 28 rex.R and $0x28,%al