EXT4-fs error (device loop2): __ext4_get_inode_loc:4368: comm syz-executor.2: Invalid inode table block 6286097877272143512 in block_group 0 EXT4-fs error (device loop2) in ext4_reserve_inode_write:5718: Corrupt filesystem ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:3241! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 25204 Comm: syz-executor.2 Not tainted 6.3.0-next-20230505-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:ext4_get_group_info+0x3c9/0x430 fs/ext4/ext4.h:3241 Code: ff 48 c7 c2 40 2a 63 8a be 06 03 00 00 48 c7 c7 a0 2a 63 8a c6 05 fb 28 35 0c 01 e8 d1 96 35 ff e9 7e fd ff ff e8 67 bc 54 ff <0f> 0b e8 00 ae a7 ff e9 8f fc ff ff e8 f6 ad a7 ff e9 c9 fc ff ff RSP: 0018:ffffc9000523eca8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 00000000fffff01a RCX: 0000000000000000 RDX: ffff88803c210000 RSI: ffffffff822f92c9 RDI: 0000000000000004 RBP: ffff88803af1e000 R08: 0000000000000004 R09: 0000000000000001 R10: 00000000fffff01a R11: 0000000000000000 R12: ffff88803af1c000 R13: ffff88803af1c678 R14: 0000000000000001 R15: ffff88807416b3a0 FS: 00007f6b487d0700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020075000 CR3: 000000006799f000 CR4: 00000000003506f0 DR0: 00000000ffff070c DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: ext4_mb_load_buddy_gfp+0xc9/0x13c0 fs/ext4/mballoc.c:1446 ext4_discard_preallocations+0x521/0xf60 fs/ext4/mballoc.c:5226 ext4_truncate+0xd5a/0x1340 fs/ext4/inode.c:4148 ext4_truncate_failed_write fs/ext4/truncate.h:22 [inline] ext4_write_begin+0x8b0/0x1030 fs/ext4/inode.c:1231 ext4_da_write_begin+0x223/0x8c0 fs/ext4/inode.c:2891 generic_perform_write+0x256/0x570 mm/filemap.c:3926 ext4_buffered_write_iter+0x15b/0x460 fs/ext4/file.c:289 ext4_file_write_iter+0xbe0/0x1740 fs/ext4/file.c:710 __kernel_write_iter+0x262/0x7a0 fs/read_write.c:517 dump_emit_page fs/coredump.c:886 [inline] dump_user_range+0x23c/0x710 fs/coredump.c:913 elf_core_dump+0x277e/0x36e0 fs/binfmt_elf.c:2142 do_coredump+0x2ed0/0x3fb0 fs/coredump.c:762 get_signal+0x1bff/0x25b0 kernel/signal.c:2860 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:307 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204 irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:310 exc_page_fault+0xc0/0x170 arch/x86/mm/fault.c:1615 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0033:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 002b:0000000020000473 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f6b47babf80 RCX: 00007f6b47a8c169 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00007f6b487d0050 RBP: 00007f6b47ae7ca1 R08: 0000000000000000 R09: 0000000000000058 R10: 00007f6b487d0050 R11: 0000000000000246 R12: 0000000000000058 R13: 00007ffef9f4245f R14: 00007f6b487d0300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_get_group_info+0x3c9/0x430 fs/ext4/ext4.h:3241 Code: ff 48 c7 c2 40 2a 63 8a be 06 03 00 00 48 c7 c7 a0 2a 63 8a c6 05 fb 28 35 0c 01 e8 d1 96 35 ff e9 7e fd ff ff e8 67 bc 54 ff <0f> 0b e8 00 ae a7 ff e9 8f fc ff ff e8 f6 ad a7 ff e9 c9 fc ff ff RSP: 0018:ffffc9000523eca8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 00000000fffff01a RCX: 0000000000000000 RDX: ffff88803c210000 RSI: ffffffff822f92c9 RDI: 0000000000000004 RBP: ffff88803af1e000 R08: 0000000000000004 R09: 0000000000000001 R10: 00000000fffff01a R11: 0000000000000000 R12: ffff88803af1c000 R13: ffff88803af1c678 R14: 0000000000000001 R15: ffff88807416b3a0 FS: 00007f6b487d0700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e829000 CR3: 000000006799f000 CR4: 00000000003506f0 DR0: 00000000ffff070c DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400