gfs2: fsid=syz:syz.0: ri_addr = 18 ri_length = 1 ri_data0 = 19 ri_data = 2060 ri_bitbytes = 14483456 start=0 len=14483456 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 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 1 PID: 20250 Comm: syz-executor.0 Not tainted 6.6.0-rc1-next-20230911-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 RIP: 0010:gfs2_rgrp_dump+0x325/0x530 fs/gfs2/rgrp.c:2315 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 0e 02 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 73 68 49 8d 7e 0c 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 a2 RSP: 0018:ffffc9000373f360 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: ffff88803bac34b8 RCX: ffffc9000a211000 RDX: 0000000000000001 RSI: ffffffff83a8c51d RDI: 000000000000000c RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000040 R11: 0000000000106a90 R12: ffffc9000373f3d8 R13: ffff88803bac3538 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f6e329fe6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30f24000 CR3: 000000007bcd5000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_consist_rgrpd_i+0xe3/0x1c0 fs/gfs2/util.c:471 compute_bitstructs fs/gfs2/rgrp.c:829 [inline] read_rindex_entry+0xf40/0x11c0 fs/gfs2/rgrp.c:931 gfs2_ri_update+0x73/0x500 fs/gfs2/rgrp.c:1001 gfs2_rindex_update+0x40a/0x480 fs/gfs2/rgrp.c:1051 init_inodes+0x20b1/0x2e30 fs/gfs2/ops_fstype.c:913 gfs2_fill_super+0x1afa/0x2e50 fs/gfs2/ops_fstype.c:1268 get_tree_bdev+0x3b5/0x650 fs/super.c:1577 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1348 vfs_get_tree+0x8c/0x370 fs/super.c:1750 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:0x7f6e33e7e1ea 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:00007f6e329fdee8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f6e329fdf80 RCX: 00007f6e33e7e1ea RDX: 0000000020000000 RSI: 0000000020012700 RDI: 00007f6e329fdf40 RBP: 0000000020000000 R08: 00007f6e329fdf80 R09: 0000000000800004 R10: 0000000000800004 R11: 0000000000000202 R12: 0000000020012700 R13: 00007f6e329fdf40 R14: 0000000000012684 R15: 0000000020000380 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_rgrp_dump+0x325/0x530 fs/gfs2/rgrp.c:2315 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 0e 02 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 73 68 49 8d 7e 0c 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 a2 RSP: 0018:ffffc9000373f360 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: ffff88803bac34b8 RCX: ffffc9000a211000 RDX: 0000000000000001 RSI: ffffffff83a8c51d RDI: 000000000000000c RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000040 R11: 0000000000106a90 R12: ffffc9000373f3d8 R13: ffff88803bac3538 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f6e329fe6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30f24000 CR3: 000000007bcd5000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 89 fa mov %rdi,%rdx 3: 48 c1 ea 03 shr $0x3,%rdx 7: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) b: 0f 85 0e 02 00 00 jne 0x21f 11: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 18: fc ff df 1b: 4c 8b 73 68 mov 0x68(%rbx),%r14 1f: 49 8d 7e 0c lea 0xc(%r14),%rdi 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx <-- trapping instruction 2e: 48 89 f8 mov %rdi,%rax 31: 83 e0 07 and $0x7,%eax 34: 83 c0 03 add $0x3,%eax 37: 38 d0 cmp %dl,%al 39: 7c 08 jl 0x43 3b: 84 d2 test %dl,%dl 3d: 0f .byte 0xf 3e: 85 .byte 0x85 3f: a2 .byte 0xa2