gfs2: fsid=syz:syz.s: ri_addr = 18 ri_length = 1 ri_data0 = 19 ri_data = 2060 ri_bitbytes = 514 start=0 len=514 offset=128 gfs2: fsid=syz:syz.s: 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: 5495 Comm: syz-executor.0 Not tainted 6.7.0-rc1-syzkaller-00344-g037266a5f723 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/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:ffffc9000381f380 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: ffff88805151be58 RCX: ffffffff83a91f28 RDX: 0000000000000001 RSI: ffffffff83a91ffd RDI: 000000000000000c RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000040 R11: 0000000000000001 R12: ffffc9000381f3f8 R13: ffff88805151bed8 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f659e1c96c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f60d23de000 CR3: 0000000028f41000 CR4: 00000000003506f0 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+0xf41/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:912 gfs2_fill_super+0x1a9e/0x2bd0 fs/gfs2/ops_fstype.c:1263 get_tree_bdev+0x3b5/0x650 fs/super.c:1598 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1341 vfs_get_tree+0x8c/0x370 fs/super.c:1771 do_new_mount fs/namespace.c:3337 [inline] path_mount+0x1492/0x1ed0 fs/namespace.c:3664 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount fs/namespace.c:3863 [inline] __x64_sys_mount+0x293/0x310 fs/namespace.c:3863 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f659d47e1ea 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:00007f659e1c8ee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f659e1c8f80 RCX: 00007f659d47e1ea RDX: 00000000200124c0 RSI: 0000000020000000 RDI: 00007f659e1c8f40 RBP: 00000000200124c0 R08: 00007f659e1c8f80 R09: 0000000000000002 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000020000000 R13: 00007f659e1c8f40 R14: 0000000000012517 R15: 0000000020000100 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:ffffc9000381f380 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: ffff88805151be58 RCX: ffffffff83a91f28 RDX: 0000000000000001 RSI: ffffffff83a91ffd RDI: 000000000000000c RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000040 R11: 0000000000000001 R12: ffffc9000381f3f8 R13: ffff88805151bed8 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f659e1c96c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f60d23de000 CR3: 0000000028f41000 CR4: 00000000003506f0 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