------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2749! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 780 Comm: syz-executor.2 Not tainted 6.1.68-syzkaller-00008-gd3f73f04529a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:ext4_writepages+0x3fab/0x3fd0 fs/ext4/inode.c:2748 Code: 6f 81 ff 31 ff 89 de e8 c3 6f 81 ff 45 84 f6 75 2a e8 29 6d 81 ff 49 bc 00 00 00 00 00 fc ff df e9 6e f6 ff ff e8 15 6d 81 ff <0f> 0b e8 0e 6d 81 ff e8 a5 94 0c ff e9 46 c3 ff ff e8 ff 6c 81 ff RSP: 0018:ffffc90001c07580 EFLAGS: 00010293 RAX: ffffffff81f3eb2b RBX: 0000008000000000 RCX: ffff8881153ce540 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc90001c07990 R08: ffffffff81f3b28b R09: ffffed1021706e57 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888123344000 R13: ffff88810b8373f0 R14: 000000d410000000 R15: ffffc90001c07860 FS: 00007f7fdb5b46c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7fdb5b4d58 CR3: 000000010e82e000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0x385/0x620 mm/page-writeback.c:2472 filemap_fdatawrite_wbc+0x153/0x1b0 mm/filemap.c:402 __filemap_fdatawrite_range mm/filemap.c:435 [inline] __filemap_fdatawrite mm/filemap.c:441 [inline] filemap_flush+0x11a/0x170 mm/filemap.c:468 ext4_alloc_da_blocks+0x77/0x1a0 fs/ext4/inode.c:3153 ext4_release_file+0x84/0x310 fs/ext4/file.c:158 __fput+0x3ab/0x870 fs/file_table.c:320 ____fput+0x15/0x20 fs/file_table.c:348 task_work_run+0x24d/0x2e0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x94/0xa0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7fda87dda9 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:00007f7fdb5b40c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000021 RAX: 0000000000000004 RBX: 00007f7fda9ac050 RCX: 00007f7fda87dda9 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000006 RBP: 00007f7fda8ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f7fda9ac050 R15: 00007ffca1ab2fa8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_writepages+0x3fab/0x3fd0 fs/ext4/inode.c:2748 Code: 6f 81 ff 31 ff 89 de e8 c3 6f 81 ff 45 84 f6 75 2a e8 29 6d 81 ff 49 bc 00 00 00 00 00 fc ff df e9 6e f6 ff ff e8 15 6d 81 ff <0f> 0b e8 0e 6d 81 ff e8 a5 94 0c ff e9 46 c3 ff ff e8 ff 6c 81 ff RSP: 0018:ffffc90001c07580 EFLAGS: 00010293 RAX: ffffffff81f3eb2b RBX: 0000008000000000 RCX: ffff8881153ce540 RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000 RBP: ffffc90001c07990 R08: ffffffff81f3b28b R09: ffffed1021706e57 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888123344000 R13: ffff88810b8373f0 R14: 000000d410000000 R15: ffffc90001c07860 FS: 00007f7fdb5b46c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556952818 CR3: 000000010e82e000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400