loop0: detected capacity change from 0 to 32768 JBD2: Ignoring recovery information on journal ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. (syz.0.0,5329,0):ocfs2_check_dir_entry:338 ERROR: bad entry in directory #4097: rec_len % 4 != 0 - offset=0, inode=18446673704965378049, rec_len=255, name_len=1 (syz.0.0,5329,0):ocfs2_prepare_dir_for_insert:4342 ERROR: status = -2 (syz.0.0,5329,0):ocfs2_mknod:302 ERROR: status = -2 (syz.0.0,5329,0):ocfs2_mknod:506 ERROR: status = -2 (syz.0.0,5329,0):ocfs2_create:679 ERROR: status = -2 (syz.0.0,5329,0):ocfs2_check_dir_entry:338 ERROR: bad entry in directory #4097: rec_len % 4 != 0 - offset=0, inode=18446673704965378049, rec_len=255, name_len=1 (syz.0.0,5329,0):ocfs2_prepare_dir_for_insert:4342 ERROR: status = -2 (syz.0.0,5329,0):ocfs2_mknod:302 ERROR: status = -2 (syz.0.0,5329,0):ocfs2_mknod:506 ERROR: status = -2 (syz.0.0,5329,0):ocfs2_create:679 ERROR: status = -2 loop0: detected capacity change from 32768 to 0 (syz.0.0,5329,0):ocfs2_assign_bh:2417 ERROR: status = -5 (syz.0.0,5329,0):ocfs2_inode_lock_full_nested:2512 ERROR: status = -5 (syz.0.0,5329,0):ocfs2_mknod:276 ERROR: status = -5 (syz.0.0,5329,0):ocfs2_create:679 ERROR: status = -5 VFS_BUG_ON_INODE(!S_ISDIR(inode->i_mode)): inode:ffff88805506a460 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: 5329 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 d2 a1 7c ff 44 89 fd e9 6a fd ff ff e8 c5 a1 7c ff 48 89 ef 48 c7 c6 80 53 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:ffffc9000cce7880 EFLAGS: 00010246 RAX: 75385c17aaaa6300 RBX: ffffc9000cce7c58 RCX: 75385c17aaaa6300 RDX: ffffc9000f532000 RSI: 0000000000000845 RDI: 0000000000000846 RBP: ffff88805506a460 R08: ffffc9000cce7467 R09: 1ffff9200199ce8c R10: dffffc0000000000 R11: fffff5200199ce8d R12: 0000000000008000 R13: ffffc9000cce7c20 R14: 0000000000008000 R15: ffff888012a8b818 FS: 00007f1d7d1ef6c0(0000) GS:ffff88808c891000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000002000 CR3: 00000000414b3000 CR4: 0000000000352ef0 Call Trace: path_openat+0x2c3/0x3860 fs/namei.c:4854 do_file_open+0x23e/0x4a0 fs/namei.c:4887 do_sys_openat2+0x113/0x200 fs/open.c:1364 do_sys_open fs/open.c:1370 [inline] __do_sys_creat fs/open.c:1448 [inline] __se_sys_creat fs/open.c:1442 [inline] __x64_sys_creat+0x8f/0xc0 fs/open.c:1442 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:0x7f1d7c39ce59 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:00007f1d7d1eefe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f1d7c615fa0 RCX: 00007f1d7c39ce59 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000080 RBP: 00007f1d7c432d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1d7c616038 R14: 00007f1d7c615fa0 R15: 00007ffda38fe428 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 d2 a1 7c ff 44 89 fd e9 6a fd ff ff e8 c5 a1 7c ff 48 89 ef 48 c7 c6 80 53 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:ffffc9000cce7880 EFLAGS: 00010246 RAX: 75385c17aaaa6300 RBX: ffffc9000cce7c58 RCX: 75385c17aaaa6300 RDX: ffffc9000f532000 RSI: 0000000000000845 RDI: 0000000000000846 RBP: ffff88805506a460 R08: ffffc9000cce7467 R09: 1ffff9200199ce8c R10: dffffc0000000000 R11: fffff5200199ce8d R12: 0000000000008000 R13: ffffc9000cce7c20 R14: 0000000000008000 R15: ffff888012a8b818 FS: 00007f1d7d1ef6c0(0000) GS:ffff88808c891000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1d7d1acfe8 CR3: 00000000414b3000 CR4: 0000000000352ef0