EXT4-fs error (device loop4): htree_dirblock_to_tree:1112: inode #2: block 13: comm syz-executor: 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:2933!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 290 Comm: syz-executor Not tainted 5.15.178-syzkaller-00013-g7d1f9b5c2ff5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:may_delete+0x6eb/0x6f0 fs/namei.c:2933
Code: 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 7f fe ff ff 4c 89 e7 e8 d6 6d f4 ff e9 72 fe ff ff e8 cc 02 b2 ff 0f 0b e8 c5 02 b2 ff <0f> 0b 0f 1f 00 55 48 89 e5 41 56 53 48 89 fb e8 b1 02 b2 ff 4c 8d
RSP: 0000:ffffc90000a47c70 EFLAGS: 00010293
RAX: ffffffff81be69eb RBX: ffff888111cf6580 RCX: ffff88811e16e2c0
RDX: 0000000000000000 RSI: 0000000000200000 RDI: 0000000000000000
RBP: ffffc90000a47cd8 R08: ffffffff81be637f R09: 0000000000000003
R10: fffff52000148f70 R11: dffffc0000000001 R12: ffff888111c5bee0
R13: 1ffff1102238b7dc R14: ffff888131cebbc8 R15: dffffc0000000000
FS:  0000555557de6500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000400000000140 CR3: 0000000125d86000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 vfs_rmdir+0x32/0x470 fs/namei.c:4130
 incfs_kill_sb+0x113/0x230 fs/incfs/vfs.c:1989
 deactivate_locked_super+0xad/0x110 fs/super.c:335
 deactivate_super+0xbe/0xf0 fs/super.c:366
 cleanup_mnt+0x45c/0x510 fs/namespace.c:1143
 __cleanup_mnt+0x19/0x20 fs/namespace.c:1150
 task_work_run+0x129/0x190 kernel/task_work.c:188
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0xc4/0xe0 kernel/entry/common.c:181
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:214
 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
 syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:307
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd7208bc497
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:00007ffc5d98e9e8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fd7208bc497
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffc5d98eaa0
RBP: 00007ffc5d98eaa0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000202 R12: 00007ffc5d98fb90
R13: 00007fd72093c08c R14: 0000000000016b8f R15: 00007ffc5d990c60
 </TASK>
Modules linked in:
---[ end trace a859915aa730f527 ]---
RIP: 0010:may_delete+0x6eb/0x6f0 fs/namei.c:2933
Code: 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 7f fe ff ff 4c 89 e7 e8 d6 6d f4 ff e9 72 fe ff ff e8 cc 02 b2 ff 0f 0b e8 c5 02 b2 ff <0f> 0b 0f 1f 00 55 48 89 e5 41 56 53 48 89 fb e8 b1 02 b2 ff 4c 8d
RSP: 0000:ffffc90000a47c70 EFLAGS: 00010293
RAX: ffffffff81be69eb RBX: ffff888111cf6580 RCX: ffff88811e16e2c0
RDX: 0000000000000000 RSI: 0000000000200000 RDI: 0000000000000000
RBP: ffffc90000a47cd8 R08: ffffffff81be637f R09: 0000000000000003
R10: fffff52000148f70 R11: dffffc0000000001 R12: ffff888111c5bee0
R13: 1ffff1102238b7dc R14: ffff888131cebbc8 R15: dffffc0000000000
FS:  0000555557de6500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2df1dff8 CR3: 0000000125d86000 CR4: 00000000003526a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400