EXT4-fs error (device loop2): __ext4_ext_dirty:183: inode #18: 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: 1 PID: 26204 Comm: syz-executor.2 Not tainted 5.15.106-syzkaller-00249-g19c0ed55a470 #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: 11 0f c8 ff e9 0d f4 ff ff e8 87 c7 86 ff 48 c7 c7 80 81 a9 86 4c 89 fe 4c 89 f2 e8 05 93 9a 00 e9 87 f2 ff ff e8 6b c7 86 ff <0f> 0b e8 64 c7 86 ff 0f 0b e8 5d c7 86 ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc9000641e4c0 EFLAGS: 00010293 RAX: ffffffff81e92455 RBX: 00000000fffff01a RCX: ffff88812963a780 RDX: 0000000000000000 RSI: 00000000fffff01a RDI: 0000000000000001 RBP: ffffc9000641e550 R08: ffffffff81e91684 R09: ffffed102f80dac8 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff11023460e79 R13: ffff88811a3073c8 R14: 0000000000000001 R15: ffff888133010000 FS: 00007f3446b95700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2fa24000 CR3: 0000000161f48000 CR4: 00000000003506a0 DR0: 00000000ffff070c DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 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: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+0x47a/0x830 arch/x86/mm/fault.c:1608 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: 00007f3447f41f80 RCX: 00007f3447e22169 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00007f3446b95050 RBP: 00007f3447e7dca1 R08: 0000000000000000 R09: 0000000000000058 R10: 00007f3446b95050 R11: 0000000000000246 R12: 0000000000000058 R13: 00007ffc65d1dcaf R14: 00007f3446b95300 R15: 0000000000022000 Modules linked in: ---[ end trace e75070f301511270 ]--- 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: 11 0f c8 ff e9 0d f4 ff ff e8 87 c7 86 ff 48 c7 c7 80 81 a9 86 4c 89 fe 4c 89 f2 e8 05 93 9a 00 e9 87 f2 ff ff e8 6b c7 86 ff <0f> 0b e8 64 c7 86 ff 0f 0b e8 5d c7 86 ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc9000641e4c0 EFLAGS: 00010293 RAX: ffffffff81e92455 RBX: 00000000fffff01a RCX: ffff88812963a780 RDX: 0000000000000000 RSI: 00000000fffff01a RDI: 0000000000000001 RBP: ffffc9000641e550 R08: ffffffff81e91684 R09: ffffed102f80dac8 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff11023460e79 R13: ffff88811a3073c8 R14: 0000000000000001 R15: ffff888133010000 FS: 00007f3446b95700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2fa24000 CR3: 0000000161f48000 CR4: 00000000003506a0 DR0: 00000000ffff070c DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400