EXT4-fs error (device loop3): ext4_dirty_inode:5979: inode #19: comm syz-executor.3: mark_inode_dirty error ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:3355! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 3807 Comm: syz-executor.3 Not tainted 5.15.112-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 RIP: 0010:ext4_get_group_info+0x399/0x3a0 fs/ext4/ext4.h:3355 Code: 62 ff 8b 74 24 04 48 c7 c7 a0 63 a8 8c 4c 89 f2 e8 cc 14 0a 02 43 80 3c 2c 00 0f 85 23 fd ff ff e9 26 fd ff ff e8 87 31 62 ff <0f> 0b 0f 1f 44 00 00 55 41 57 41 56 41 54 53 48 89 fb 49 bf 00 00 RSP: 0018:ffffc90003afe800 EFLAGS: 00010293 RAX: ffffffff821db759 RBX: 00000000ffffd331 RCX: ffff888021285940 RDX: 0000000000000000 RSI: 00000000ffffd331 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffff821db429 R09: ffffed100d694aed R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100f7364cf R13: dffffc0000000000 R14: ffff88807b9b4000 R15: ffff88807b9b2678 FS: 00007f9ce970d700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc455fdf98 CR3: 000000006e5d4000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_mb_load_buddy_gfp+0xc7/0x1500 fs/ext4/mballoc.c:1498 ext4_discard_preallocations+0x84d/0xfc0 fs/ext4/mballoc.c:5037 ext4_truncate+0x97e/0x1130 fs/ext4/inode.c:4245 ext4_truncate_failed_write fs/ext4/truncate.h:22 [inline] ext4_write_begin+0xb58/0x15f0 fs/ext4/inode.c:1251 ext4_da_write_begin+0x342/0xb60 fs/ext4/inode.c:2973 generic_perform_write+0x2bf/0x5b0 mm/filemap.c:3776 ext4_buffered_write_iter+0x227/0x360 fs/ext4/file.c:268 ext4_file_write_iter+0x87c/0x1990 __kernel_write+0x5b1/0xa60 fs/read_write.c:539 __dump_emit+0x264/0x3a0 fs/coredump.c:875 dump_user_range+0x91/0x320 fs/coredump.c:949 elf_core_dump+0x3c7d/0x4570 fs/binfmt_elf.c:2285 do_coredump+0x1852/0x31e0 fs/coredump.c:826 get_signal+0xc06/0x14e0 kernel/signal.c:2875 arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:172 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208 irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:314 exc_page_fault+0x342/0x740 arch/x86/mm/fault.c:1544 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0033:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 002b:0000000020000008 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f9cf27dc050 RCX: 00007f9cf26bc169 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000041808000 RBP: 00007f9cf2717ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007ffc455ff09f R14: 00007f9ce970d300 R15: 0000000000022000 Modules linked in: ---[ end trace 31f398d8a278ddc6 ]--- RIP: 0010:ext4_get_group_info+0x399/0x3a0 fs/ext4/ext4.h:3355 Code: 62 ff 8b 74 24 04 48 c7 c7 a0 63 a8 8c 4c 89 f2 e8 cc 14 0a 02 43 80 3c 2c 00 0f 85 23 fd ff ff e9 26 fd ff ff e8 87 31 62 ff <0f> 0b 0f 1f 44 00 00 55 41 57 41 56 41 54 53 48 89 fb 49 bf 00 00 RSP: 0018:ffffc90003afe800 EFLAGS: 00010293 RAX: ffffffff821db759 RBX: 00000000ffffd331 RCX: ffff888021285940 RDX: 0000000000000000 RSI: 00000000ffffd331 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffff821db429 R09: ffffed100d694aed R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100f7364cf R13: dffffc0000000000 R14: ffff88807b9b4000 R15: ffff88807b9b2678 FS: 00007f9ce970d700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffdeb8a1fb8 CR3: 000000006e5d4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400