------------[ cut here ]------------ EXT4-fs error (device loop4): ext4_mb_generate_buddy:744: group 0, block bitmap and bg descriptor inconsistent: 50 vs 25 free clusters kernel BUG at fs/buffer.c:2040! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 1328 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__block_commit_write.constprop.0.isra.0+0x287/0x310 fs/buffer.c:2040 Code: 41 5c 41 5d 41 5e 41 5f e9 46 f7 b1 ff e8 41 f7 b1 ff 48 8b 7c 24 10 48 c7 c6 c0 1a 75 88 e8 f0 88 d9 ff 0f 0b e8 29 f7 b1 ff <0f> 0b e8 22 f7 b1 ff 48 8b 7c 24 10 48 c7 c6 20 1f 75 88 e8 d1 88 RSP: 0018:ffff88804644f3c0 EFLAGS: 00010212 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90006f85000 RDX: 000000000001b44a RSI: ffffffff81b08e47 RDI: 0000000000000001 RBP: 0000000000000198 R08: 0000000000000044 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000198 R13: 0000000000000044 R14: ffffea000250d140 R15: 00000000000001dc FS: 00007fed2c9b5700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f502061f108 CR3: 00000000a026d000 CR4: 00000000003426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: block_write_end+0x53/0x140 fs/buffer.c:2163 ext4_write_end+0x22b/0xec0 fs/ext4/inode.c:1432 ext4_da_write_end+0x860/0xa70 fs/ext4/inode.c:3170 generic_perform_write+0x2ae/0x4d0 mm/filemap.c:3181 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295 ext4_file_write_iter+0x2fe/0xf20 fs/ext4/file.c:272 call_write_iter include/linux/fs.h:1821 [inline] do_iter_readv_writev+0x668/0x790 fs/read_write.c:681 do_iter_write+0x182/0x5d0 fs/read_write.c:960 vfs_iter_write+0x70/0xa0 fs/read_write.c:973 iter_file_splice_write+0x60d/0xbb0 fs/splice.c:750 do_splice_from fs/splice.c:852 [inline] direct_splice_actor+0x115/0x160 fs/splice.c:1025 splice_direct_to_actor+0x33f/0x8d0 fs/splice.c:980 do_splice_direct+0x1a7/0x270 fs/splice.c:1068 do_sendfile+0x550/0xc30 fs/read_write.c:1447 __do_sys_sendfile64 fs/read_write.c:1502 [inline] __se_sys_sendfile64+0xc4/0x160 fs/read_write.c:1494 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fed2f43fae9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fed2c9b5188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fed2f552f60 RCX: 00007fed2f43fae9 RDX: 0000000020000240 RSI: 0000000000000003 RDI: 0000000000000003 RBP: 00007fed2f499f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000008003 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffd4f3150f R14: 00007fed2c9b5300 R15: 0000000000022000 Modules linked in: netlink: 28 bytes leftover after parsing attributes in process `syz-executor.4'. wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 ---[ end trace b215ea01a0f1f790 ]--- RIP: 0010:__block_commit_write.constprop.0.isra.0+0x287/0x310 fs/buffer.c:2040 Code: 41 5c 41 5d 41 5e 41 5f e9 46 f7 b1 ff e8 41 f7 b1 ff 48 8b 7c 24 10 48 c7 c6 c0 1a 75 88 e8 f0 88 d9 ff 0f 0b e8 29 f7 b1 ff <0f> 0b e8 22 f7 b1 ff 48 8b 7c 24 10 48 c7 c6 20 1f 75 88 e8 d1 88 RSP: 0018:ffff88804644f3c0 EFLAGS: 00010212 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90006f85000 RDX: 000000000001b44a RSI: ffffffff81b08e47 RDI: 0000000000000001 RBP: 0000000000000198 R08: 0000000000000044 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000198 R13: 0000000000000044 R14: ffffea000250d140 R15: 00000000000001dc FS: 00007fed2c9b5700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b33326000 CR3: 00000000a026d000 CR4: 00000000003426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400