------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2561! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 14589 Comm: syz-executor.2 Not tainted 6.5.0-rc5-next-20230809-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:ext4_do_writepages+0x27a1/0x34a0 fs/ext4/inode.c:2561 Code: fc ff df 44 89 64 24 18 48 c1 ea 03 80 3c 02 00 0f 84 bc ed ff ff 48 8b 7c 24 08 e8 79 81 a8 ff e9 ad ed ff ff e8 6f 44 53 ff <0f> 0b e8 68 44 53 ff 48 8b 84 24 b0 00 00 00 48 8d 78 40 48 b8 00 RSP: 0018:ffffc90005947830 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888069cfe450 RCX: 0000000000000000 RDX: ffff88801d683b80 RSI: ffffffff82348311 RDI: 0000000000000007 RBP: ffffc90005947a38 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffff888079b0c628 R14: ffff888069cfe6b0 R15: 7fffffffffffffff FS: 00007fe6086dd6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe6086ddd58 CR3: 00000000778d7000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_writepages+0x30b/0x780 fs/ext4/inode.c:2766 do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 filemap_fdatawrite_wbc mm/filemap.c:393 [inline] filemap_fdatawrite_wbc+0x144/0x1b0 mm/filemap.c:383 __filemap_fdatawrite_range+0xba/0x100 mm/filemap.c:426 ext4_alloc_da_blocks+0x1e9/0x270 fs/ext4/inode.c:3033 ext4_release_file+0x178/0x360 fs/ext4/file.c:169 __fput+0x3f7/0xac0 fs/file_table.c:384 task_work_run+0x14d/0x240 kernel/task_work.c:179 ptrace_notify+0x10c/0x130 kernel/signal.c:2387 ptrace_report_syscall include/linux/ptrace.h:411 [inline] ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline] syscall_exit_work kernel/entry/common.c:252 [inline] syscall_exit_to_user_mode_prepare+0x120/0x220 kernel/entry/common.c:279 __syscall_exit_to_user_mode_work kernel/entry/common.c:284 [inline] syscall_exit_to_user_mode+0xd/0x50 kernel/entry/common.c:297 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe61167cae9 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:00007fe6086dd0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000021 RAX: 0000000000000004 RBX: 00007fe61179c050 RCX: 00007fe61167cae9 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000006 RBP: 00007fe6116c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fe61179c050 R15: 00007ffef2ee99d8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_do_writepages+0x27a1/0x34a0 fs/ext4/inode.c:2561 Code: fc ff df 44 89 64 24 18 48 c1 ea 03 80 3c 02 00 0f 84 bc ed ff ff 48 8b 7c 24 08 e8 79 81 a8 ff e9 ad ed ff ff e8 6f 44 53 ff <0f> 0b e8 68 44 53 ff 48 8b 84 24 b0 00 00 00 48 8d 78 40 48 b8 00 RSP: 0018:ffffc90005947830 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888069cfe450 RCX: 0000000000000000 RDX: ffff88801d683b80 RSI: ffffffff82348311 RDI: 0000000000000007 RBP: ffffc90005947a38 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffff888079b0c628 R14: ffff888069cfe6b0 R15: 7fffffffffffffff FS: 00007fe6086dd6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe6086ddd58 CR3: 00000000778d7000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400