------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2777! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 406 Comm: syz-executor136 Not tainted 5.10.226-syzkaller-00709-ge5e5644ea27f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:ext4_writepages+0x3bdf/0x3c00 fs/ext4/inode.c:2776 Code: 3a 8c ff 31 ff 89 de e8 ff 39 8c ff 45 84 f6 75 27 e8 65 37 8c ff 49 be 00 00 00 00 00 fc ff df e9 0e f7 ff ff e8 51 37 8c ff <0f> 0b e8 4a 37 8c ff e8 71 06 22 ff eb 9b e8 3e 37 8c ff e8 65 06 RSP: 0018:ffffc90001197220 EFLAGS: 00010293 RAX: ffffffff81de759f RBX: 0000008000000000 RCX: ffff88810ef28000 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc90001197610 R08: ffffffff81de4013 R09: ffffed102397c0c8 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffffc90001197780 R14: 000000d410000000 R15: ffffc900011974e0 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff6c92e2e8 CR3: 000000011c703000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x12e/0x270 mm/page-writeback.c:2380 __filemap_fdatawrite_range+0x33c/0x3f0 mm/filemap.c:427 __filemap_fdatawrite mm/filemap.c:435 [inline] filemap_flush+0x23/0x30 mm/filemap.c:462 ext4_alloc_da_blocks+0x77/0x1a0 fs/ext4/inode.c:3249 ext4_release_file+0x84/0x310 fs/ext4/file.c:144 __fput+0x33d/0x7b0 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x129/0x190 kernel/task_work.c:189 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0xc83/0x2a50 kernel/exit.c:863 do_group_exit+0x141/0x310 kernel/exit.c:985 get_signal+0x10a0/0x1410 kernel/signal.c:2790 arch_do_signal_or_restart+0xbd/0x17c0 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop+0x9b/0xd0 kernel/entry/common.c:169 exit_to_user_mode_prepare kernel/entry/common.c:199 [inline] irqentry_exit_to_user_mode+0x4e/0x80 kernel/entry/common.c:287 irqentry_exit+0x12/0x60 kernel/entry/common.c:375 exc_page_fault+0x33d/0x5b0 arch/x86/mm/fault.c:1487 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571 RIP: 0033:0x7fb8e851ec3b Code: Unable to access opcode bytes at RIP 0x7fb8e851ec11. RSP: 002b:00007fb8e8513218 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00007fb8e85df708 RCX: 0000000000000005 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000146 RBP: 00007fb8e85df700 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb8e85ab844 R13: 00007fb8e85ab0c0 R14: 0031656c69662f2e R15: 00007fb8e85ab06b Modules linked in: ---[ end trace 3ab7118bf98d1ee3 ]--- RIP: 0010:ext4_writepages+0x3bdf/0x3c00 fs/ext4/inode.c:2776 Code: 3a 8c ff 31 ff 89 de e8 ff 39 8c ff 45 84 f6 75 27 e8 65 37 8c ff 49 be 00 00 00 00 00 fc ff df e9 0e f7 ff ff e8 51 37 8c ff <0f> 0b e8 4a 37 8c ff e8 71 06 22 ff eb 9b e8 3e 37 8c ff e8 65 06 RSP: 0018:ffffc90001197220 EFLAGS: 00010293 RAX: ffffffff81de759f RBX: 0000008000000000 RCX: ffff88810ef28000 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc90001197610 R08: ffffffff81de4013 R09: ffffed102397c0c8 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffffc90001197780 R14: 000000d410000000 R15: ffffc900011974e0 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb8e8514000 CR3: 000000010e701000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400