EXT4-fs error (device loop1): ext4_mb_generate_buddy:808: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2766! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 6646 Comm: syz-executor.1 Not tainted 5.10.209-syzkaller-00002-g4e1bc8d8e8ae #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:ext4_writepages+0x3bdf/0x3c00 fs/ext4/inode.c:2765 Code: 73 8c ff 31 ff 89 de e8 7f 73 8c ff 45 84 f6 75 27 e8 e5 70 8c ff 49 be 00 00 00 00 00 fc ff df e9 0e f7 ff ff e8 d1 70 8c ff <0f> 0b e8 ca 70 8c ff e8 31 48 22 ff eb 9b e8 be 70 8c ff e8 25 48 RSP: 0018:ffffc90000c47740 EFLAGS: 00010293 RAX: ffffffff81de371f RBX: 0000008000000000 RCX: ffff8881102ca780 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc90000c47b30 R08: ffffffff81de0193 R09: ffffed10261249a4 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffffc90000c47ca0 R14: 0000009410000000 R15: ffffc90000c47a00 FS: 0000555555d2e480(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000203 CR3: 0000000121cc4000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x12e/0x270 mm/page-writeback.c:2358 __filemap_fdatawrite_range+0x33c/0x3f0 mm/filemap.c:427 __filemap_fdatawrite mm/filemap.c:435 [inline] filemap_flush+0x23/0x30 mm/filemap.c:462 ext4_alloc_da_blocks+0x77/0x1a0 fs/ext4/inode.c:3238 ext4_release_file+0x84/0x310 fs/ext4/file.c:144 __fput+0x309/0x760 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x129/0x190 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop+0xbf/0xd0 kernel/entry/common.c:172 exit_to_user_mode_prepare kernel/entry/common.c:199 [inline] syscall_exit_to_user_mode+0xc5/0x1d0 kernel/entry/common.c:274 do_syscall_64+0x40/0x70 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f308f481d9a Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24 RSP: 002b:00007ffcc9acfef0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f308f481d9a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f308f5b2980 R08: 0000001b31660000 R09: 00007ffcc9baf0b0 R10: 0000000000000000 R11: 0000000000000293 R12: 000000000003e0c1 R13: 000000000003de0c R14: 00007ffcc9ad00b0 R15: 00007f308f439cb0 Modules linked in: ---[ end trace cd940e61522d089c ]--- RIP: 0010:ext4_writepages+0x3bdf/0x3c00 fs/ext4/inode.c:2765 Code: 73 8c ff 31 ff 89 de e8 7f 73 8c ff 45 84 f6 75 27 e8 e5 70 8c ff 49 be 00 00 00 00 00 fc ff df e9 0e f7 ff ff e8 d1 70 8c ff <0f> 0b e8 ca 70 8c ff e8 31 48 22 ff eb 9b e8 be 70 8c ff e8 25 48 RSP: 0018:ffffc90000c47740 EFLAGS: 00010293 RAX: ffffffff81de371f RBX: 0000008000000000 RCX: ffff8881102ca780 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc90000c47b30 R08: ffffffff81de0193 R09: ffffed10261249a4 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffffc90000c47ca0 R14: 0000009410000000 R15: ffffc90000c47a00 FS: 0000555555d2e480(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000100 CR3: 0000000121cc4000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400