------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2648! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 18171 Comm: syz-executor.5 Tainted: G W 5.10.108-syzkaller-00653-gab2d1d40a128 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:mpage_prepare_extent_to_map+0xbe9/0xc00 fs/ext4/inode.c:2648 Code: e8 6c d8 c9 ff e9 80 f6 ff ff 44 89 e9 80 e1 07 38 c1 0f 8c a6 fe ff ff 4c 89 ef e8 51 d8 c9 ff e9 99 fe ff ff e8 67 d2 8f ff <0f> 0b e8 60 d2 8f ff 0f 0b e8 79 f3 b8 02 66 0f 1f 84 00 00 00 00 RSP: 0018:ffffc90006407560 EFLAGS: 00010293 RAX: ffffffff81dd23c9 RBX: 0000000000000000 RCX: ffff88810c888000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90006407730 R08: ffffffff81dd2041 R09: fffff94000a5e289 R10: fffff94000a5e289 R11: 0000000000000000 R12: ffffea00052f1440 R13: ffffc90006407620 R14: 0000000000000000 R15: dffffc0000000000 FS: 00005555562c9400(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000010ca97000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_writepages+0xcbb/0x3950 fs/ext4/inode.c:2777 do_writepages+0x13a/0x280 mm/page-writeback.c:2358 __filemap_fdatawrite_range+0x356/0x420 mm/filemap.c:427 __filemap_fdatawrite mm/filemap.c:435 [inline] filemap_flush+0x23/0x30 mm/filemap.c:462 ext4_alloc_da_blocks+0x71/0x180 fs/ext4/inode.c:3200 ext4_release_file+0x84/0x320 fs/ext4/file.c:144 __fput+0x348/0x7d0 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x147/0x1b0 kernel/task_work.c:154 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:164 [inline] exit_to_user_mode_prepare+0xc3/0xe0 kernel/entry/common.c:191 syscall_exit_to_user_mode+0x24/0x40 kernel/entry/common.c:266 do_syscall_64+0x3d/0x70 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f1a36744c8b Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007ffceda33250 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f1a36744c8b RDX: 0000001b32f20000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f1a368a6960 R08: 0000000000000000 R09: 00007ffcedbb20b8 R10: 0000000000027a4c R11: 0000000000000293 R12: 00000000000d0ac9 R13: 00007ffceda33350 R14: 00007ffceda33370 R15: 0000000000000032 Modules linked in: ---[ end trace 6b1d2d656e783709 ]--- RIP: 0010:mpage_prepare_extent_to_map+0xbe9/0xc00 fs/ext4/inode.c:2648 Code: e8 6c d8 c9 ff e9 80 f6 ff ff 44 89 e9 80 e1 07 38 c1 0f 8c a6 fe ff ff 4c 89 ef e8 51 d8 c9 ff e9 99 fe ff ff e8 67 d2 8f ff <0f> 0b e8 60 d2 8f ff 0f 0b e8 79 f3 b8 02 66 0f 1f 84 00 00 00 00 RSP: 0018:ffffc90006407560 EFLAGS: 00010293 RAX: ffffffff81dd23c9 RBX: 0000000000000000 RCX: ffff88810c888000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90006407730 R08: ffffffff81dd2041 R09: fffff94000a5e289 R10: fffff94000a5e289 R11: 0000000000000000 R12: ffffea00052f1440 R13: ffffc90006407620 R14: 0000000000000000 R15: dffffc0000000000 FS: 00005555562c9400(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055930074d348 CR3: 000000010ca97000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400