VFS_BUG_ON_INODE(!S_ISDIR(inode->i_mode)) encountered for inode ffff888053ffa4f8 fs ocfs2 mode 100000 opflags 0x2 flags 0x20 state 0x0 count 2 ------------[ cut here ]------------ kernel BUG at fs/namei.c:630! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 6136 Comm: syz.0.35 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 RIP: 0010:lookup_inode_permission_may_exec fs/namei.c:630 [inline] RIP: 0010:may_lookup fs/namei.c:1900 [inline] RIP: 0010:link_path_walk+0x18cb/0x18d0 fs/namei.c:2537 Code: e8 5a 1f ea fe 90 0f 0b e8 b2 96 83 ff 44 89 fd e9 6a fd ff ff e8 a5 96 83 ff 48 89 ef 48 c7 c6 40 d8 79 8b e8 36 1f ea fe 90 <0f> 0b 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 RSP: 0018:ffffc90003cefa40 EFLAGS: 00010282 RAX: 000000000000008e RBX: ffffc90003cefc78 RCX: e8f637466cb74a00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffff888053ffa4f8 R08: ffffc90003cef707 R09: 1ffff9200079dee0 R10: dffffc0000000000 R11: fffff5200079dee1 R12: 0000000000008000 R13: ffffc90003cefc40 R14: 0000000000008000 R15: ffff88807b3f2220 FS: 0000555561b17500(0000) GS:ffff888125f4f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc3c893f000 CR3: 000000007e820000 CR4: 00000000003526f0 Call Trace: path_lookupat+0xe4/0x8c0 fs/namei.c:2745 filename_lookup+0x212/0x570 fs/namei.c:2775 user_path_at+0x3a/0x60 fs/namei.c:3567 do_mount fs/namespace.c:4042 [inline] __do_sys_mount fs/namespace.c:4234 [inline] __se_sys_mount+0x2d4/0x410 fs/namespace.c:4211 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fec9eb8f749 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:00007ffd7c9818a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fec9ede5fa0 RCX: 00007fec9eb8f749 RDX: 0000000000000000 RSI: 0000200000000500 RDI: 0000000000000000 RBP: 00007fec9ec13f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fec9ede5fa0 R14: 00007fec9ede5fa0 R15: 0000000000000005 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:lookup_inode_permission_may_exec fs/namei.c:630 [inline] RIP: 0010:may_lookup fs/namei.c:1900 [inline] RIP: 0010:link_path_walk+0x18cb/0x18d0 fs/namei.c:2537 Code: e8 5a 1f ea fe 90 0f 0b e8 b2 96 83 ff 44 89 fd e9 6a fd ff ff e8 a5 96 83 ff 48 89 ef 48 c7 c6 40 d8 79 8b e8 36 1f ea fe 90 <0f> 0b 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 RSP: 0018:ffffc90003cefa40 EFLAGS: 00010282 RAX: 000000000000008e RBX: ffffc90003cefc78 RCX: e8f637466cb74a00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffff888053ffa4f8 R08: ffffc90003cef707 R09: 1ffff9200079dee0 R10: dffffc0000000000 R11: fffff5200079dee1 R12: 0000000000008000 R13: ffffc90003cefc40 R14: 0000000000008000 R15: ffff88807b3f2220 FS: 0000555561b17500(0000) GS:ffff888125e4f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f909ef91000 CR3: 000000007e820000 CR4: 00000000003526f0