EXT4-fs error (device loop4): ext4_read_block_bitmap_nowait:482: comm syz-executor.4: Invalid block bitmap block 0 in block_group 0 ------------[ cut here ]------------ ext4: mb_load_buddy failed (-117) WARNING: CPU: 1 PID: 5909 at fs/ext4/mballoc.c:4607 ext4_discard_allocated_blocks+0x6f2/0x840 fs/ext4/mballoc.c:4607 Modules linked in: CPU: 1 PID: 5909 Comm: syz-executor.4 Not tainted 6.7.0-rc4-syzkaller-00358-gf2e8a57ee903 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:ext4_discard_allocated_blocks+0x6f2/0x840 fs/ext4/mballoc.c:4607 Code: 08 31 ff 89 c5 89 c6 e8 bc ae 4e ff 85 ed 0f 84 1f fa ff ff e8 3f b3 4e ff 90 8b 34 24 48 c7 c7 80 26 e4 8a e8 5f d9 14 ff 90 <0f> 0b 90 90 e9 00 fa ff ff e8 60 5b a5 ff e9 86 f9 ff ff e8 d6 2e RSP: 0018:ffffc9000a4df090 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 1ffff9200149be16 RCX: ffffffff814db579 RDX: ffff88801afd5940 RSI: ffffffff814db586 RDI: 0000000000000001 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffffc9000a4df0d0 R13: ffff888069623b44 R14: ffff888069623b00 R15: ffff888069623b40 FS: 00007fd925a9e6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f13ae2fe000 CR3: 000000006ebed000 CR4: 0000000000350ef0 Call Trace: ext4_mb_new_blocks+0x16d0/0x4b10 fs/ext4/mballoc.c:6207 ext4_ext_map_blocks+0x1b4e/0x5ae0 fs/ext4/extents.c:4285 ext4_map_blocks+0x619/0x1770 fs/ext4/inode.c:621 _ext4_get_block+0x24d/0x5a0 fs/ext4/inode.c:763 ext4_block_write_begin+0x3da/0xee0 fs/ext4/inode.c:1053 ext4_write_begin+0x5e6/0x1100 fs/ext4/inode.c:1193 ext4_da_write_begin+0x221/0x8c0 fs/ext4/inode.c:2875 generic_perform_write+0x278/0x600 mm/filemap.c:3918 ext4_buffered_write_iter+0x11f/0x3c0 fs/ext4/file.c:299 ext4_file_write_iter+0x819/0x1950 fs/ext4/file.c:696 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x64f/0xdf0 fs/read_write.c:584 ksys_write+0x12f/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fd924c7cba9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd925a9e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd924d9bf80 RCX: 00007fd924c7cba9 RDX: 000000000000a000 RSI: 0000000020000780 RDI: 0000000000000005 RBP: 00007fd924cc847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd924d9bf80 R15: 00007ffe7b8b9a28