EXT4-fs error (device loop0): __ext4_get_inode_loc:4316: comm syz-executor.0: Invalid inode table block 6286097877272143512 in block_group 0 EXT4-fs error (device loop0) in ext4_reserve_inode_write:5777: Corrupt filesystem EXT4-fs error (device loop0): ext4_dirty_inode:5981: inode #19: comm syz-executor.0: mark_inode_dirty error EXT4-fs error (device loop0): ext4_read_block_bitmap_nowait:437: comm syz-executor.0: Invalid block bitmap block 2037579726367510051 in block_group 0 EXT4-fs error (device loop0): ext4_discard_preallocations:5045: comm syz-executor.0: Error -117 reading block bitmap for 0 ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:3355! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 430 Comm: syz-executor.0 Not tainted 5.15.106-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:3355 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xee5/0xf00 fs/ext4/mballoc.c:1498 Code: 91 06 c9 ff e9 0d f4 ff ff e8 b7 7c 8a ff 48 c7 c7 e0 03 09 86 4c 89 fe 4c 89 f2 e8 a5 92 90 00 e9 87 f2 ff ff e8 9b 7c 8a ff <0f> 0b e8 94 7c 8a ff 0f 0b e8 8d 7c 8a ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc900009ce800 EFLAGS: 00010293 RAX: ffffffff81e37325 RBX: 00000000fffff01a RCX: ffff8881069ad000 RDX: 0000000000000000 RSI: 00000000fffff01a RDI: 0000000000000001 RBP: ffffc900009ce890 R08: ffffffff81e36554 R09: fffff94000861ad7 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1102489bc73 R13: ffff8881244de398 R14: 0000000000000001 R15: ffff8881244cc000 FS: 00007f0391219700(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000001ffffec0 CR3: 000000011e0dc000 CR4: 00000000003506b0 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:4242 ext4_truncate_failed_write fs/ext4/truncate.h:22 [inline] ext4_write_begin+0xa94/0x1040 fs/ext4/inode.c:1251 ext4_da_write_begin+0x342/0x940 fs/ext4/inode.c:2973 generic_perform_write+0x2bc/0x5a0 mm/filemap.c:3776 ext4_buffered_write_iter+0x482/0x610 fs/ext4/file.c:269 ext4_file_write_iter+0x193/0x1dd0 fs/ext4/file.c:687 __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+0x17b9/0x2fa0 fs/coredump.c:826 get_signal+0x4c2/0x1620 kernel/signal.c:2875 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:208 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:314 irqentry_exit+0x12/0x40 kernel/entry/common.c:405 exc_page_fault+0x2e3/0x610 arch/x86/mm/fault.c:1544 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0033:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 002b:0000000020000473 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f03917c5f80 RCX: 00007f03916a6169 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00007f0391219050 RBP: 00007f0391701ca1 R08: 0000000000000000 R09: 0000000000000058 R10: 00007f0391219050 R11: 0000000000000246 R12: 0000000000000058 R13: 00007ffc7d6bbdff R14: 00007f0391219300 R15: 0000000000022000 Modules linked in: ---[ end trace 33c1c173c64b4f8c ]--- 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 06 c9 ff e9 0d f4 ff ff e8 b7 7c 8a ff 48 c7 c7 e0 03 09 86 4c 89 fe 4c 89 f2 e8 a5 92 90 00 e9 87 f2 ff ff e8 9b 7c 8a ff <0f> 0b e8 94 7c 8a ff 0f 0b e8 8d 7c 8a ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc900009ce800 EFLAGS: 00010293 RAX: ffffffff81e37325 RBX: 00000000fffff01a RCX: ffff8881069ad000 RDX: 0000000000000000 RSI: 00000000fffff01a RDI: 0000000000000001 RBP: ffffc900009ce890 R08: ffffffff81e36554 R09: fffff94000861ad7 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1102489bc73 R13: ffff8881244de398 R14: 0000000000000001 R15: ffff8881244cc000 FS: 00007f0391219700(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000001ffffec0 CR3: 000000011e0dc000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400