EXT4-fs error (device loop0): ext4_mb_generate_buddy:1220: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2620! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5322 Comm: syz.0.0 Not tainted 6.14.0-syzkaller-01103-g2df0c02dab82 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:ext4_do_writepages+0x3df3/0x3e00 fs/ext4/inode.c:2619 Code: cf 8e 4c 89 f2 e8 7d 6d b3 02 e9 7c fb ff ff e8 33 8b 41 ff 90 0f 0b e8 2b 8b 41 ff 90 0f 0b e8 b3 c7 98 09 e8 1e 8b 41 ff 90 <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d396f80 EFLAGS: 00010293 RAX: ffffffff8281d7b2 RBX: 0000004000000000 RCX: ffff888000d2a440 RDX: 0000000000000000 RSI: 0000004000000000 RDI: 0000000000000000 RBP: ffffc9000d397390 R08: ffffffff82819ec7 R09: 1ffff11008769b2f R10: dffffc0000000000 R11: ffffed1008769b30 R12: 0000000000000001 R13: ffffc9000d397700 R14: 0000004a10000000 R15: ffff888043b4dbd8 FS: 0000000000000000(0000) GS:ffff88808c824000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd11697f00 CR3: 0000000040eea000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_writepages+0x203/0x3c0 fs/ext4/inode.c:2824 do_writepages+0x36a/0x890 mm/page-writeback.c:2687 filemap_fdatawrite_wbc mm/filemap.c:388 [inline] __filemap_fdatawrite_range mm/filemap.c:421 [inline] __filemap_fdatawrite mm/filemap.c:427 [inline] filemap_flush+0x1d2/0x270 mm/filemap.c:472 ext4_release_file+0x81/0x300 fs/ext4/file.c:169 __fput+0x3e9/0x9f0 fs/file_table.c:465 task_work_run+0x251/0x310 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa2a/0x2940 kernel/exit.c:954 do_group_exit+0x207/0x2c0 kernel/exit.c:1103 get_signal+0x1696/0x1730 kernel/signal.c:3035 arch_do_signal_or_restart+0x98/0x840 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f124cb8d169 Code: Unable to access opcode bytes at 0x7f124cb8d13f. RSP: 002b:00007f124d981038 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: 0000000000005440 RBX: 00007f124cda6080 RCX: 00007f124cb8d169 RDX: 0000000000000001 RSI: 0000200000000240 RDI: 000000000000000c RBP: 00007f124cc0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f124cda6080 R15: 00007ffd116986d8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_do_writepages+0x3df3/0x3e00 fs/ext4/inode.c:2619 Code: cf 8e 4c 89 f2 e8 7d 6d b3 02 e9 7c fb ff ff e8 33 8b 41 ff 90 0f 0b e8 2b 8b 41 ff 90 0f 0b e8 b3 c7 98 09 e8 1e 8b 41 ff 90 <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d396f80 EFLAGS: 00010293 RAX: ffffffff8281d7b2 RBX: 0000004000000000 RCX: ffff888000d2a440 RDX: 0000000000000000 RSI: 0000004000000000 RDI: 0000000000000000 RBP: ffffc9000d397390 R08: ffffffff82819ec7 R09: 1ffff11008769b2f R10: dffffc0000000000 R11: ffffed1008769b30 R12: 0000000000000001 R13: ffffc9000d397700 R14: 0000004a10000000 R15: ffff888043b4dbd8 FS: 0000000000000000(0000) GS:ffff88808c824000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd11697f00 CR3: 0000000040eea000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400