EXT4-fs error (device loop2): ext4_mb_generate_buddy:1152: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2735! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 297 Comm: syz-executor394 Not tainted 5.15.149-syzkaller-00490-g5d96939590c0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:ext4_writepages+0x3fe6/0x4000 fs/ext4/inode.c:2734 Code: 89 de e8 9d b4 87 ff 45 84 f6 75 2c e8 03 b2 87 ff 49 be 00 00 00 00 00 fc ff df 4c 8b 64 24 50 e9 e4 c5 ff ff e8 ea b1 87 ff <0f> 0b e8 e3 b1 87 ff e8 5a 0d 18 ff eb 9b e8 d7 b1 87 ff e8 4e 0d RSP: 0018:ffffc90000a67040 EFLAGS: 00010293 RAX: ffffffff81e87446 RBX: 0000008000000000 RCX: ffff88811ece0000 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc90000a67450 R08: ffffffff81e86bb6 R09: ffffed10212658cf R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000a67680 R13: 0000000000000000 R14: 0000009410000000 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b3c0ccf008 CR3: 000000010c43a000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x40e/0x670 mm/page-writeback.c:2366 filemap_fdatawrite_wbc+0x248/0x2a0 mm/filemap.c:404 __filemap_fdatawrite_range mm/filemap.c:437 [inline] __filemap_fdatawrite mm/filemap.c:443 [inline] filemap_flush+0x10c/0x150 mm/filemap.c:470 ext4_alloc_da_blocks+0x77/0x1a0 fs/ext4/inode.c:3152 ext4_release_file+0x84/0x310 fs/ext4/file.c:143 __fput+0x3fe/0x910 fs/file_table.c:280 ____fput+0x15/0x20 fs/file_table.c:308 task_work_run+0x129/0x190 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0xc48/0x2ca0 kernel/exit.c:878 do_group_exit+0x141/0x310 kernel/exit.c:1000 get_signal+0x7a3/0x1630 kernel/signal.c:2896 arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:314 irqentry_exit+0x12/0x40 kernel/entry/common.c:405 exc_page_fault+0x47a/0x830 arch/x86/mm/fault.c:1608 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0033:0x7f4077397dd8 Code: Unable to access opcode bytes at RIP 0x7f4077397dae. RSP: 002b:00007f407738c220 EFLAGS: 00010217 RAX: 00007f4077397dd8 RBX: 00007f4077456648 RCX: 00007f40773cf739 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f407745664c RBP: 00007f4077456640 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f407742382c R13: 00007f40774230c0 R14: 0000000020000fc0 R15: 0030656c69662f2e Modules linked in: ---[ end trace d67f6b55acb0aaa9 ]--- RIP: 0010:ext4_writepages+0x3fe6/0x4000 fs/ext4/inode.c:2734 Code: 89 de e8 9d b4 87 ff 45 84 f6 75 2c e8 03 b2 87 ff 49 be 00 00 00 00 00 fc ff df 4c 8b 64 24 50 e9 e4 c5 ff ff e8 ea b1 87 ff <0f> 0b e8 e3 b1 87 ff e8 5a 0d 18 ff eb 9b e8 d7 b1 87 ff e8 4e 0d RSP: 0018:ffffc90000a67040 EFLAGS: 00010293 RAX: ffffffff81e87446 RBX: 0000008000000000 RCX: ffff88811ece0000 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc90000a67450 R08: ffffffff81e86bb6 R09: ffffed10212658cf R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000a67680 R13: 0000000000000000 R14: 0000009410000000 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000600 CR3: 000000011aa34000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000