EXT4-fs error (device loop0): htree_dirblock_to_tree:1112: inode #2: block 13: comm syz-executor223: bad entry in directory: rec_len is smaller than minimal - offset=76, inode=0, rec_len=0, size=1024 fake=0 ------------[ cut here ]------------ kernel BUG at fs/namei.c:2954! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 296 Comm: syz-executor223 Not tainted 6.1.115-syzkaller-00017-g22b7ded8b55b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:may_delete+0x6eb/0x6f0 fs/namei.c:2954 Code: 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 7f fe ff ff 4c 89 e7 e8 16 6b f3 ff e9 72 fe ff ff e8 0c f9 ab ff 0f 0b e8 05 f9 ab ff <0f> 0b 0f 1f 00 55 48 89 e5 41 56 53 48 89 fb e8 f1 f8 ab ff 4c 8d RSP: 0018:ffffc90000f27b18 EFLAGS: 00010293 RAX: ffffffff81c98dab RBX: ffff88810d878360 RCX: ffff88811daa0000 RDX: 0000000000000000 RSI: 0000000000200000 RDI: 0000000000000000 RBP: ffffc90000f27b80 R08: ffffffff81c9873f R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff88810db4e440 R13: 1ffff11021b69c88 R14: ffff88810057c608 R15: dffffc0000000000 FS: 000055556b6f0380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055556b709778 CR3: 00000001222b6000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vfs_rmdir+0x32/0x500 fs/namei.c:4170 incfs_kill_sb+0x113/0x230 fs/incfs/vfs.c:1995 deactivate_locked_super+0xad/0x110 fs/super.c:334 deactivate_super+0xbe/0xf0 fs/super.c:365 cleanup_mnt+0x485/0x510 fs/namespace.c:1186 __cleanup_mnt+0x19/0x20 fs/namespace.c:1193 task_work_run+0x24d/0x2e0 kernel/task_work.c:203 ptrace_notify+0x29e/0x350 kernel/signal.c:2376 ptrace_report_syscall include/linux/ptrace.h:420 [inline] ptrace_report_syscall_exit include/linux/ptrace.h:482 [inline] syscall_exit_work kernel/entry/common.c:258 [inline] syscall_exit_to_user_mode_prepare kernel/entry/common.c:285 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x99/0x130 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f4e97b7e507 Code: 07 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffdb0588e98 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f4e97b7e507 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffdb0588f50 RBP: 00007ffdb0588f50 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000202 R12: 00007ffdb058a040 R13: 000055556b6f9700 R14: 431bde82d7b634db R15: 00007ffdb058b0d0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:may_delete+0x6eb/0x6f0 fs/namei.c:2954 Code: 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 7f fe ff ff 4c 89 e7 e8 16 6b f3 ff e9 72 fe ff ff e8 0c f9 ab ff 0f 0b e8 05 f9 ab ff <0f> 0b 0f 1f 00 55 48 89 e5 41 56 53 48 89 fb e8 f1 f8 ab ff 4c 8d RSP: 0018:ffffc90000f27b18 EFLAGS: 00010293 RAX: ffffffff81c98dab RBX: ffff88810d878360 RCX: ffff88811daa0000 RDX: 0000000000000000 RSI: 0000000000200000 RDI: 0000000000000000 RBP: ffffc90000f27b80 R08: ffffffff81c9873f R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff88810db4e440 R13: 1ffff11021b69c88 R14: ffff88810057c608 R15: dffffc0000000000 FS: 000055556b6f0380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055556b709778 CR3: 00000001222b6000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400