------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2569! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5108 Comm: syz-executor388 Not tainted 6.7.0-rc8-syzkaller-00177-g52b1853b080a #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 8b 0c a8 ff e9 e2 ed ff ff e8 b1 25 52 ff 90 <0f> 0b e8 a9 25 52 ff 48 8b 4c 24 60 41 89 dd 48 b8 00 00 00 00 00 RSP: 0018:ffffc9000363f860 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880762c90d0 RCX: ffffffff82342b9f RDX: ffff88802111e1c0 RSI: ffffffff82343f6f RDI: 0000000000000007 RBP: ffffc9000363fa68 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffff888020c3e630 R14: ffff8880762c9330 R15: 7fffffffffffffff FS: 00007f24ba3e06c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005584c24a44e0 CR3: 000000007ea53000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: 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:0x7f24ba44cd69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 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:00007f24ba3e0168 EFLAGS: 00000246 ORIG_RAX: 0000000000000021 RAX: 0000000000000004 RBX: 00007f24ba4cd658 RCX: 00007f24ba44cd69 RDX: 00007f24ba424416 RSI: 0000000000000004 RDI: 0000000000000006 RBP: 00007f24ba4cd650 R08: 00007fff4f7d1047 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f24ba4cd65c R13: 000000000000006e R14: 00007fff4f7d0f60 R15: 00007fff4f7d1048 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 8b 0c a8 ff e9 e2 ed ff ff e8 b1 25 52 ff 90 <0f> 0b e8 a9 25 52 ff 48 8b 4c 24 60 41 89 dd 48 b8 00 00 00 00 00 RSP: 0018:ffffc9000363f860 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880762c90d0 RCX: ffffffff82342b9f RDX: ffff88802111e1c0 RSI: ffffffff82343f6f RDI: 0000000000000007 RBP: ffffc9000363fa68 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffff888020c3e630 R14: ffff8880762c9330 R15: 7fffffffffffffff FS: 00007f24ba3e06c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f24b1eff000 CR3: 000000007ea53000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400