EXT4-fs error (device loop9): ext4_search_dir:1549: inode #2: block 16: comm syz.9.1143: bad entry in directory: inode out of bounds - offset=44, inode=12, rec_len=16, size=1024 fake=0 EXT4-fs error (device loop9): ext4_search_dir:1549: inode #2: block 16: comm syz.9.1143: bad entry in directory: inode out of bounds - offset=44, inode=12, rec_len=16, size=1024 fake=0 EXT4-fs error (device loop9): ext4_search_dir:1549: inode #2: block 16: comm syz.9.1143: bad entry in directory: inode out of bounds - offset=44, inode=12, rec_len=16, size=1024 fake=0 ------------[ cut here ]------------ kernel BUG at fs/ext4/mballoc.c:1977! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 4289 Comm: syz.9.1143 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:mb_mark_used+0x14b5/0x14d0 fs/ext4/mballoc.c:1977 Code: ff ff e8 be 3d 8c ff 0f 0b e8 b7 3d 8c ff 0f 0b e8 b0 3d 8c ff 0f 0b e8 a9 3d 8c ff 0f 0b e8 a2 3d 8c ff 0f 0b e8 9b 3d 8c ff <0f> 0b e8 94 3d 8c ff 0f 0b e8 8d 3d 8c ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc90001227688 EFLAGS: 00010283 RAX: ffffffff81dc8145 RBX: 0000000000000008 RCX: 0000000000080000 RDX: ffffc9000aea1000 RSI: 000000000000008e RDI: 000000000000008f RBP: ffffc90001227760 R08: dffffc0000000000 R09: ffffed1022057e01 R10: ffffed1022057e01 R11: 1ffff11022057e00 R12: ffffffff80000000 R13: 0000000000002000 R14: ffffc90001227830 R15: ffff88810459b000 FS: 00007f40e0be96c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000142b1d000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_trim_extent fs/ext4/mballoc.c:6454 [inline] ext4_try_to_trim_range+0x5eb/0xff0 fs/ext4/mballoc.c:6514 ext4_trim_all_free fs/ext4/mballoc.c:6576 [inline] ext4_trim_fs+0xc1b/0x1360 fs/ext4/mballoc.c:6667 __ext4_ioctl fs/ext4/ioctl.c:1122 [inline] ext4_ioctl+0x1fc7/0x33c0 fs/ext4/ioctl.c:1282 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0x121/0x1a0 fs/ioctl.c:860 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:860 x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f40e2181749 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:00007f40e0be9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f40e23d7fa0 RCX: 00007f40e2181749 RDX: 0000200000000080 RSI: 00000000c0185879 RDI: 0000000000000004 RBP: 00007f40e2205f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f40e23d8038 R14: 00007f40e23d7fa0 R15: 00007ffd5e88a1c8 Modules linked in: ---[ end trace b0fa42c761accb1b ]--- RIP: 0010:mb_mark_used+0x14b5/0x14d0 fs/ext4/mballoc.c:1977 Code: ff ff e8 be 3d 8c ff 0f 0b e8 b7 3d 8c ff 0f 0b e8 b0 3d 8c ff 0f 0b e8 a9 3d 8c ff 0f 0b e8 a2 3d 8c ff 0f 0b e8 9b 3d 8c ff <0f> 0b e8 94 3d 8c ff 0f 0b e8 8d 3d 8c ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc90001227688 EFLAGS: 00010283 RAX: ffffffff81dc8145 RBX: 0000000000000008 RCX: 0000000000080000 RDX: ffffc9000aea1000 RSI: 000000000000008e RDI: 000000000000008f RBP: ffffc90001227760 R08: dffffc0000000000 R09: ffffed1022057e01 R10: ffffed1022057e01 R11: 1ffff11022057e00 R12: ffffffff80000000 R13: 0000000000002000 R14: ffffc90001227830 R15: ffff88810459b000 FS: 00007f40e0be96c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000142b1d000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400