------------[ cut here ]------------
kernel BUG at fs/ext4/inode.c:2564!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 PID: 7399 Comm: syz-executor270 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:ext4_do_writepages+0x3c92/0x3ca0 fs/ext4/inode.c:2563
Code: 2e 8e 4c 89 f2 e8 8e 5a 83 02 e9 ab fb ff ff e8 24 94 41 ff 90 0f 0b e8 1c 94 41 ff 90 0f 0b e8 84 32 18 09 e8 0f 94 41 ff 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000cb47540 EFLAGS: 00010293
RAX: ffffffff82536041 RBX: 0000004000000000 RCX: ffff88802afb1e00
RDX: 0000000000000000 RSI: 0000004000000000 RDI: 0000000000000000
RBP: ffffc9000cb478b0 R08: ffffffff825328ba R09: 1ffff1100ed1f8ca
R10: dffffc0000000000 R11: ffffed100ed1f8cb R12: 0000000000000001
R13: 0000000000400040 R14: 0000006a10000000 R15: ffff8880768fc8b0
FS:  00007f33b8b096c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f33b8b09d58 CR3: 0000000029af8000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_writepages+0x204/0x3e0 fs/ext4/inode.c:2768
 do_writepages+0x3a4/0x670 mm/page-writeback.c:2553
 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:397
 __filemap_fdatawrite_range mm/filemap.c:430 [inline]
 __filemap_fdatawrite mm/filemap.c:436 [inline]
 filemap_flush+0x11e/0x180 mm/filemap.c:463
 ext4_release_file+0x81/0x300 fs/ext4/file.c:169
 __fput+0x429/0x8a0 fs/file_table.c:422
 task_work_run+0x24f/0x310 kernel/task_work.c:180
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:108 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline]
 syscall_exit_to_user_mode+0x168/0x360 kernel/entry/common.c:212
 do_syscall_64+0x10a/0x240 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x6d/0x75
RIP: 0033:0x7f33b8b7ea29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 1d 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:00007f33b8b09218 EFLAGS: 00000246 ORIG_RAX: 0000000000000021
RAX: 0000000000000004 RBX: 00007f33b8bff738 RCX: 00007f33b8b7ea29
RDX: 00007f33b8b55f86 RSI: 0000000000000004 RDI: 0000000000000006
RBP: 00007f33b8bff730 R08: 00007ffef7559fc7 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f33b8bff73c
R13: 00007f33b8bcbd68 R14: 00007f33b8bcb5e0 R15: 00000000200011c0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_do_writepages+0x3c92/0x3ca0 fs/ext4/inode.c:2563
Code: 2e 8e 4c 89 f2 e8 8e 5a 83 02 e9 ab fb ff ff e8 24 94 41 ff 90 0f 0b e8 1c 94 41 ff 90 0f 0b e8 84 32 18 09 e8 0f 94 41 ff 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000cb47540 EFLAGS: 00010293
RAX: ffffffff82536041 RBX: 0000004000000000 RCX: ffff88802afb1e00
RDX: 0000000000000000 RSI: 0000004000000000 RDI: 0000000000000000
RBP: ffffc9000cb478b0 R08: ffffffff825328ba R09: 1ffff1100ed1f8ca
R10: dffffc0000000000 R11: ffffed100ed1f8cb R12: 0000000000000001
R13: 0000000000400040 R14: 0000006a10000000 R15: ffff8880768fc8b0
FS:  00007f33b8b096c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f33b8b09d58 CR3: 0000000029af8000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400