EXT4-fs error (device loop7): ext4_mb_generate_buddy:1317: group 0, block bitmap and bg descriptor inconsistent: 0 vs 150994969 free clusters
------------[ cut here ]------------
kernel BUG at fs/ext4/inode.c:2813!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 5307 Comm: syz.7.7761 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:ext4_do_writepages+0x46d6/0x46e0
Code: c6 80 0d e4 8b e8 9a 79 a1 fe 90 0f 0b e8 62 1d 3f ff 4c 89 f7 48 c7 c6 60 12 e4 8b e8 83 79 a1 fe 90 0f 0b e8 4b 1d 3f ff 90 <0f> 0b 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900040ef460 EFLAGS: 00010293
RAX: ffffffff8286a285 RBX: 0000006a10000000 RCX: ffff8881ac731d40
RDX: 0000000000000000 RSI: 0000004000000000 RDI: 0000000000000000
RBP: ffffc900040ef870 R08: ffff8881be68f377 R09: 1ffff11037cd1e6e
R10: dffffc0000000000 R11: ffffed1037cd1e6f R12: dffffc0000000000
R13: 0000000000000001 R14: 0000004000000000 R15: 1ffff1102ed1b4c7
FS:  00005555565d2500(0000) GS:ffff88818de4b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000240 CR3: 000000017b5d0000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 ext4_writepages+0x241/0x3b0
 do_writepages+0x32e/0x550
 filemap_flush+0x1e1/0x2e0
 ext4_release_file+0x82/0x310
 __fput+0x44f/0xa70
 task_work_run+0x1d9/0x270
 exit_to_user_mode_loop+0xed/0x480
 do_syscall_64+0x32d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff59099cdd9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffeb54639a8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007ffeb5463a90 RCX: 00007ff59099cdd9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 000000000014c3f8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000001b33320000 R11: 0000000000000246 R12: 00007ffeb5463ad0
R13: 00007ff590c1609c R14: 000000000014c474 R15: 00007ff590c16090
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_do_writepages+0x46d6/0x46e0
Code: c6 80 0d e4 8b e8 9a 79 a1 fe 90 0f 0b e8 62 1d 3f ff 4c 89 f7 48 c7 c6 60 12 e4 8b e8 83 79 a1 fe 90 0f 0b e8 4b 1d 3f ff 90 <0f> 0b 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900040ef460 EFLAGS: 00010293
RAX: ffffffff8286a285 RBX: 0000006a10000000 RCX: ffff8881ac731d40
RDX: 0000000000000000 RSI: 0000004000000000 RDI: 0000000000000000
RBP: ffffc900040ef870 R08: ffff8881be68f377 R09: 1ffff11037cd1e6e
R10: dffffc0000000000 R11: ffffed1037cd1e6f R12: dffffc0000000000
R13: 0000000000000001 R14: 0000004000000000 R15: 1ffff1102ed1b4c7
FS:  00005555565d2500(0000) GS:ffff88818de4b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000240 CR3: 000000017b5d0000 CR4: 00000000000006f0
