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.s: journal 0 mapped with 5 extents in 0ms gfs2: fsid=syz:syz.s: first mount done, others may mount gfs2: fsid=syz:syz.s: fatal: filesystem consistency error - inode = 12 2341, function = gfs2_dinode_in, file = fs/gfs2/glops.c, line = 456 gfs2: fsid=syz:syz.s: G: s:SH n:2/925 f:aqobnN t:SH d:EX/0 a:0 v:0 r:2 m:20 p:1 gfs2: fsid=syz:syz.s: H: s:SH f:AH e:0 p:5355 [syz.0.0] do_inode_permission fs/namei.c:526 [inline] gfs2: fsid=syz:syz.s: H: s:SH f:AH e:0 p:5355 [syz.0.0] inode_permission+0x285/0x470 fs/namei.c:593 gfs2: fsid=syz:syz.s: I: n:12/2341 t:4 f:0x00 d:0x00000006 s:3864 p:0 gfs2: fsid=syz:syz.s: 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: 5355 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+0x137b/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 90 56 25 fe e9 46 fb ff ff e8 06 6a c0 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:ffffc9000d3b74c0 EFLAGS: 00010287 RAX: ffffffff83ff513a RBX: ffffc9000d3b7580 RCX: 0000000000100000 RDX: ffffc9000e272000 RSI: 000000000004fa1a RDI: 000000000004fa1b RBP: ffffc9000d3b7650 R08: ffff88801fc24253 R09: 1ffff11003f8484a R10: dffffc0000000000 R11: ffffed1003f8484b R12: dffffc0000000000 R13: 1ffff92001a76eac R14: 1ffff110022fa815 R15: 0000000000000004 FS: 00007f56f85be6c0(0000) GS:ffff88808d210000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f28335909c0 CR3: 00000000432d1000 CR4: 0000000000352ef0 Call Trace: gfs2_dinode_in fs/gfs2/glops.c:-1 [inline] gfs2_inode_refresh fs/gfs2/glops.c:488 [inline] inode_go_instantiate+0xaf7/0x1260 fs/gfs2/glops.c:509 gfs2_instantiate+0x165/0x220 fs/gfs2/glock.c:468 gfs2_glock_holder_ready fs/gfs2/glock.c:1332 [inline] gfs2_glock_wait+0x1d4/0x2a0 fs/gfs2/glock.c:1352 gfs2_glock_nq_init fs/gfs2/glock.h:248 [inline] gfs2_permission+0x246/0x440 fs/gfs2/inode.c:1968 do_inode_permission fs/namei.c:526 [inline] inode_permission+0x285/0x470 fs/namei.c:593 may_open+0x325/0x4c0 fs/namei.c:3477 do_open fs/namei.c:3885 [inline] path_openat+0x2d91/0x3830 fs/namei.c:4046 do_filp_open+0x1fa/0x410 fs/namei.c:4073 do_sys_openat2+0x121/0x1c0 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_openat fs/open.c:1466 [inline] __se_sys_openat fs/open.c:1461 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1461 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f56f778d550 Code: 48 89 44 24 20 75 93 44 89 54 24 0c e8 49 94 02 00 44 8b 54 24 0c 89 da 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 38 44 89 c7 89 44 24 0c e8 9c 94 02 00 8b 44 RSP: 002b:00007f56f85bddf0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000010000 RCX: 00007f56f778d550 RDX: 0000000000010000 RSI: 0000200000012500 RDI: 00000000ffffff9c RBP: 0000200000012500 R08: 0000000000000000 R09: 0000000000200001 R10: 0000000000000000 R11: 0000000000000293 R12: 0000200000012500 R13: 00007f56f85bdeb0 R14: 00000000000125bb R15: 0000200000000080 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_withdraw+0x137b/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 90 56 25 fe e9 46 fb ff ff e8 06 6a c0 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:ffffc9000d3b74c0 EFLAGS: 00010287 RAX: ffffffff83ff513a RBX: ffffc9000d3b7580 RCX: 0000000000100000 RDX: ffffc9000e272000 RSI: 000000000004fa1a RDI: 000000000004fa1b RBP: ffffc9000d3b7650 R08: ffff88801fc24253 R09: 1ffff11003f8484a R10: dffffc0000000000 R11: ffffed1003f8484b R12: dffffc0000000000 R13: 1ffff92001a76eac R14: 1ffff110022fa815 R15: 0000000000000004 FS: 00007f56f85be6c0(0000) GS:ffff88808d210000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f28335909c0 CR3: 00000000432d1000 CR4: 0000000000352ef0