EXT4-fs error (device loop2): ext4_mb_generate_buddy:1152: group 0, block bitmap and bg descriptor inconsistent: 25 vs 4128793 free clusters ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2746! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 25561 Comm: syz.2.6439 Not tainted 5.15.169-syzkaller-00144-g252009836bae #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:ext4_writepages+0x3fe6/0x4000 fs/ext4/inode.c:2745 Code: 89 de e8 2d 5f 87 ff 45 84 f6 75 2c e8 93 5c 87 ff 49 be 00 00 00 00 00 fc ff df 4c 8b 64 24 50 e9 e4 c5 ff ff e8 7a 5c 87 ff <0f> 0b e8 73 5c 87 ff e8 3a 7e 17 ff eb 9b e8 67 5c 87 ff e8 2e 7e RSP: 0018:ffffc9000218f620 EFLAGS: 00010293 RAX: ffffffff81e90996 RBX: 0000008000000000 RCX: ffff8881231413c0 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc9000218fa30 R08: ffffffff81e90106 R09: ffffed10264373b2 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc9000218fc60 R13: 0000000000000000 R14: 000000d41000c000 R15: 0000000000000001 FS: 00005555876cc500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020002530 CR3: 0000000121034000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x40e/0x670 mm/page-writeback.c:2388 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:3163 ext4_release_file+0x84/0x310 fs/ext4/file.c:143 __fput+0x228/0x8c0 fs/file_table.c:280 ____fput+0x15/0x20 fs/file_table.c:308 task_work_run+0x129/0x190 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0xc4/0xe0 kernel/entry/common.c:181 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:307 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fde6ae48f19 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:00007ffe0c045518 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 0000000000178596 RCX: 00007fde6ae48f19 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007fde6b010ba0 R08: 0000000000000001 R09: 00007ffe0c0457ff R10: 00007fde6acc9000 R11: 0000000000000246 R12: 0000000000178838 R13: 00007fde6b00efa0 R14: 0000000000000226 R15: ffffffffffffffff Modules linked in: ---[ end trace bbce8387149d7a6c ]--- RIP: 0010:ext4_writepages+0x3fe6/0x4000 fs/ext4/inode.c:2745 Code: 89 de e8 2d 5f 87 ff 45 84 f6 75 2c e8 93 5c 87 ff 49 be 00 00 00 00 00 fc ff df 4c 8b 64 24 50 e9 e4 c5 ff ff e8 7a 5c 87 ff <0f> 0b e8 73 5c 87 ff e8 3a 7e 17 ff eb 9b e8 67 5c 87 ff e8 2e 7e RSP: 0018:ffffc9000218f620 EFLAGS: 00010293 RAX: ffffffff81e90996 RBX: 0000008000000000 RCX: ffff8881231413c0 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc9000218fa30 R08: ffffffff81e90106 R09: ffffed10264373b2 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc9000218fc60 R13: 0000000000000000 R14: 000000d41000c000 R15: 0000000000000001 FS: 00005555876cc500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3a848eefb8 CR3: 0000000121034000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400