EXT4-fs error (device loop2): __ext4_get_inode_loc:4347: comm syz-executor.2: Invalid inode table block 3959155258238694519 in block_group 0 EXT4-fs error (device loop2) in ext4_reserve_inode_write:5805: Corrupt filesystem EXT4-fs error (device loop2): __ext4_ext_dirty:183: inode #19: comm syz-executor.2: mark_inode_dirty error ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:3355! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 6396 Comm: syz-executor.2 Not tainted 5.15.98-syzkaller-00348-g7364b7abbafb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3355 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xee5/0xf00 fs/ext4/mballoc.c:1498 Code: 91 11 c8 ff e9 0d f4 ff ff e8 57 de 86 ff 48 c7 c7 80 76 89 86 4c 89 fe 4c 89 f2 e8 45 67 94 00 e9 87 f2 ff ff e8 3b de 86 ff <0f> 0b e8 34 de 86 ff 0f 0b e8 2d de 86 ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc9000944e4c0 EFLAGS: 00010293 RAX: ffffffff81e881a5 RBX: 00000000ffffd331 RCX: ffff888126ac0000 RDX: 0000000000000000 RSI: 00000000ffffd331 RDI: 0000000000000001 RBP: ffffc9000944e550 R08: ffffffff81e873d4 R09: ffffed102e36ce6f R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1103c5c0479 R13: ffff8881e2e023c8 R14: 0000000000000001 R15: ffff8881726f0000 FS: 00007f3629b9b700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002027c030 CR3: 000000011e31a000 CR4: 00000000003526b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_discard_preallocations+0x79c/0xef0 fs/ext4/mballoc.c:5033 ext4_truncate+0x8e4/0xfa0 fs/ext4/inode.c:4273 ext4_truncate_failed_write fs/ext4/truncate.h:22 [inline] ext4_write_begin+0xbb4/0x13d0 fs/ext4/inode.c:1262 ext4_da_write_begin+0x4a2/0xc30 fs/ext4/inode.c:2986 generic_perform_write+0x2bc/0x5a0 mm/filemap.c:3831 ext4_buffered_write_iter+0x49c/0x630 fs/ext4/file.c:271 ext4_file_write_iter+0x443/0x1cc0 __kernel_write+0x5ab/0xa60 fs/read_write.c:539 __dump_emit+0x261/0x3a0 fs/coredump.c:875 dump_emit+0x381/0x3f0 fs/coredump.c:912 dump_user_range+0x86/0x1c0 fs/coredump.c:949 elf_core_dump+0x3663/0x3e80 fs/binfmt_elf.c:2285 do_coredump+0x1834/0x3050 fs/coredump.c:826 get_signal+0x4c8/0x1630 kernel/signal.c:2877 arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:207 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:313 irqentry_exit+0x12/0x40 kernel/entry/common.c:404 exc_page_fault+0x47a/0x830 arch/x86/mm/fault.c:1608 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0033:0xf7b7 Code: Unable to access opcode bytes at RIP 0xf78d. RSP: 002b:00000000200000b8 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f362af47f80 RCX: 00007f362ae280f9 RDX: 0000000020000100 RSI: 00000000200000b0 RDI: 0000000041808000 RBP: 00007f362ae83b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000206 R12: 0000000000000000 R13: 00007ffc0b8bf93f R14: 00007f3629b9b300 R15: 0000000000022000 Modules linked in: ---[ end trace 5d6aa067cc5a51d4 ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3355 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xee5/0xf00 fs/ext4/mballoc.c:1498 Code: 91 11 c8 ff e9 0d f4 ff ff e8 57 de 86 ff 48 c7 c7 80 76 89 86 4c 89 fe 4c 89 f2 e8 45 67 94 00 e9 87 f2 ff ff e8 3b de 86 ff <0f> 0b e8 34 de 86 ff 0f 0b e8 2d de 86 ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc9000944e4c0 EFLAGS: 00010293 RAX: ffffffff81e881a5 RBX: 00000000ffffd331 RCX: ffff888126ac0000 RDX: 0000000000000000 RSI: 00000000ffffd331 RDI: 0000000000000001 RBP: ffffc9000944e550 R08: ffffffff81e873d4 R09: ffffed102e36ce6f R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1103c5c0479 R13: ffff8881e2e023c8 R14: 0000000000000001 R15: ffff8881726f0000 FS: 00007f3629b9b700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020096030 CR3: 000000011e31a000 CR4: 00000000003526a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400