EXT4-fs error (device loop0): __ext4_get_inode_loc:4710: comm syz-executor.0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0): __ext4_get_inode_loc:4710: comm syz-executor.0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0) in ext4_reserve_inode_write:6099: Corrupt filesystem EXT4-fs error (device loop0): __ext4_get_inode_loc:4710: comm syz-executor.0: Invalid inode table block 0 in block_group 0 EXT4-fs error (device loop0) in ext4_reserve_inode_write:6099: Corrupt filesystem ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:2984! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 429 Comm: syz-executor.0 Not tainted 5.4.284-syzkaller-04988-g137306201ec6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2984 [inline] RIP: 0010:ext4_mb_find_by_goal+0xc36/0xc70 fs/ext4/mballoc.c:1830 Code: fb ff ff 89 d1 80 e1 07 80 c1 03 38 c1 0f 8c f6 fb ff ff 48 89 d7 e8 59 6f c8 ff 48 8b 54 24 20 e9 e4 fb ff ff e8 7a 86 98 ff <0f> 0b e8 53 3c 6f ff e8 6e 86 98 ff 0f 0b e8 67 86 98 ff 0f 0b e8 RSP: 0018:ffff8881da966740 EFLAGS: 00010293 RAX: ffffffff81cbb026 RBX: 0000000000000001 RCX: ffff8881f31d3f00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffff8881da966850 R08: ffffffff81cba511 R09: ffffed103b58b48e R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8881ef59c3f0 R14: 0000000000000001 R15: 1ffff1103deb387e FS: 00007f40c5bbe6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002004407f CR3: 00000001da813000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_mb_regular_allocator+0x229/0x10d0 fs/ext4/mballoc.c:2131 ext4_mb_new_blocks+0x59a/0x2d10 fs/ext4/mballoc.c:4603 ext4_ext_map_blocks+0x1e70/0x7450 fs/ext4/extents.c:4512 ext4_map_blocks+0xa2f/0x1ba0 fs/ext4/inode.c:661 _ext4_get_block+0x21b/0x610 fs/ext4/inode.c:802 ext4_block_write_begin+0x68a/0x1390 fs/ext4/inode.c:1213 ext4_write_begin+0x5ba/0x1900 fs/ext4/inode.c:1351 ext4_da_write_begin+0x4a3/0xfe0 fs/ext4/inode.c:3110 generic_perform_write+0x2c7/0x560 mm/filemap.c:3450 __generic_file_write_iter+0x224/0x530 mm/filemap.c:3579 ext4_file_write_iter+0x499/0x10e0 fs/ext4/file.c:270 do_iter_readv_writev+0x591/0x7a0 fs/read_write.c:690 do_iter_write+0x170/0x560 fs/read_write.c:970 vfs_writev+0x206/0x350 fs/read_write.c:1015 do_pwritev fs/read_write.c:1112 [inline] __do_sys_pwritev fs/read_write.c:1159 [inline] __se_sys_pwritev fs/read_write.c:1154 [inline] __x64_sys_pwritev+0x1c3/0x2c0 fs/read_write.c:1154 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x455c69 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 b4 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f40c5bbe0d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000128 RAX: ffffffffffffffda RBX: 000000000055c008 RCX: 0000000000455c69 RDX: 0000000000000002 RSI: 0000000020000380 RDI: 0000000000000006 RBP: 00000000004a167f R08: 000000000000001f R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00000000004a07fb R13: 0000000000000009 R14: 000000000055c008 R15: 00007ffff0327258 Modules linked in: ---[ end trace ef38b67277331734 ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2984 [inline] RIP: 0010:ext4_mb_find_by_goal+0xc36/0xc70 fs/ext4/mballoc.c:1830 Code: fb ff ff 89 d1 80 e1 07 80 c1 03 38 c1 0f 8c f6 fb ff ff 48 89 d7 e8 59 6f c8 ff 48 8b 54 24 20 e9 e4 fb ff ff e8 7a 86 98 ff <0f> 0b e8 53 3c 6f ff e8 6e 86 98 ff 0f 0b e8 67 86 98 ff 0f 0b e8 RSP: 0018:ffff8881da966740 EFLAGS: 00010293 RAX: ffffffff81cbb026 RBX: 0000000000000001 RCX: ffff8881f31d3f00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffff8881da966850 R08: ffffffff81cba511 R09: ffffed103b58b48e R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8881ef59c3f0 R14: 0000000000000001 R15: 1ffff1103deb387e FS: 00007f40c5bbe6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002004407f CR3: 00000001da813000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400