gfs2: fsid=syz:syz.0: ri_addr = 18 ri_length = 1 ri_data0 = 2 ri_data = 0 ri_bitbytes = 3 start=0 len=3 offset=128 gfs2: fsid=syz:syz.0: R: n:18 f:00 b:0/0 i:0 q:0 r:0 e:0 general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 18598 Comm: syz-executor.5 Not tainted 6.6.0-rc6-syzkaller-00334-g1acfd2bd3f0d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:gfs2_rgrp_dump+0x1be/0x500 fs/gfs2/rgrp.c:2313 Code: c9 fd 49 8d 5e 68 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 c0 ba 23 fe 48 8b 2b 48 8d 7d 04 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 d3 02 00 00 8b 4d 04 48 8d 7d 08 48 89 RSP: 0018:ffffc9000391f3d8 EFLAGS: 00010247 RAX: 0000000000000000 RBX: ffff888025550068 RCX: 0000000000040000 RDX: ffffc90009d79000 RSI: 0000000000036f97 RDI: 0000000000000004 RBP: 0000000000000000 R08: ffffffff83c4d443 R09: 1ffff92000723da4 R10: dffffc0000000000 R11: fffff52000723da5 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888025550000 R15: ffffc9000391f480 FS: 00007faab81fe6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1cb08ffc81 CR3: 00000000266ab000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_consist_rgrpd_i+0xe2/0x1a0 fs/gfs2/util.c:471 read_rindex_entry fs/gfs2/rgrp.c:931 [inline] gfs2_ri_update+0xcc5/0x1810 fs/gfs2/rgrp.c:1001 gfs2_rindex_update+0x303/0x3c0 fs/gfs2/rgrp.c:1051 init_inodes+0x249/0x310 fs/gfs2/ops_fstype.c:913 gfs2_fill_super+0x1c6f/0x26c0 fs/gfs2/ops_fstype.c:1268 get_tree_bdev+0x416/0x5b0 fs/super.c:1577 gfs2_get_tree+0x54/0x210 fs/gfs2/ops_fstype.c:1348 vfs_get_tree+0x8c/0x280 fs/super.c:1750 do_new_mount+0x28f/0xae0 fs/namespace.c:3335 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3861 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7faab967e1ea 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:00007faab81fdee8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007faab81fdf80 RCX: 00007faab967e1ea RDX: 0000000020000040 RSI: 0000000020000080 RDI: 00007faab81fdf40 RBP: 0000000020000040 R08: 00007faab81fdf80 R09: 000000000000081d R10: 000000000000081d R11: 0000000000000202 R12: 0000000020000080 R13: 00007faab81fdf40 R14: 000000000001274c R15: 0000000020000140 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_rgrp_dump+0x1be/0x500 fs/gfs2/rgrp.c:2313 Code: c9 fd 49 8d 5e 68 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 c0 ba 23 fe 48 8b 2b 48 8d 7d 04 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 d3 02 00 00 8b 4d 04 48 8d 7d 08 48 89 RSP: 0018:ffffc9000391f3d8 EFLAGS: 00010247 RAX: 0000000000000000 RBX: ffff888025550068 RCX: 0000000000040000 RDX: ffffc90009d79000 RSI: 0000000000036f97 RDI: 0000000000000004 RBP: 0000000000000000 R08: ffffffff83c4d443 R09: 1ffff92000723da4 R10: dffffc0000000000 R11: fffff52000723da5 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888025550000 R15: ffffc9000391f480 FS: 00007faab81fe6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1cb08ffc81 CR3: 00000000266ab000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c9 leave 1: fd std 2: 49 8d 5e 68 lea 0x68(%r14),%rbx 6: 48 89 d8 mov %rbx,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 12: 74 08 je 0x1c 14: 48 89 df mov %rbx,%rdi 17: e8 c0 ba 23 fe call 0xfe23badc 1c: 48 8b 2b mov (%rbx),%rbp 1f: 48 8d 7d 04 lea 0x4(%rbp),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 d3 02 00 00 jne 0x30a 37: 8b 4d 04 mov 0x4(%rbp),%ecx 3a: 48 8d 7d 08 lea 0x8(%rbp),%rdi 3e: 48 rex.W 3f: 89 .byte 0x89