EXT4-fs error (device loop2): ext4_read_block_bitmap_nowait:478: comm syz-executor.2: Invalid block bitmap block 0 in block_group 0 ------------[ cut here ]------------ ext4: mb_load_buddy failed (-117) WARNING: CPU: 1 PID: 7568 at fs/ext4/mballoc.c:4620 ext4_discard_allocated_blocks+0x5d4/0x750 fs/ext4/mballoc.c:4619 Modules linked in: CPU: 1 PID: 7568 Comm: syz-executor.2 Not tainted 6.5.0-syzkaller-12107-g7ba2090ca64e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:ext4_discard_allocated_blocks+0x5d4/0x750 fs/ext4/mballoc.c:4619 Code: 00 0f 85 9a 01 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 eb 99 48 ff 48 c7 c7 00 42 1d 8b 44 89 fe e8 8c 14 0f ff <0f> 0b 49 bf 00 00 00 00 00 fc ff df eb 98 e8 c9 99 48 ff e9 19 fe RSP: 0018:ffffc9001672ecc0 EFLAGS: 00010246 RAX: 2a9619334b2bc200 RBX: 0000000000000001 RCX: ffff88801e723b80 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9001672edd0 R08: ffffffff81541672 R09: 1ffff1101732516a R10: dffffc0000000000 R11: ffffed101732516b R12: ffff888031ff6634 R13: 1ffff92002ce5da0 R14: ffff888031ff65e8 R15: 00000000ffffff8b FS: 00007fed669b26c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8bb02c2723 CR3: 0000000027ab0000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_mb_new_blocks+0x148f/0x4b30 fs/ext4/mballoc.c:6244 ext4_ext_map_blocks+0x1e13/0x7150 fs/ext4/extents.c:4285 ext4_map_blocks+0xa2f/0x1cb0 fs/ext4/inode.c:621 _ext4_get_block+0x238/0x6a0 fs/ext4/inode.c:763 ext4_block_write_begin+0x53d/0x1550 fs/ext4/inode.c:1043 ext4_write_begin+0x619/0x10b0 ext4_da_write_begin+0x300/0xa40 fs/ext4/inode.c:2865 generic_perform_write+0x31b/0x630 mm/filemap.c:3942 ext4_buffered_write_iter+0xc6/0x350 fs/ext4/file.c:299 ext4_file_write_iter+0x1d3/0x1ad0 fs/ext4/file.c:717 call_write_iter include/linux/fs.h:1985 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x782/0xaf0 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fed65c7cae9 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:00007fed669b20c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fed65d9bf80 RCX: 00007fed65c7cae9 RDX: 000000000000a000 RSI: 0000000020000780 RDI: 0000000000000006 RBP: 00007fed65cc847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fed65d9bf80 R15: 00007ffe84fd70a8