EXT4-fs error (device loop0): ext4_readdir:260: inode #11: block 4: comm syz-executor: path /4/file1/lost+found: bad entry in directory: inode out of bounds - offset=0, inode=7947, rec_len=12, size=4096 fake=1 EXT4-fs error (device loop0): ext4_empty_dir:3048: inode #11: block 4: comm syz-executor: bad entry in directory: inode out of bounds - offset=0, inode=7947, rec_len=12, size=4096 fake=1 EXT4-fs warning (device loop0): ext4_empty_dir:3050: inode #11: comm syz-executor: directory missing '.' ------------[ cut here ]------------ kernel BUG at fs/namei.c:2894! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 340 Comm: syz-executor Not tainted 5.4.292-syzkaller-00021-gcd8e74fa0fa3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:may_delete+0x7b1/0x7c0 fs/namei.c:2894 Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c dd fd ff ff 48 89 df e8 90 bf f6 ff e9 d0 fd ff ff e8 76 c5 c8 ff 0f 0b e8 6f c5 c8 ff <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 48 89 e5 41 56 53 RSP: 0018:ffff8881d70c7bd0 EFLAGS: 00010293 RAX: ffffffff8196b971 RBX: ffff8881e9c81bb0 RCX: ffff8881f32fde80 RDX: 0000000000000000 RSI: 0000000000200000 RDI: 0000000000000000 RBP: ffff8881d70c7c50 R08: 0000000000000004 R09: 0000000000000003 R10: ffffed103ae18f60 R11: 1ffff1103ae18f60 R12: ffff8881cad40100 R13: 1ffff1103d390376 R14: ffff8881e9c81bc8 R15: ffff8881e9c83690 FS: 0000555575462500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555955554a8 CR3: 00000001d7088000 CR4: 00000000003426b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vfs_rmdir+0x2c/0x3e0 fs/namei.c:4008 incfs_kill_sb+0xfe/0x210 fs/incfs/vfs.c:1944 deactivate_locked_super+0xa0/0x100 fs/super.c:335 deactivate_super+0x14f/0x1d0 fs/super.c:366 cleanup_mnt+0x446/0x500 fs/namespace.c:1102 __cleanup_mnt+0x19/0x20 fs/namespace.c:1109 task_work_run+0x146/0x170 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x195/0x1b0 arch/x86/entry/common.c:163 prepare_exit_to_usermode+0x18e/0x1f0 arch/x86/entry/common.c:194 syscall_return_slowpath arch/x86/entry/common.c:274 [inline] do_syscall_64+0x13e/0x170 arch/x86/entry/common.c:300 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x7f05cae97c97 Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fffaa7ad8a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f05cae97c97 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fffaa7ad960 RBP: 00007fffaa7ad960 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fffaa7aea50 R13: 00007f05caf1889d R14: 000000000000afbf R15: 00007fffaa7afb20 Modules linked in: ---[ end trace 509bc9fdfa67fc15 ]--- RIP: 0010:may_delete+0x7b1/0x7c0 fs/namei.c:2894 Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c dd fd ff ff 48 89 df e8 90 bf f6 ff e9 d0 fd ff ff e8 76 c5 c8 ff 0f 0b e8 6f c5 c8 ff <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 48 89 e5 41 56 53 RSP: 0018:ffff8881d70c7bd0 EFLAGS: 00010293 RAX: ffffffff8196b971 RBX: ffff8881e9c81bb0 RCX: ffff8881f32fde80 RDX: 0000000000000000 RSI: 0000000000200000 RDI: 0000000000000000 RBP: ffff8881d70c7c50 R08: 0000000000000004 R09: 0000000000000003 R10: ffffed103ae18f60 R11: 1ffff1103ae18f60 R12: ffff8881cad40100 R13: 1ffff1103d390376 R14: ffff8881e9c81bc8 R15: ffff8881e9c83690 FS: 0000555575462500(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f13adb3ad58 CR3: 00000001d7088000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400