EXT4-fs error (device loop0): mb_free_blocks:2017: group 0, inode 15: block 369:freeing already freed block (bit 23); block bitmap corrupt. ------------[ cut here ]------------ kernel BUG at fs/ext4/extents.c:2153! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5318 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 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 fc 40 b5 ff e9 99 e7 ff ff e8 02 f6 4d ff 90 0f 0b e8 fa f5 4d ff 90 <0f> 0b e8 f2 f5 4d ff 90 0f 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c RSP: 0018:ffffc9000d416de0 EFLAGS: 00010293 RAX: ffffffff82721d56 RBX: 0000000000000070 RCX: ffff888000b92480 RDX: 0000000000000000 RSI: 0000000000000070 RDI: 0000000000000070 RBP: ffffc9000d416f90 R08: ffff888043de6007 R09: 1ffff110087bcc00 R10: dffffc0000000000 R11: ffffed10087bcc01 R12: 0000000000000070 R13: dffffc0000000000 R14: ffff888051e10490 R15: ffff88800b5ab600 FS: 00007f9d431616c0(0000) GS:ffff88808d72f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000020000000d000 CR3: 000000000b4c9000 CR4: 0000000000352ef0 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+0x860/0x1740 fs/ext4/inode.c:811 _ext4_get_block+0x200/0x4c0 fs/ext4/inode.c:910 ext4_get_block_unwritten+0x2e/0x100 fs/ext4/inode.c:943 ext4_block_write_begin+0x993/0x1710 fs/ext4/inode.c:1198 ext4_write_begin+0xc04/0x19a0 fs/ext4/ext4_jbd2.h:-1 ext4_da_write_begin+0x445/0xda0 fs/ext4/inode.c:3129 generic_perform_write+0x2c5/0x900 mm/filemap.c:4254 ext4_buffered_write_iter+0xce/0x3a0 fs/ext4/file.c:299 ext4_file_write_iter+0x298/0x1bc0 fs/ext4/file.c:-1 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 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/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9d4238f749 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:00007f9d43161038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f9d425e6090 RCX: 00007f9d4238f749 RDX: 000000000000fdef RSI: 0000200000000140 RDI: 0000000000000004 RBP: 00007f9d42413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fecc R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9d425e6128 R14: 00007f9d425e6090 R15: 00007ffeb91549d8 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 fc 40 b5 ff e9 99 e7 ff ff e8 02 f6 4d ff 90 0f 0b e8 fa f5 4d ff 90 <0f> 0b e8 f2 f5 4d ff 90 0f 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c RSP: 0018:ffffc9000d416de0 EFLAGS: 00010293 RAX: ffffffff82721d56 RBX: 0000000000000070 RCX: ffff888000b92480 RDX: 0000000000000000 RSI: 0000000000000070 RDI: 0000000000000070 RBP: ffffc9000d416f90 R08: ffff888043de6007 R09: 1ffff110087bcc00 R10: dffffc0000000000 R11: ffffed10087bcc01 R12: 0000000000000070 R13: dffffc0000000000 R14: ffff888051e10490 R15: ffff88800b5ab600 FS: 00007f9d431616c0(0000) GS:ffff88808d72f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000020000000d000 CR3: 000000000b4c9000 CR4: 0000000000352ef0