EXT4-fs error (device loop1): ext4_mb_generate_buddy:1102: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2749! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8716 Comm: syz.1.1688 Not tainted 6.1.99-syzkaller-00108-gd4dab27b9d1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:ext4_writepages+0x3fab/0x3fd0 fs/ext4/inode.c:2748 Code: 7e 80 ff 31 ff 89 de e8 33 7e 80 ff 45 84 f6 75 2a e8 99 7b 80 ff 49 bc 00 00 00 00 00 fc ff df e9 6e f6 ff ff e8 85 7b 80 ff <0f> 0b e8 7e 7b 80 ff e8 e5 5f 0b ff e9 46 c3 ff ff e8 6f 7b 80 ff RSP: 0018:ffffc90000d47740 EFLAGS: 00010287 RAX: ffffffff81f527cb RBX: 0000008000000000 RCX: 0000000000040000 RDX: ffffc900024c3000 RSI: 0000000000000021 RDI: 0000000000000022 RBP: ffffc90000d47b50 R08: ffffffff81f4ef2b R09: ffffed102673eac4 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88810da38000 R13: ffff8881339f5758 R14: 000000c410000000 R15: ffffc90000d47a20 FS: 00007fdba25a06c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6b2271d000 CR3: 000000012d07d000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x385/0x620 mm/page-writeback.c:2494 filemap_fdatawrite_wbc+0x153/0x1b0 mm/filemap.c:408 __filemap_fdatawrite_range mm/filemap.c:441 [inline] file_write_and_wait_range+0x1ca/0x2b0 mm/filemap.c:794 ext4_sync_file+0x1a2/0xa50 fs/ext4/fsync.c:151 vfs_fsync_range fs/sync.c:188 [inline] vfs_fsync fs/sync.c:202 [inline] do_fsync fs/sync.c:212 [inline] __do_sys_fdatasync fs/sync.c:226 [inline] __se_sys_fdatasync fs/sync.c:224 [inline] __x64_sys_fdatasync+0xb6/0x130 fs/sync.c:224 x64_sys_call+0x235/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:76 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fdba177dff9 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:00007fdba25a0038 EFLAGS: 00000246 ORIG_RAX: 000000000000004b RAX: ffffffffffffffda RBX: 00007fdba1935f80 RCX: 00007fdba177dff9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fdba17f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fdba1935f80 R15: 00007ffe96dea4f8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_writepages+0x3fab/0x3fd0 fs/ext4/inode.c:2748 Code: 7e 80 ff 31 ff 89 de e8 33 7e 80 ff 45 84 f6 75 2a e8 99 7b 80 ff 49 bc 00 00 00 00 00 fc ff df e9 6e f6 ff ff e8 85 7b 80 ff <0f> 0b e8 7e 7b 80 ff e8 e5 5f 0b ff e9 46 c3 ff ff e8 6f 7b 80 ff RSP: 0018:ffffc90000d47740 EFLAGS: 00010287 RAX: ffffffff81f527cb RBX: 0000008000000000 RCX: 0000000000040000 RDX: ffffc900024c3000 RSI: 0000000000000021 RDI: 0000000000000022 RBP: ffffc90000d47b50 R08: ffffffff81f4ef2b R09: ffffed102673eac4 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88810da38000 R13: ffff8881339f5758 R14: 000000c410000000 R15: ffffc90000d47a20 FS: 00007fdba25a06c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001000 CR3: 000000012d07d000 CR4: 00000000003526a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400