------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2736! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 9068 Comm: syz-executor.5 Not tainted 6.1.45-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:ext4_writepages+0x3dd9/0x3de0 fs/ext4/inode.c:2735 Code: c7 30 ed 2b 8d 4c 89 f2 e8 14 fa 26 02 e9 b9 fb ff ff e8 1a cd 50 ff 0f 0b e8 13 cd 50 ff 0f 0b e8 5c a4 4b 08 e8 07 cd 50 ff <0f> 0b 0f 1f 44 00 00 41 57 41 56 41 55 41 54 53 49 89 f7 49 89 fe RSP: 0018:ffffc90005ac75e0 EFLAGS: 00010287 RAX: ffffffff823930f9 RBX: 0000008000000000 RCX: 0000000000040000 RDX: ffffc9000c69c000 RSI: 000000000000007c RDI: 000000000000007d RBP: ffffc90005ac79d0 R08: ffffffff8238f9b0 R09: ffffed1010d7fb54 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffffc90005ac7c00 R14: 000000d410000000 R15: ffffc90005ac78a0 FS: 00007f34c67716c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f34c6771d58 CR3: 00000000880a4000 CR4: 00000000003506e0 DR0: 00000000ffff070c DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x3a2/0x670 mm/page-writeback.c:2469 filemap_fdatawrite_wbc+0x121/0x180 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] __filemap_fdatawrite mm/filemap.c:427 [inline] filemap_flush+0x11a/0x170 mm/filemap.c:454 ext4_release_file+0x7d/0x300 fs/ext4/file.c:158 __fput+0x3b7/0x890 fs/file_table.c:320 task_work_run+0x246/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xd9/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f34c5a7cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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:00007f34c67710c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000021 RAX: 0000000000000004 RBX: 00007f34c5b9c050 RCX: 00007f34c5a7cae9 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000006 RBP: 00007f34c5ac847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f34c5b9c050 R15: 00007ffd96d91da8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_writepages+0x3dd9/0x3de0 fs/ext4/inode.c:2735 Code: c7 30 ed 2b 8d 4c 89 f2 e8 14 fa 26 02 e9 b9 fb ff ff e8 1a cd 50 ff 0f 0b e8 13 cd 50 ff 0f 0b e8 5c a4 4b 08 e8 07 cd 50 ff <0f> 0b 0f 1f 44 00 00 41 57 41 56 41 55 41 54 53 49 89 f7 49 89 fe RSP: 0018:ffffc90005ac75e0 EFLAGS: 00010287 RAX: ffffffff823930f9 RBX: 0000008000000000 RCX: 0000000000040000 RDX: ffffc9000c69c000 RSI: 000000000000007c RDI: 000000000000007d RBP: ffffc90005ac79d0 R08: ffffffff8238f9b0 R09: ffffed1010d7fb54 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffffc90005ac7c00 R14: 000000d410000000 R15: ffffc90005ac78a0 FS: 00007f34c67716c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c00d8651e0 CR3: 00000000880a4000 CR4: 00000000003506f0 DR0: 00000000ffff070c DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400