------------[ cut here ]------------
kernel BUG at fs/ext4/inode.c:2648!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 32137 Comm: syz-executor.4 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:ffffc9000019f560 EFLAGS: 00010293
RAX: ffffffff81dc97d8 RBX: 0000000000000000 RCX: ffff88811cf213c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000019f730 R08: ffffffff81dc9434 R09: fffff9400099a719
R10: fffff9400099a719 R11: 1ffffd400099a718 R12: dffffc0000000000
R13: ffffea0004cd38c0 R14: 0000000000000060 R15: 7fffffffffffff9f
FS:  00005555562dc400(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3332a000 CR3: 00000001578da000 CR4: 00000000003506a0
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:0x7f4fdc7cad2b
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:00007ffe240ec690 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f4fdc7cad2b
RDX: 0000001b33320000 RSI: 0000001b33328430 RDI: 0000000000000003
RBP: 00007f4fdc92c960 R08: 0000000000000000 R09: 00000000d5f35d6f
R10: 00000000000492ee R11: 0000000000000293 R12: 00000000001b17a7
R13: 00007ffe240ec790 R14: 00007ffe240ec7b0 R15: 0000000000000032
Modules linked in:
---[ end trace 4379dab6ea9d8d49 ]---
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:ffffc9000019f560 EFLAGS: 00010293
RAX: ffffffff81dc97d8 RBX: 0000000000000000 RCX: ffff88811cf213c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000019f730 R08: ffffffff81dc9434 R09: fffff9400099a719
R10: fffff9400099a719 R11: 1ffffd400099a718 R12: dffffc0000000000
R13: ffffea0004cd38c0 R14: 0000000000000060 R15: 7fffffffffffff9f
FS:  00005555562dc400(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3332a000 CR3: 00000001578da000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400