------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2738! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 1658 Comm: syz-executor.5 Not tainted 6.1.0-rc7-syzkaller-00190-g97ee9d1c1696 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:ext4_writepages+0x2550/0x3da0 fs/ext4/inode.c:2738 Code: e1 be 00 10 00 00 4c 89 ef 48 d3 ee ba 01 00 00 00 e8 64 21 fe ff 83 c0 01 89 84 24 c4 00 00 00 e9 4d e1 ff ff e8 a0 9e 5f ff <0f> 0b e8 99 9e 5f ff 44 0f b6 a4 24 eb 00 00 00 89 5c 24 08 e9 7e RSP: 0018:ffffc90005bb7760 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff8880412ac000 RSI: ffffffff821f9e40 RDI: 0000000000000007 RBP: ffff88804663b410 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffff88804663b670 R14: ffffc90005bb7cb8 R15: ffff888048b28000 FS: 0000555556582400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b3033c000 CR3: 0000000052eec000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x1af/0x690 mm/page-writeback.c:2469 filemap_fdatawrite_wbc mm/filemap.c:388 [inline] filemap_fdatawrite_wbc+0x147/0x1b0 mm/filemap.c:378 __filemap_fdatawrite_range+0xb8/0xf0 mm/filemap.c:421 ext4_alloc_da_blocks+0x25f/0x3c0 fs/ext4/inode.c:3140 ext4_release_file+0x181/0x370 fs/ext4/file.c:158 __fput+0x27c/0xa90 fs/file_table.c:320 task_work_run+0x16f/0x270 kernel/task_work.c:179 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+0x23c/0x250 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f17a8a3df8b 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:00007fff73fa8730 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000006 RCX: 00007f17a8a3df8b RDX: 0000001b30120000 RSI: 00007f17a84094c0 RDI: 0000000000000005 RBP: 00007f17a8bad980 R08: 0000000000000000 R09: 00000000ac29c807 R10: 00007fff73fb5090 R11: 0000000000000293 R12: 000000000029f1ea R13: 00007fff73fa8830 R14: 00007fff73fa8850 R15: 0000000000000032 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_writepages+0x2550/0x3da0 fs/ext4/inode.c:2738 Code: e1 be 00 10 00 00 4c 89 ef 48 d3 ee ba 01 00 00 00 e8 64 21 fe ff 83 c0 01 89 84 24 c4 00 00 00 e9 4d e1 ff ff e8 a0 9e 5f ff <0f> 0b e8 99 9e 5f ff 44 0f b6 a4 24 eb 00 00 00 89 5c 24 08 e9 7e RSP: 0018:ffffc90005bb7760 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff8880412ac000 RSI: ffffffff821f9e40 RDI: 0000000000000007 RBP: ffff88804663b410 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffff88804663b670 R14: ffffc90005bb7cb8 R15: ffff888048b28000 FS: 0000555556582400(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2fd47000 CR3: 0000000052eec000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400