EXT4-fs error (device loop4): ext4_mb_generate_buddy:747: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters ------------[ cut here ]------------ kernel BUG at fs/ext4/inline.c:226! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 11600 Comm: syz-executor.4 Not tainted 5.4.225-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:226 [inline] RIP: 0010:ext4_write_inline_data_end+0x81e/0x820 fs/ext4/inline.c:772 Code: ff e8 e6 d1 d2 ff e9 d9 fc ff ff e8 fc 33 7d ff e8 b7 50 a5 ff 0f 0b e8 b0 50 a5 ff 0f 0b e8 a9 50 a5 ff 0f 0b e8 a2 50 a5 ff <0f> 0b 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec RSP: 0018:ffff8881eb98f700 EFLAGS: 00010293 RAX: ffffffff81bde5de RBX: 000000000000003c RCX: ffff8881e8fdee40 RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000048 RBP: ffff8881eb98f840 R08: ffffffff81bde0de R09: ffffed1035b77e4f R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8881a58664a8 R14: 0000000000000048 R15: 0000000000000024 FS: 00007f2602262700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000204b513f CR3: 00000001e5136000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_da_write_inline_data_end+0x32/0x240 fs/ext4/inline.c:969 ext4_da_write_end+0x81d/0xb90 fs/ext4/inode.c:3275 generic_perform_write+0x3d3/0x560 mm/filemap.c:3322 __generic_file_write_iter+0x239/0x490 mm/filemap.c:3440 ext4_file_write_iter+0x499/0x10e0 fs/ext4/file.c:270 call_write_iter include/linux/fs.h:1981 [inline] new_sync_write fs/read_write.c:483 [inline] __vfs_write+0x5d3/0x750 fs/read_write.c:496 vfs_write+0x206/0x4e0 fs/read_write.c:558 ksys_write+0x199/0x2c0 fs/read_write.c:611 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Modules linked in: ---[ end trace d0567268250cc03b ]--- RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:226 [inline] RIP: 0010:ext4_write_inline_data_end+0x81e/0x820 fs/ext4/inline.c:772 Code: ff e8 e6 d1 d2 ff e9 d9 fc ff ff e8 fc 33 7d ff e8 b7 50 a5 ff 0f 0b e8 b0 50 a5 ff 0f 0b e8 a9 50 a5 ff 0f 0b e8 a2 50 a5 ff <0f> 0b 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec RSP: 0018:ffff8881eb98f700 EFLAGS: 00010293 RAX: ffffffff81bde5de RBX: 000000000000003c RCX: ffff8881e8fdee40 RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000048 RBP: ffff8881eb98f840 R08: ffffffff81bde0de R09: ffffed1035b77e4f R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8881a58664a8 R14: 0000000000000048 R15: 0000000000000024 FS: 00007f2602262700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000204b513f CR3: 00000001e5136000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400