EXT4-fs error (device loop5): ext4_read_block_bitmap_nowait:477: comm syz.5.143: Invalid block bitmap block 0 in block_group 0 ------------[ cut here ]------------ mb_load_buddy failed (-117) WARNING: CPU: 0 PID: 7689 at fs/ext4/mballoc.c:4313 ext4_discard_allocated_blocks+0x158/0x620 fs/ext4/mballoc.c:4313 Modules linked in: CPU: 0 PID: 7689 Comm: syz.5.143 Not tainted 6.1.147-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:ext4_discard_allocated_blocks+0x158/0x620 fs/ext4/mballoc.c:4313 Code: 00 00 00 e8 da 2e 59 ff 48 c7 c7 40 83 7f 8a 89 ee e8 0c 41 25 ff 65 48 8b 04 25 28 00 00 00 48 3b 44 24 68 0f 85 4e 03 00 00 <0f> 0b eb 58 e8 af 2e 59 ff 48 83 c3 3c 48 89 d8 48 c1 e8 03 42 0f RSP: 0018:ffffc9000d63ee38 EFLAGS: 00010246 RAX: bafc544a28351600 RBX: ffff8880741d4000 RCX: ffff88801b385940 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002 RBP: 00000000ffffff8b R08: dffffc0000000000 R09: fffff52001ac7d59 R10: fffff52001ac7d59 R11: 1ffff92001ac7d58 R12: 1ffff1100e83a809 R13: dffffc0000000000 R14: ffff8880741d4048 R15: ffff8880741d404c FS: 00007f7b730476c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000100000 CR3: 000000002ca67000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_mb_new_blocks+0x11d2/0x4720 fs/ext4/mballoc.c:5785 ext4_ext_map_blocks+0x143c/0x66d0 fs/ext4/extents.c:4340 ext4_map_blocks+0x9d1/0x1b60 fs/ext4/inode.c:679 _ext4_get_block+0x1d7/0x4e0 fs/ext4/inode.c:822 ext4_block_write_begin+0x637/0x12f0 fs/ext4/inode.c:1124 ext4_write_begin+0x624/0xf50 fs/ext4/ext4_jbd2.h:-1 ext4_da_write_begin+0x304/0x950 fs/ext4/inode.c:3000 generic_perform_write+0x2db/0x560 mm/filemap.c:3846 ext4_buffered_write_iter+0x11a/0x3e0 fs/ext4/file.c:285 ext4_file_write_iter+0x1d6/0x16e0 fs/ext4/file.c:-1 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x44c/0x960 fs/read_write.c:584 ksys_write+0x143/0x240 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f7b7218e169 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:00007f7b73047038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7b723b5fa0 RCX: 00007f7b7218e169 RDX: 000000000000a000 RSI: 0000200000000780 RDI: 0000000000000005 RBP: 00007f7b72210a68 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f7b723b5fa0 R15: 00007fff06578838