gfs2: fsid=syz:syz.s: H: s:SH f:AH e:0 p:5349 [syz.4.215] do_inode_permission fs/namei.c:461 [inline] gfs2: fsid=syz:syz.s: H: s:SH f:AH e:0 p:5349 [syz.4.215] inode_permission+0x1d0/0x3b4 fs/namei.c:528 gfs2: fsid=syz:syz.s: I: n:12/2341 t:4 f:0x00 d:0x00000001 s:4088 p:0 gfs2: fsid=syz:syz.s: about to withdraw this file system ------------[ cut here ]------------ kernel BUG at fs/gfs2/util.c:352! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 5349 Comm: syz.4.215 Not tainted 6.1.131-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : gfs2_withdraw+0x1338/0x140c fs/gfs2/util.c:352 lr : gfs2_withdraw+0x1338/0x140c fs/gfs2/util.c:352 sp : ffff8000223370e0 x29: ffff800022337210 x28: ffff800022337160 x27: ffff700004466e2c x26: dfff800000000000 x25: 1fffe00019363857 x24: 000000000001a087 x23: 0000000000000000 x22: ffff0000c9b1c340 x21: ffff0000c9b1c0a8 x20: ffff0000c9b1c2bc x19: ffff0000c9b1c000 x18: 1fffe0003679c776 x17: 0000000000000000 x16: ffff800012327ebc x15: 0000000000000000 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000a49b194 x8 : ffff0000c6f6b780 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000223369f8 x4 : ffff800015be5320 x3 : ffff8000085888b0 x2 : 0000000000000001 x1 : 0000000000000004 x0 : 0000000000000000 Call trace: gfs2_withdraw+0x1338/0x140c fs/gfs2/util.c:352 gfs2_consist_inode_i+0xf0/0x10c fs/gfs2/util.c:468 gfs2_dinode_in fs/gfs2/glops.c:464 [inline] gfs2_inode_refresh+0x964/0xd9c fs/gfs2/glops.c:484 inode_go_instantiate+0x4c/0x68 fs/gfs2/glops.c:503 gfs2_instantiate+0x17c/0x2c8 fs/gfs2/glock.c:520 gfs2_glock_holder_ready fs/gfs2/glock.c:1328 [inline] gfs2_glock_wait+0x1b8/0x298 fs/gfs2/glock.c:1348 gfs2_glock_nq+0xa90/0x11d8 fs/gfs2/glock.c:1591 gfs2_glock_nq_init fs/gfs2/glock.h:255 [inline] gfs2_permission+0x280/0x46c fs/gfs2/inode.c:1865 do_inode_permission fs/namei.c:461 [inline] inode_permission+0x1d0/0x3b4 fs/namei.c:528 may_open+0x290/0x3bc fs/namei.c:3254 do_open fs/namei.c:3624 [inline] path_openat+0x1cec/0x2548 fs/namei.c:3783 do_filp_open+0x1bc/0x3cc fs/namei.c:3810 do_sys_openat2+0x128/0x3e0 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_openat fs/open.c:1350 [inline] __se_sys_openat fs/open.c:1345 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1345 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: f94013e0 97937260 17ffff55 9781669b (d4210000) ---[ end trace 0000000000000000 ]---