EXT4-fs error (device loop0): ext4_mb_generate_buddy:1095: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2738! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 3629 Comm: syz-executor139 Not tainted 6.1.0-syzkaller-00071-g3a28c2c89f4b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:ext4_writepages+0x2550/0x3da0 fs/ext4/inode.c:2738 Code: e1 be 00 10 00 00 4c 89 ef 48 d3 ee ba 01 00 00 00 e8 64 21 fe ff 83 c0 01 89 84 24 c4 00 00 00 e9 4d e1 ff ff e8 60 d5 5e ff <0f> 0b e8 59 d5 5e ff 44 0f b6 a4 24 eb 00 00 00 89 5c 24 08 e9 7e RSP: 0018:ffffc90003cef4f8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff888022571d40 RSI: ffffffff82214800 RDI: 0000000000000007 RBP: ffff888074d25090 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001 R13: ffff888074d252f0 R14: ffffc90003cefa50 R15: ffff888024d60000 FS: 00007f79d9d8c700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000004e CR3: 000000007ea45000 CR4: 0000000000350ef0 Call Trace: do_writepages+0x1af/0x690 mm/page-writeback.c:2469 filemap_fdatawrite_wbc mm/filemap.c:388 [inline] filemap_fdatawrite_wbc+0x147/0x1b0 mm/filemap.c:378 __filemap_fdatawrite_range+0xb8/0xf0 mm/filemap.c:421 file_write_and_wait_range+0xb6/0x120 mm/filemap.c:774 ext4_sync_file+0x265/0x1150 fs/ext4/fsync.c:151 vfs_fsync_range+0x13e/0x230 fs/sync.c:188 generic_write_sync include/linux/fs.h:2891 [inline] generic_write_sync include/linux/fs.h:2888 [inline] ext4_buffered_write_iter+0x379/0x460 fs/ext4/file.c:292 ext4_file_write_iter+0x8bc/0x16e0 fs/ext4/file.c:700 call_write_iter include/linux/fs.h:2199 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9ed/0xdd0 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f79d9ddf889 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f79d9d8c208 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f79d9e646e8 RCX: 00007f79d9ddf889 RDX: 0000000000000009 RSI: 0000000020000f80 RDI: 0000000000000004 RBP: 00007f79d9e646e0 R08: 00007f79d9e646e0 R09: 0000000000000000 R10: 00007f79d9d8c210 R11: 0000000000000246 R12: 00007f79d9e646ec R13: 00007ffe7a0cbe2f R14: 00007f79d9d8c300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_writepages+0x2550/0x3da0 fs/ext4/inode.c:2738 Code: e1 be 00 10 00 00 4c 89 ef 48 d3 ee ba 01 00 00 00 e8 64 21 fe ff 83 c0 01 89 84 24 c4 00 00 00 e9 4d e1 ff ff e8 60 d5 5e ff <0f> 0b e8 59 d5 5e ff 44 0f b6 a4 24 eb 00 00 00 89 5c 24 08 e9 7e RSP: 0018:ffffc90003cef4f8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff888022571d40 RSI: ffffffff82214800 RDI: 0000000000000007 RBP: ffff888074d25090 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001 R13: ffff888074d252f0 R14: ffffc90003cefa50 R15: ffff888024d60000 FS: 00007f79d9d8c700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f79d9e307e8 CR3: 000000007ea45000 CR4: 0000000000350ee0