Assertion failure in dx_insert_block() at fs/ext4/namei.c:1384: 'count < dx_get_limit(entries)' ------------[ cut here ]------------ kernel BUG at fs/ext4/namei.c:1384! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 10376 Comm: syz.2.1680 Not tainted 5.15.162-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:dx_insert_block fs/ext4/namei.c:1384 [inline] RIP: 0010:do_split+0x244a/0x2480 fs/ext4/namei.c:2077 Code: bc 79 5b ff 48 c7 c7 00 83 9c 8a 48 c7 c6 7e e0 17 8c 48 c7 c2 38 75 9c 8a b9 68 05 00 00 49 c7 c0 60 83 9c 8a e8 06 71 f8 07 <0f> 0b e8 8f 79 5b ff 48 c7 c7 00 83 9c 8a 48 c7 c6 7e e0 17 8c 48 RSP: 0018:ffffc9000167f220 EFLAGS: 00010246 RAX: 000000000000005f RBX: 0000000000000000 RCX: 94e34bbdf3d11600 RDX: ffffc9000cb55000 RSI: 00000000000220cd RDI: 00000000000220ce RBP: ffffc9000167f410 R08: ffffffff816683dc R09: ffffed10173667a8 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88805bacb020 R13: 0000000000000000 R14: 1ffff1100b759604 R15: ffff88805bacb020 FS: 00007f8c3801c6c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c361d00 CR3: 000000007f3b0000 CR4: 00000000003506e0 Call Trace: make_indexed_dir+0xdb0/0x13b0 fs/ext4/namei.c:2343 ext4_add_entry+0xde2/0x12b0 fs/ext4/namei.c:2455 ext4_rename fs/ext4/namei.c:3947 [inline] ext4_rename2+0x2835/0x42e0 fs/ext4/namei.c:4222 vfs_rename+0xd32/0x10f0 fs/namei.c:4832 do_renameat2+0xe0f/0x1700 fs/namei.c:4985 __do_sys_rename fs/namei.c:5031 [inline] __se_sys_rename fs/namei.c:5029 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:5029 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f8c3959bbd9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8c3801c048 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f8c39729f60 RCX: 00007f8c3959bbd9 RDX: 0000000000000000 RSI: 0000000020000f40 RDI: 0000000020000600 RBP: 00007f8c3960ae60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f8c39729f60 R15: 00007ffc2ce5fbe8 Modules linked in: ---[ end trace 205e67fb4046f277 ]--- RIP: 0010:dx_insert_block fs/ext4/namei.c:1384 [inline] RIP: 0010:do_split+0x244a/0x2480 fs/ext4/namei.c:2077 Code: bc 79 5b ff 48 c7 c7 00 83 9c 8a 48 c7 c6 7e e0 17 8c 48 c7 c2 38 75 9c 8a b9 68 05 00 00 49 c7 c0 60 83 9c 8a e8 06 71 f8 07 <0f> 0b e8 8f 79 5b ff 48 c7 c7 00 83 9c 8a 48 c7 c6 7e e0 17 8c 48 RSP: 0018:ffffc9000167f220 EFLAGS: 00010246 RAX: 000000000000005f RBX: 0000000000000000 RCX: 94e34bbdf3d11600 RDX: ffffc9000cb55000 RSI: 00000000000220cd RDI: 00000000000220ce RBP: ffffc9000167f410 R08: ffffffff816683dc R09: ffffed10173667a8 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88805bacb020 R13: 0000000000000000 R14: 1ffff1100b759604 R15: ffff88805bacb020 FS: 00007f8c3801c6c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffcf66dbee8 CR3: 000000007f3b0000 CR4: 00000000003506e0