function = gfs2_dirent_scan, file = fs/gfs2/dir.c, line = 602 gfs2: fsid=syz:syz.s: G: s:SH n:2/925 f:qob t:SH d:EX/0 a:0 v:0 r:3 m:20 p:1 gfs2: fsid=syz:syz.s: H: s:SH f:H e:0 p:5249 [syz.3.237] iterate_dir+0x224/0x560 gfs2: fsid=syz:syz.s: I: n:12/2341 t:4 f:0x00 d:0x00000001 s:3864 p:0 gfs2: fsid=syz:syz.s: about to withdraw this file system ------------[ cut here ]------------ kernel BUG at fs/gfs2/util.c:352! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5249 Comm: syz.3.237 Tainted: G W 6.1.122-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:gfs2_withdraw+0x1542/0x1550 fs/gfs2/util.c:352 Code: fd ff ff 48 8b 4c 24 18 80 e1 07 80 c1 03 38 c1 0f 8c 94 fd ff ff 48 8b 7c 24 18 e8 e8 34 18 fe e9 85 fd ff ff e8 ae a1 c0 fd <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 41 57 41 56 53 41 89 RSP: 0018:ffffc9001bedf880 EFLAGS: 00010293 RAX: ffffffff83c9fac2 RBX: ffff8880555882bc RCX: ffff88801a7d0000 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000 RBP: ffffc9001bedf9f0 R08: ffffffff83c9e896 R09: fffff520037dbeb1 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888055588000 R13: dffffc0000000000 R14: 0000000000000004 R15: 1ffff920037dbf24 FS: 00007fd73b5e86c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555fd505c8 CR3: 000000001dbfa000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_dirent_scan+0x512/0x640 fs/gfs2/dir.c:602 gfs2_dir_read+0x82b/0x1af0 fs/gfs2/dir.c:1599 gfs2_readdir+0x14a/0x1a0 fs/gfs2/file.c:115 iterate_dir+0x224/0x560 __do_sys_getdents fs/readdir.c:286 [inline] __se_sys_getdents+0x1eb/0x4c0 fs/readdir.c:271 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fd73a785d29 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:00007fd73b5e8038 EFLAGS: 00000246 ORIG_RAX: 000000000000004e RAX: ffffffffffffffda RBX: 00007fd73a975fa0 RCX: 00007fd73a785d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fd73a801b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd73a975fa0 R15: 00007ffcfadd96a8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_withdraw+0x1542/0x1550 fs/gfs2/util.c:352 Code: fd ff ff 48 8b 4c 24 18 80 e1 07 80 c1 03 38 c1 0f 8c 94 fd ff ff 48 8b 7c 24 18 e8 e8 34 18 fe e9 85 fd ff ff e8 ae a1 c0 fd <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 41 57 41 56 53 41 89 RSP: 0018:ffffc9001bedf880 EFLAGS: 00010293 RAX: ffffffff83c9fac2 RBX: ffff8880555882bc RCX: ffff88801a7d0000 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000 RBP: ffffc9001bedf9f0 R08: ffffffff83c9e896 R09: fffff520037dbeb1 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888055588000 R13: dffffc0000000000 R14: 0000000000000004 R15: 1ffff920037dbf24 FS: 00007fd73b5e86c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9e5fbc8f98 CR3: 000000001dbfa000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400