EXT4-fs error (device loop0): ext4_mb_generate_buddy:1289: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2809! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 9510 Comm: syz.0.314 Not tainted syzkaller #0 PREEMPT_[ 564.968920][ T9510] CPU: 1 UID: 0 PID: 9510 Comm: syz.0.314 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:ext4_do_writepages+0x45f0/0x4600 fs/ext4/inode.c:2808 Code: c6 a0 31 fe 8a e8 10 ea ba fe 90 0f 0b e8 b8 0e 52 ff 4c 89 f7 48 c7 c6 80 35 fe 8a e8 f9 e9 ba fe 90 0f 0b e8 a1 0e 52 ff 90 <0f> 0b 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 RSP: 0018:ffffc900045b7480 EFLAGS: 00010293 RAX: ffffffff826caebf RBX: 0000004a10000000 RCX: ffff888020be1e00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900045b78b0 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed100b9d7d5e R12: 0000000000000001 R13: ffffc900045b7900 R14: 0000004000000000 R15: dffffc0000000000 FS: 00005555697a6500(0000) GS:ffff888126ef7000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f316f6c3f98 CR3: 0000000068d68000 CR4: 00000000003526f0 Call Trace: ext4_writepages+0x205/0x350 fs/ext4/inode.c:3025 do_writepages+0x32e/0x550 mm/page-writeback.c:2604 filemap_fdatawrite_wbc mm/filemap.c:389 [inline] __filemap_fdatawrite_range mm/filemap.c:422 [inline] __filemap_fdatawrite mm/filemap.c:428 [inline] filemap_flush+0x194/0x230 mm/filemap.c:473 ext4_release_file+0x82/0x310 fs/ext4/file.c:169 __fput+0x45b/0xa80 fs/file_table.c:468 task_work_run+0x1d4/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xe9/0x130 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x2bd/0xfa0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f317149f6c9 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:00007ffe26a96a18 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f31716f7da0 RCX: 00007f317149f6c9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f31716f7da0 R08: 0000000000000000 R09: 0000001826a96d0f R10: 000000000003fcdc R11: 0000000000000246 R12: 0000000000089da7 R13: 00007f31716f6180 R14: ffffffffffffffff R15: 0000000000000003 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_do_writepages+0x45f0/0x4600 fs/ext4/inode.c:2808 Code: c6 a0 31 fe 8a e8 10 ea ba fe 90 0f 0b e8 b8 0e 52 ff 4c 89 f7 48 c7 c6 80 35 fe 8a e8 f9 e9 ba fe 90 0f 0b e8 a1 0e 52 ff 90 <0f> 0b 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 RSP: 0018:ffffc900045b7480 EFLAGS: 00010293 RAX: ffffffff826caebf RBX: 0000004a10000000 RCX: ffff888020be1e00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900045b78b0 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed100b9d7d5e R12: 0000000000000001 R13: ffffc900045b7900 R14: 0000004000000000 R15: dffffc0000000000 FS: 00005555697a6500(0000) GS:ffff888126df7000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000240 CR3: 0000000068d68000 CR4: 00000000003526f0