loop0: detected capacity change from 0 to 32768 (syz.0.0,5328,0):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC. (syz.0.0,5328,0):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC. JBD2: Ignoring recovery information on journal ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. loop0: detected capacity change from 32768 to 0 (syz.0.0,5328,0):ocfs2_find_entry_id:420 ERROR: status = -5 VFS_BUG_ON_INODE(!S_ISDIR(inode->i_mode)): inode:ffff888047e9a460 fs:ocfs2 mode:100000 opflags:0x2 flags:0x20 state:0x0 count:2 ------------[ cut here ]------------ kernel BUG at fs/namei.c:682! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5328 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 04/01/2014 RIP: 0010:lookup_inode_permission_may_exec fs/namei.c:682 [inline] RIP: 0010:may_lookup fs/namei.c:1957 [inline] RIP: 0010:link_path_walk+0x18cb/0x18d0 fs/namei.c:2600 Code: e8 ca 7c 03 00 90 0f 0b e8 72 a7 7c ff 44 89 fd e9 6a fd ff ff e8 65 a7 7c ff 48 89 ef 48 c7 c6 c0 51 de 8b e8 a6 7c 03 00 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:ffffc9000f907a60 EFLAGS: 00010246 RAX: 507c952a2122ee00 RBX: ffffc9000f907c98 RCX: 507c952a2122ee00 RDX: ffffc9000efea000 RSI: 000000000000081d RDI: 000000000000081e RBP: ffff888047e9a460 R08: ffffc9000f907647 R09: 1ffff92001f20ec8 R10: dffffc0000000000 R11: fffff52001f20ec9 R12: 0000000000008000 R13: ffffc9000f907c60 R14: 0000000000008000 R15: ffff88803778ed18 FS: 00007fccf90066c0(0000) GS:ffff88808c893000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa9f0742000 CR3: 00000000410e0000 CR4: 0000000000352ef0 Call Trace: path_lookupat+0xe4/0x8c0 fs/namei.c:2808 filename_lookup+0x256/0x5d0 fs/namei.c:2838 do_fchownat+0xfa/0x250 fs/open.c:800 __do_sys_lchown fs/open.c:829 [inline] __se_sys_lchown fs/open.c:827 [inline] __x64_sys_lchown+0x85/0xa0 fs/open.c:827 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fccf819ce59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fccf9005fe8 EFLAGS: 00000246 ORIG_RAX: 000000000000005e RAX: ffffffffffffffda RBX: 00007fccf8415fa0 RCX: 00007fccf819ce59 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000280 RBP: 00007fccf8232d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fccf8416038 R14: 00007fccf8415fa0 R15: 00007ffea07583b8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:lookup_inode_permission_may_exec fs/namei.c:682 [inline] RIP: 0010:may_lookup fs/namei.c:1957 [inline] RIP: 0010:link_path_walk+0x18cb/0x18d0 fs/namei.c:2600 Code: e8 ca 7c 03 00 90 0f 0b e8 72 a7 7c ff 44 89 fd e9 6a fd ff ff e8 65 a7 7c ff 48 89 ef 48 c7 c6 c0 51 de 8b e8 a6 7c 03 00 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:ffffc9000f907a60 EFLAGS: 00010246 RAX: 507c952a2122ee00 RBX: ffffc9000f907c98 RCX: 507c952a2122ee00 RDX: ffffc9000efea000 RSI: 000000000000081d RDI: 000000000000081e RBP: ffff888047e9a460 R08: ffffc9000f907647 R09: 1ffff92001f20ec8 R10: dffffc0000000000 R11: fffff52001f20ec9 R12: 0000000000008000 R13: ffffc9000f907c60 R14: 0000000000008000 R15: ffff88803778ed18 FS: 00007fccf90066c0(0000) GS:ffff88808c893000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa9f0742000 CR3: 00000000410e0000 CR4: 0000000000352ef0