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 1802)... gfs2: fsid=syz:syz.0: journal 0 mapped with 1 extents in 0ms gfs2: fsid=syz:syz.0: first mount done, others may mount gfs2: fsid=syz:syz.0: ri_addr=18 ri_length=1 ri_data0=19 ri_data=524288 ri_bitbytes=515 start=0 len=515 offset=128 gfs2: fsid=syz:syz.0: R: n:18 f:00 b:0/0 i:0 q:0 r:0 e:0 gfs2: fsid=syz:syz.0: fatal: filesystem consistency error - RG = 18, function = compute_bitstructs, file = fs/gfs2/rgrp.c, line = 829 gfs2: fsid=syz:syz.0: G: s:UN n:3/12 f:an t:UN d:EX/0 a:0 v:0 r:1 m:20 p:0 gfs2: fsid=syz:syz.0: about to withdraw this file system ------------[ cut here ]------------ kernel BUG at fs/gfs2/util.c:331! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5319 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:gfs2_withdraw+0x1376/0x1430 fs/gfs2/util.c:331 Code: ff ff 48 8b 4c 24 18 80 e1 07 80 c1 03 38 c1 0f 8c 55 fb ff ff 48 8b 7c 24 18 e8 75 06 22 fe e9 46 fb ff ff e8 bb c7 ba fd 90 <0f> 0b 48 8b 4c 24 18 80 e1 07 80 c1 03 38 c1 0f 8c ab fb ff ff 48 RSP: 0018:ffffc9000d5172e0 EFLAGS: 00010287 RAX: ffffffff84054c55 RBX: ffffc9000d5173a0 RCX: 0000000000100000 RDX: ffffc9000e0c2000 RSI: 00000000000103f8 RDI: 00000000000103f9 RBP: ffffc9000d517470 R08: ffff88801fe24293 R09: 1ffff11003fc4852 R10: dffffc0000000000 R11: ffffed1003fc4853 R12: dffffc0000000000 R13: 1ffff92001aa2e70 R14: 1ffff1100235a015 R15: 0000000000000004 FS: 00007fd9698346c0(0000) GS:ffff88808d733000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e4651a83d0 CR3: 0000000036aa5000 CR4: 0000000000352ef0 Call Trace: gfs2_consist_rgrpd_i+0x14b/0x1a0 fs/gfs2/util.c:469 compute_bitstructs fs/gfs2/rgrp.c:-1 [inline] read_rindex_entry fs/gfs2/rgrp.c:931 [inline] gfs2_ri_update+0xba2/0x1650 fs/gfs2/rgrp.c:1001 gfs2_rindex_update+0x2cd/0x370 fs/gfs2/rgrp.c:1051 init_inodes+0x24e/0x320 fs/gfs2/ops_fstype.c:879 gfs2_fill_super+0x1923/0x20d0 fs/gfs2/ops_fstype.c:1255 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1691 gfs2_get_tree+0x51/0x1e0 fs/gfs2/ops_fstype.c:1337 vfs_get_tree+0x92/0x2b0 fs/super.c:1751 fc_mount fs/namespace.c:1208 [inline] do_new_mount_fc fs/namespace.c:3651 [inline] do_new_mount+0x302/0xa10 fs/namespace.c:3727 do_mount fs/namespace.c:4050 [inline] __do_sys_mount fs/namespace.c:4238 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4215 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd96899076a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd969833e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fd969833ef0 RCX: 00007fd96899076a RDX: 0000200000000000 RSI: 0000200000012500 RDI: 00007fd969833eb0 RBP: 0000200000000000 R08: 00007fd969833ef0 R09: 0000000000000011 R10: 0000000000000011 R11: 0000000000000246 R12: 0000200000012500 R13: 00007fd969833eb0 R14: 0000000000012549 R15: 0000200000000080 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_withdraw+0x1376/0x1430 fs/gfs2/util.c:331 Code: ff ff 48 8b 4c 24 18 80 e1 07 80 c1 03 38 c1 0f 8c 55 fb ff ff 48 8b 7c 24 18 e8 75 06 22 fe e9 46 fb ff ff e8 bb c7 ba fd 90 <0f> 0b 48 8b 4c 24 18 80 e1 07 80 c1 03 38 c1 0f 8c ab fb ff ff 48 RSP: 0018:ffffc9000d5172e0 EFLAGS: 00010287 RAX: ffffffff84054c55 RBX: ffffc9000d5173a0 RCX: 0000000000100000 RDX: ffffc9000e0c2000 RSI: 00000000000103f8 RDI: 00000000000103f9 RBP: ffffc9000d517470 R08: ffff88801fe24293 R09: 1ffff11003fc4852 R10: dffffc0000000000 R11: ffffed1003fc4853 R12: dffffc0000000000 R13: 1ffff92001aa2e70 R14: 1ffff1100235a015 R15: 0000000000000004 FS: 00007fd9698346c0(0000) GS:ffff88808d733000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e4651a83d0 CR3: 0000000036aa5000 CR4: 0000000000352ef0