EXT4-fs error (device loop0): 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 EXT4-fs (loop0): Remounting filesystem read-only ------------[ cut here ]------------ kernel BUG at fs/namei.c:2954! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 284 Comm: syz-executor Not tainted 6.1.138-syzkaller-00046-gdb710ea87c32 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:may_delete+0x701/0x710 fs/namei.c:2954 Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 84 fe ff ff 48 89 df e8 30 19 f4 ff e9 77 fe ff ff e8 c6 c0 af ff 0f 0b e8 bf c0 af ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 48 89 e5 41 56 53 RSP: 0018:ffffc90000d87c20 EFLAGS: 00010293 RAX: ffffffff81c03051 RBX: ffff8881005f4660 RCX: ffff888109810000 RDX: 0000000000000000 RSI: 0000000000200000 RDI: 0000000000000000 RBP: ffffc90000d87c88 R08: 0000000000000004 R09: 0000000000000003 R10: fffff520001b0f64 R11: 1ffff920001b0f64 R12: dffffc0000000000 R13: 0000000000000001 R14: ffff88813314b8b0 R15: 1ffff110200be8cc FS: 000055559139f500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff13579f68 CR3: 000000012fb82000 CR4: 00000000003506a0 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+0x105/0x220 fs/incfs/vfs.c:1995 deactivate_locked_super+0xb5/0x120 fs/super.c:334 deactivate_super+0xaf/0xe0 fs/super.c:365 cleanup_mnt+0x45f/0x4e0 fs/namespace.c:1186 __cleanup_mnt+0x19/0x20 fs/namespace.c:1193 task_work_run+0x1db/0x240 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7faebeb8fc97 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:00007fff30028538 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007faebeb8fc97 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff300285f0 RBP: 00007fff300285f0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff300296e0 R13: 00007faebec1089d R14: 00000000000495b0 R15: 00007fff3002a7b0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:may_delete+0x701/0x710 fs/namei.c:2954 Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 84 fe ff ff 48 89 df e8 30 19 f4 ff e9 77 fe ff ff e8 c6 c0 af ff 0f 0b e8 bf c0 af ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 48 89 e5 41 56 53 RSP: 0018:ffffc90000d87c20 EFLAGS: 00010293 RAX: ffffffff81c03051 RBX: ffff8881005f4660 RCX: ffff888109810000 RDX: 0000000000000000 RSI: 0000000000200000 RDI: 0000000000000000 RBP: ffffc90000d87c88 R08: 0000000000000004 R09: 0000000000000003 R10: fffff520001b0f64 R11: 1ffff920001b0f64 R12: dffffc0000000000 R13: 0000000000000001 R14: ffff88813314b8b0 R15: 1ffff110200be8cc FS: 000055559139f500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff13579f68 CR3: 000000012fb82000 CR4: 00000000003506b0