------------[ cut here ]------------
kernel BUG at fs/ext4/inode.c:2569!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 6701 Comm: syz-executor407 Not tainted 6.7.0-rc7-syzkaller-00016-gf5837722ffec #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:ext4_do_writepages+0x2670/0x3350 fs/ext4/inode.c:2569
Code: ff df 44 89 64 24 18 48 c1 ea 03 80 3c 02 00 0f 84 f1 ed ff ff 48 8b 7c 24 08 e8 7b 0f a8 ff e9 e2 ed ff ff e8 31 65 51 ff 90 <0f> 0b e8 29 65 51 ff 48 8b 4c 24 60 41 89 dd 48 b8 00 00 00 00 00
RSP: 0018:ffffc9000b7ef860 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88806b5d2850 RCX: ffffffff8235f8cf
RDX: ffff88801ae95940 RSI: ffffffff82360c9f RDI: 0000000000000007
RBP: ffffc9000b7efa68 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
R13: ffff888021074630 R14: ffff88806b5d2ab0 R15: 7fffffffffffffff
FS:  00007f10a716a6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffee97bc9c0 CR3: 000000001abd6000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 ext4_writepages+0x30c/0x780 fs/ext4/inode.c:2774
 do_writepages+0x1b4/0x690 mm/page-writeback.c:2553
 filemap_fdatawrite_wbc mm/filemap.c:387 [inline]
 filemap_fdatawrite_wbc+0x144/0x1b0 mm/filemap.c:377
 __filemap_fdatawrite_range+0xba/0x100 mm/filemap.c:420
 ext4_alloc_da_blocks+0x1e9/0x270 fs/ext4/inode.c:3077
 ext4_release_file+0x178/0x360 fs/ext4/file.c:169
 __fput+0x270/0xb70 fs/file_table.c:394
 task_work_run+0x14d/0x240 kernel/task_work.c:180
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0x217/0x240 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x1e/0x60 kernel/entry/common.c:296
 do_syscall_64+0x4d/0x110 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f10a79d5489
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 1c 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f10a716a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000021
RAX: 0000000000000004 RBX: 00007f10a7a634f8 RCX: 00007f10a79d5489
RDX: 00007f10a79ac2a6 RSI: 0000000000000004 RDI: 0000000000000006
RBP: 00007f10a7a634f0 R08: 00007ffee9684567 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f10a7a634fc
R13: 000000000000006e R14: 00007ffee9684480 R15: 00007ffee9684568
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_do_writepages+0x2670/0x3350 fs/ext4/inode.c:2569
Code: ff df 44 89 64 24 18 48 c1 ea 03 80 3c 02 00 0f 84 f1 ed ff ff 48 8b 7c 24 08 e8 7b 0f a8 ff e9 e2 ed ff ff e8 31 65 51 ff 90 <0f> 0b e8 29 65 51 ff 48 8b 4c 24 60 41 89 dd 48 b8 00 00 00 00 00
RSP: 0018:ffffc9000b7ef860 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88806b5d2850 RCX: ffffffff8235f8cf
RDX: ffff88801ae95940 RSI: ffffffff82360c9f RDI: 0000000000000007
RBP: ffffc9000b7efa68 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
R13: ffff888021074630 R14: ffff88806b5d2ab0 R15: 7fffffffffffffff
FS:  00007f10a716a6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffee9682da8 CR3: 000000001abd6000 CR4: 0000000000350ef0