gfs2: fsid=syz:syz.0: gfs2_check_dirent: gfs2_dirent too small (not first in block) gfs2: fsid=syz:syz.0: fatal: filesystem consistency error - inode = 12 2341, function = gfs2_dirent_scan, file = fs/gfs2/dir.c, line = 589 gfs2: fsid=syz:syz.0: G: s:SH n:2/925 f:aqob t:SH d:EX/0 a:0 v:0 r:2 m:20 p:1 gfs2: fsid=syz:syz.0: H: s:SH f:H e:0 p:5341 [syz.0.0] __gfs2_lookup+0x8f/0x270 fs/gfs2/inode.c:978 gfs2: fsid=syz:syz.0: I: n:12/2341 t:4 f:0x00 d:0x00000001 s:3864 p:0 gfs2: fsid=syz:syz.0: about to withdraw this file system ------------[ cut here ]------------ kernel BUG at fs/gfs2/util.c:340! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5341 Comm: syz.0.0 Not tainted 6.16.0-rc5-syzkaller-00276-g5d5d62298b8b #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+0x1463/0x14f0 fs/gfs2/util.c:340 Code: ff ff 48 8b 4c 24 10 80 e1 07 80 c1 03 38 c1 0f 8c 31 f9 ff ff 48 8b 7c 24 10 e8 48 8a 2a fe e9 22 f9 ff ff e8 4e 0a c7 fd 90 <0f> 0b 48 8b 4c 24 10 80 e1 07 80 c1 03 38 c1 0f 8c 83 f9 ff ff 48 RSP: 0018:ffffc9000ed8f3a0 EFLAGS: 00010293 RAX: ffffffff83f92922 RBX: ffffc9000ed8f460 RCX: ffff888032e8c880 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000 RBP: ffffc9000ed8f530 R08: ffff88801fc24293 R09: 1ffff11003f84852 R10: dffffc0000000000 R11: ffffed1003f84853 R12: dffffc0000000000 R13: 1ffff92001db1e88 R14: 1ffff110022ef815 R15: 0000000000000004 FS: 00007efce49e16c0(0000) GS:ffff88808d21b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007efce49e0fc8 CR3: 000000004318e000 CR4: 0000000000352ef0 Call Trace: gfs2_dirent_scan+0x545/0x690 fs/gfs2/dir.c:-1 gfs2_dirent_search+0x2e0/0x7e0 fs/gfs2/dir.c:853 gfs2_dir_search+0x4c/0x220 fs/gfs2/dir.c:1653 gfs2_lookupi+0x3d9/0x5a0 fs/gfs2/inode.c:340 __gfs2_lookup+0x8f/0x270 fs/gfs2/inode.c:978 gfs2_atomic_open+0x92/0x220 fs/gfs2/inode.c:1380 atomic_open fs/namei.c:3577 [inline] lookup_open fs/namei.c:3688 [inline] open_last_lookups fs/namei.c:3816 [inline] path_openat+0xf63/0x3830 fs/namei.c:4052 do_filp_open+0x1fa/0x410 fs/namei.c:4082 do_sys_openat2+0x121/0x1c0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_open fs/open.c:1460 [inline] __se_sys_open fs/open.c:1456 [inline] __x64_sys_open+0x11e/0x150 fs/open.c:1456 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:0x7efce3b8e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007efce49e1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007efce3db6080 RCX: 00007efce3b8e929 RDX: 0000000000000102 RSI: 000000000014927e RDI: 0000200000000340 RBP: 00007efce3c10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007efce3db6080 R15: 00007fffe8fd0b78 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_withdraw+0x1463/0x14f0 fs/gfs2/util.c:340 Code: ff ff 48 8b 4c 24 10 80 e1 07 80 c1 03 38 c1 0f 8c 31 f9 ff ff 48 8b 7c 24 10 e8 48 8a 2a fe e9 22 f9 ff ff e8 4e 0a c7 fd 90 <0f> 0b 48 8b 4c 24 10 80 e1 07 80 c1 03 38 c1 0f 8c 83 f9 ff ff 48 RSP: 0018:ffffc9000ed8f3a0 EFLAGS: 00010293 RAX: ffffffff83f92922 RBX: ffffc9000ed8f460 RCX: ffff888032e8c880 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000 RBP: ffffc9000ed8f530 R08: ffff88801fc24293 R09: 1ffff11003f84852 R10: dffffc0000000000 R11: ffffed1003f84853 R12: dffffc0000000000 R13: 1ffff92001db1e88 R14: 1ffff110022ef815 R15: 0000000000000004 FS: 00007efce49e16c0(0000) GS:ffff88808d21b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007efce49e0fc8 CR3: 000000004318e000 CR4: 0000000000352ef0