------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2648! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 19296 Comm: syz-executor.0 Tainted: G W 5.10.109-syzkaller-00693-g414e6c8e941c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:mpage_prepare_extent_to_map+0xc48/0xc60 fs/ext4/inode.c:2648 Code: 48 8d 8c 24 c0 00 00 00 80 e1 07 38 c1 0f 8c 96 fe ff ff 48 8d bc 24 c0 00 00 00 e8 b2 e2 c9 ff e9 84 fe ff ff e8 28 1d 90 ff <0f> 0b e8 21 1d 90 ff 0f 0b e8 0a 9b b3 02 66 2e 0f 1f 84 00 00 00 RSP: 0018:ffffc9000781f560 EFLAGS: 00010293 RAX: ffffffff81dc97d8 RBX: 0000000000000000 RCX: ffff88810e9ca780 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000781f730 R08: ffffffff81dc9434 R09: fffff940009bff51 R10: fffff940009bff51 R11: 1ffffd40009bff50 R12: dffffc0000000000 R13: ffffea0004dffa80 R14: 0000000000000001 R15: 7fffffffffffffff FS: 0000555556f77400(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020c22000 CR3: 0000000146501000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_writepages+0xcc1/0x36f0 fs/ext4/inode.c:2777 do_writepages+0x13a/0x280 mm/page-writeback.c:2358 __filemap_fdatawrite_range+0x354/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/0x7c0 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+0xc8/0xe0 kernel/entry/common.c:164 exit_to_user_mode_prepare kernel/entry/common.c:191 [inline] syscall_exit_to_user_mode+0x77/0xa0 kernel/entry/common.c:266 do_syscall_64+0x40/0x70 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fcbb3a4cd2b 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:00007fff1b17cdf0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007fcbb3a4cd2b RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000003 RBP: 00007fcbb3bae960 R08: 0000000000000000 R09: 00007fcbb3bb2d88 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000092614 R13: 00007fff1b17cef0 R14: 00007fff1b17cf10 R15: 0000000000000032 Modules linked in: ---[ end trace 16031a13ee9373e6 ]--- RIP: 0010:mpage_prepare_extent_to_map+0xc48/0xc60 fs/ext4/inode.c:2648 Code: 48 8d 8c 24 c0 00 00 00 80 e1 07 38 c1 0f 8c 96 fe ff ff 48 8d bc 24 c0 00 00 00 e8 b2 e2 c9 ff e9 84 fe ff ff e8 28 1d 90 ff <0f> 0b e8 21 1d 90 ff 0f 0b e8 0a 9b b3 02 66 2e 0f 1f 84 00 00 00 RSP: 0018:ffffc9000781f560 EFLAGS: 00010293 RAX: ffffffff81dc97d8 RBX: 0000000000000000 RCX: ffff88810e9ca780 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000781f730 R08: ffffffff81dc9434 R09: fffff940009bff51 R10: fffff940009bff51 R11: 1ffffd40009bff50 R12: dffffc0000000000 R13: ffffea0004dffa80 R14: 0000000000000001 R15: 7fffffffffffffff FS: 0000555556f77400(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd49f39ff8 CR3: 0000000146501000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400