EXT4-fs error (device loop3): __ext4_get_inode_loc:4436: comm syz-executor.3: Invalid inode table block 6286097877272143512 in block_group 0 EXT4-fs error (device loop3) in ext4_reserve_inode_write:5877: Corrupt filesystem ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:3247! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 24497 Comm: syz-executor.3 Not tainted 5.10.177-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3247 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xf5d/0x1020 fs/ext4/mballoc.c:1174 Code: ff e8 47 3c c8 ff e9 f0 f2 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 52 f3 ff ff e8 4d 3c c8 ff e9 48 f3 ff ff e8 83 2e 8b ff <0f> 0b e9 62 00 00 00 e8 77 2e 8b ff e9 ef fb ff ff e9 65 00 00 00 RSP: 0018:ffffc900071ce590 EFLAGS: 00010293 RAX: ffffffff81df3e6d RBX: 00000000fffff01a RCX: ffff88811592bb40 RDX: 0000000000000000 RSI: 00000000fffff01a RDI: 0000000000000001 RBP: ffffc900071ce610 R08: ffffffff81df2ffc R09: fffff94000adaf0f R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffff888110d53000 R14: 1ffff11021f6b479 R15: ffff88810fb5a3c8 FS: 00007f8c62040700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2df31000 CR3: 0000000113ddf000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000410 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_discard_preallocations+0x79c/0xef0 fs/ext4/mballoc.c:4451 ext4_truncate+0xa95/0x1220 fs/ext4/inode.c:4362 ext4_truncate_failed_write fs/ext4/truncate.h:20 [inline] ext4_write_begin+0xce0/0x1730 fs/ext4/inode.c:1262 ext4_da_write_begin+0x49d/0xf60 fs/ext4/inode.c:3031 generic_perform_write+0x2cd/0x570 mm/filemap.c:3501 ext4_buffered_write_iter+0x47d/0x610 fs/ext4/file.c:272 ext4_file_write_iter+0x193/0x1ca0 fs/ext4/file.c:689 __kernel_write+0x5ab/0x9d0 fs/read_write.c:550 dump_emit+0x261/0x3a0 fs/coredump.c:849 dump_user_range+0x71/0x1a0 fs/coredump.c:902 elf_core_dump+0x33bd/0x3c10 fs/binfmt_elf.c:2287 do_coredump+0x1eb8/0x2d60 fs/coredump.c:811 get_signal+0x102c/0x1410 kernel/signal.c:2768 arch_do_signal_or_restart+0xbd/0x17c0 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop+0x9b/0xd0 kernel/entry/common.c:169 exit_to_user_mode_prepare kernel/entry/common.c:199 [inline] irqentry_exit_to_user_mode+0x55/0x80 kernel/entry/common.c:287 irqentry_exit+0x12/0x60 kernel/entry/common.c:375 exc_page_fault+0x33d/0x5b0 arch/x86/mm/fault.c:1521 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571 RIP: 0033:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 002b:0000000020000473 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f8c633ecf80 RCX: 00007f8c632cd169 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00007f8c62040050 RBP: 00007f8c63328ca1 R08: 0000000000000000 R09: 0000000000000058 R10: 00007f8c62040050 R11: 0000000000000246 R12: 0000000000000058 R13: 00007ffec05505ef R14: 00007f8c62040300 R15: 0000000000022000 Modules linked in: ---[ end trace 07bd4c001f06ffe8 ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3247 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xf5d/0x1020 fs/ext4/mballoc.c:1174 Code: ff e8 47 3c c8 ff e9 f0 f2 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 52 f3 ff ff e8 4d 3c c8 ff e9 48 f3 ff ff e8 83 2e 8b ff <0f> 0b e9 62 00 00 00 e8 77 2e 8b ff e9 ef fb ff ff e9 65 00 00 00 RSP: 0018:ffffc900071ce590 EFLAGS: 00010293 RAX: ffffffff81df3e6d RBX: 00000000fffff01a RCX: ffff88811592bb40 RDX: 0000000000000000 RSI: 00000000fffff01a RDI: 0000000000000001 RBP: ffffc900071ce610 R08: ffffffff81df2ffc R09: fffff94000adaf0f R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffff888110d53000 R14: 1ffff11021f6b479 R15: ffff88810fb5a3c8 FS: 00007f8c62040700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200e60bf CR3: 0000000113ddf000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000410 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400