EXT4-fs error (device loop5): ext4_mb_mark_diskspace_used:3342: comm syz.5.21: Allocating blocks 497-513 which overlap fs metadata EXT4-fs (loop5): pa ffff888125fad348: logic 176, phys. 481, len 2 EXT4-fs error (device loop5): ext4_mb_release_inode_pa:4359: group 0, free 0, pa_free 1 ------------[ cut here ]------------ kernel BUG at fs/ext4/extents.c:1014! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 512 Comm: syz.5.21 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 RIP: 0010:ext4_ext_insert_index+0x52d/0x530 fs/ext4/extents.c:1014 Code: 4c 89 fa e9 ca fd ff ff 44 89 f1 80 e1 07 fe c1 38 c1 0f 8c dd fd ff ff 4c 89 f7 e8 9d 94 d3 ff e9 d0 fd ff ff e8 13 a5 99 ff <0f> 0b 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 81 ec c0 00 00 RSP: 0018:ffffc90000f06ae0 EFLAGS: 00010293 RAX: ffffffff81ca008d RBX: ffff888121638430 RCX: ffff88812c18cf00 RDX: 0000000000000000 RSI: 00000000fffffffd RDI: 0000000000000000 RBP: ffffc90000f06b50 R08: dffffc0000000000 R09: ffffed1025f99790 R10: ffffed1025f99790 R11: 1ffff11025f9978f R12: 0000000000000000 R13: 00000000000000f9 R14: 00000000fffffffd R15: 0000000000000054 FS: 00007fb9cfb396c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000020000003e000 CR3: 0000000119641000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_ext_split fs/ext4/extents.c:1272 [inline] ext4_ext_create_new_leaf fs/ext4/extents.c:1414 [inline] ext4_ext_insert_extent+0x38c3/0x4530 fs/ext4/extents.c:2098 ext4_ext_map_blocks+0x148f/0x5d40 fs/ext4/extents.c:4356 ext4_map_blocks+0x978/0x1bc0 fs/ext4/inode.c:674 _ext4_get_block+0x1bb/0x4b0 fs/ext4/inode.c:817 ext4_get_block_unwritten+0x2a/0x40 fs/ext4/inode.c:848 ext4_block_write_begin+0x567/0x1330 fs/ext4/inode.c:1101 ext4_write_begin+0x651/0x15a0 fs/ext4/ext4_jbd2.h:-1 ext4_da_write_begin+0x455/0xe80 fs/ext4/inode.c:3033 generic_perform_write+0x2be/0x510 mm/filemap.c:3509 ext4_buffered_write_iter+0x4b8/0x640 fs/ext4/file.c:271 ext4_file_write_iter+0x536/0x1980 fs/ext4/file.c:-1 call_write_iter include/linux/fs.h:2066 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0x725/0xd60 fs/read_write.c:605 ksys_write+0x140/0x240 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:667 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fb9cfcc8ec9 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:00007fb9cfb39038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fb9cff1ffa0 RCX: 00007fb9cfcc8ec9 RDX: 00000000fffffdab RSI: 0000200000000000 RDI: 0000000000000006 RBP: 00007fb9cfd4bf91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb9cff20038 R14: 00007fb9cff1ffa0 R15: 00007ffe3d1fd298 Modules linked in: ---[ end trace 1e7983d7b97b3e2f ]--- RIP: 0010:ext4_ext_insert_index+0x52d/0x530 fs/ext4/extents.c:1014 Code: 4c 89 fa e9 ca fd ff ff 44 89 f1 80 e1 07 fe c1 38 c1 0f 8c dd fd ff ff 4c 89 f7 e8 9d 94 d3 ff e9 d0 fd ff ff e8 13 a5 99 ff <0f> 0b 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 81 ec c0 00 00 RSP: 0018:ffffc90000f06ae0 EFLAGS: 00010293 RAX: ffffffff81ca008d RBX: ffff888121638430 RCX: ffff88812c18cf00 RDX: 0000000000000000 RSI: 00000000fffffffd RDI: 0000000000000000 RBP: ffffc90000f06b50 R08: dffffc0000000000 R09: ffffed1025f99790 R10: ffffed1025f99790 R11: 1ffff11025f9978f R12: 0000000000000000 R13: 00000000000000f9 R14: 00000000fffffffd R15: 0000000000000054 FS: 00007fb9cfb396c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4d442c6dac CR3: 0000000119641000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400