EXT4-fs error (device loop1): ext4_free_blocks:6587: comm syz.1.17: Freeing blocks not in datazone - block = 0, count = 16 ------------[ cut here ]------------ kernel BUG at fs/ext4/extents.c:2153! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 6117 Comm: syz.1.17 Not tainted 6.16.0-rc5-syzkaller-00266-g3f31a806a62e #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:ext4_ext_insert_extent+0x4ab7/0x4af0 fs/ext4/extents.c:2153 Code: 89 d9 80 e1 07 fe c1 38 c1 0f 8c a6 e7 ff ff 48 89 df e8 0c 88 b6 ff e9 99 e7 ff ff e8 f2 32 55 ff 90 0f 0b e8 ea 32 55 ff 90 <0f> 0b e8 e2 32 55 ff 90 0f 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c RSP: 0018:ffffc9000b6b6b20 EFLAGS: 00010287 RAX: ffffffff826aff66 RBX: 000000000000003f RCX: 0000000000080000 RDX: ffffc9000db60000 RSI: 000000000001d186 RDI: 000000000001d187 RBP: ffffc9000b6b6cd0 R08: ffff888055908e87 R09: 1ffff1100ab211d0 R10: dffffc0000000000 R11: ffffed100ab211d1 R12: 000000000000003f R13: dffffc0000000000 R14: ffff88807774a430 R15: ffff88803119db00 FS: 00007fddee3d56c0(0000) GS:ffff888125c4f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9c898a1000 CR3: 0000000031fb6000 CR4: 00000000003526f0 Call Trace: ext4_ext_map_blocks+0x1792/0x6ac0 fs/ext4/extents.c:4404 ext4_map_create_blocks fs/ext4/inode.c:609 [inline] ext4_map_blocks+0x931/0x18d0 fs/ext4/inode.c:813 mpage_map_one_extent fs/ext4/inode.c:2348 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2401 [inline] ext4_do_writepages+0x212f/0x3f30 fs/ext4/inode.c:2863 ext4_writepages+0x205/0x350 fs/ext4/inode.c:2953 do_writepages+0x32b/0x550 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] file_write_and_wait_range+0x22c/0x330 mm/filemap.c:794 generic_buffers_fsync_noflush+0x6c/0x180 fs/buffer.c:609 ext4_fsync_nojournal fs/ext4/fsync.c:88 [inline] ext4_sync_file+0x332/0xb20 fs/ext4/fsync.c:147 generic_write_sync include/linux/fs.h:3031 [inline] ext4_buffered_write_iter+0x2ca/0x3a0 fs/ext4/file.c:305 ext4_file_write_iter+0x298/0x1bc0 fs/ext4/file.c:-1 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x548/0xa90 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x193/0x220 fs/read_write.c:798 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fddf058e929 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:00007fddee3d5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007fddf07b6080 RCX: 00007fddf058e929 RDX: 000000000000fdef RSI: 0000200000000140 RDI: 0000000000000004 RBP: 00007fddf0610b39 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fecc R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fddf07b6080 R15: 00007ffef203f8c8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_ext_insert_extent+0x4ab7/0x4af0 fs/ext4/extents.c:2153 Code: 89 d9 80 e1 07 fe c1 38 c1 0f 8c a6 e7 ff ff 48 89 df e8 0c 88 b6 ff e9 99 e7 ff ff e8 f2 32 55 ff 90 0f 0b e8 ea 32 55 ff 90 <0f> 0b e8 e2 32 55 ff 90 0f 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c RSP: 0018:ffffc9000b6b6b20 EFLAGS: 00010287 RAX: ffffffff826aff66 RBX: 000000000000003f RCX: 0000000000080000 RDX: ffffc9000db60000 RSI: 000000000001d186 RDI: 000000000001d187 RBP: ffffc9000b6b6cd0 R08: ffff888055908e87 R09: 1ffff1100ab211d0 R10: dffffc0000000000 R11: ffffed100ab211d1 R12: 000000000000003f R13: dffffc0000000000 R14: ffff88807774a430 R15: ffff88803119db00 FS: 00007fddee3d56c0(0000) GS:ffff888125d4f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3f835ff000 CR3: 0000000031fb6000 CR4: 00000000003526f0