EXT4-fs error (device loop3): ext4_read_block_bitmap_nowait:476: comm syz.3.19: Invalid block bitmap block 0 in block_group 0 ------------[ cut here ]------------ mb_load_buddy failed (-117) WARNING: CPU: 1 PID: 5338 at fs/ext4/mballoc.c:4325 ext4_discard_allocated_blocks+0x157/0x5d0 fs/ext4/mballoc.c:4325 Modules linked in: CPU: 0 PID: 5338 Comm: syz.3.19 Not tainted 5.15.180-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:ext4_discard_allocated_blocks+0x157/0x5d0 fs/ext4/mballoc.c:4325 Code: ed 74 7a e8 5b be 6a ff 48 c7 c7 60 4a 1c 8a 89 ee e8 cd 28 89 07 65 48 8b 04 25 28 00 00 00 48 3b 44 24 68 0f 85 02 03 00 00 <0f> 0b e9 d8 02 00 00 e8 2d be 6a ff 48 83 c3 3c 48 89 d8 48 c1 e8 RSP: 0018:ffffc9000327edd8 EFLAGS: 00010246 RAX: d54cbe35db198e00 RBX: ffff88806e992340 RCX: ffff8880207b0000 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 00000000ffffff8b R08: dffffc0000000000 R09: ffffed1017224f24 R10: ffffed1017224f24 R11: 1ffff11017224f23 R12: 1ffff1100dd32471 R13: dffffc0000000000 R14: ffff88806e992388 R15: ffff88806e99238c FS: 00007fc9cdb1f6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe55e80930 CR3: 000000007be54000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_mb_new_blocks+0x11ca/0x4940 fs/ext4/mballoc.c:5797 ext4_ext_map_blocks+0x146c/0x64e0 fs/ext4/extents.c:4339 ext4_map_blocks+0x9cd/0x1c60 fs/ext4/inode.c:672 _ext4_get_block+0x1d7/0x4e0 fs/ext4/inode.c:815 ext4_block_write_begin+0x60f/0x1210 fs/ext4/inode.c:1100 ext4_write_begin+0x6c2/0x15c0 fs/ext4/ext4_jbd2.h:-1 ext4_da_write_begin+0x435/0xb30 fs/ext4/inode.c:2974 generic_perform_write+0x2aa/0x530 mm/filemap.c:3785 ext4_buffered_write_iter+0x25f/0x3b0 fs/ext4/file.c:268 ext4_file_write_iter+0x773/0x17b0 fs/ext4/file.c:-1 call_write_iter include/linux/fs.h:2172 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x712/0xd00 fs/read_write.c:594 ksys_write+0x14d/0x250 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fc9ce8a6d29 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:00007fc9cdb1f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc9cea96fa0 RCX: 00007fc9ce8a6d29 RDX: 000000000000a000 RSI: 0000000020000780 RDI: 0000000000000005 RBP: 00007fc9ce922aa8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc9cea96fa0 R15: 00007fffe91891a8