------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2561! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 48 Comm: kworker/u4:3 Not tainted 6.5.0-rc6-next-20230818-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: writeback wb_workfn (flush-7:0) 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 89 3e a8 ff e9 ad ed ff ff e8 6f bd 52 ff <0f> 0b e8 68 bd 52 ff 48 8b 84 24 b0 00 00 00 48 8d 78 40 48 b8 00 RSP: 0018:ffffc90000b8f320 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888075e90a50 RCX: 0000000000000000 RDX: ffff888013e9d940 RSI: ffffffff82351601 RDI: 0000000000000007 RBP: ffffc90000b8f528 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffff888021158628 R14: ffff888075e90cb0 R15: 0000000000003400 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f63f56bfd58 CR3: 000000007a839000 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 __writeback_single_inode+0x158/0xe70 fs/fs-writeback.c:1603 writeback_sb_inodes+0x599/0x1010 fs/fs-writeback.c:1894 __writeback_inodes_wb+0xff/0x2d0 fs/fs-writeback.c:1965 wb_writeback+0x7f8/0xa90 fs/fs-writeback.c:2072 wb_check_background_flush fs/fs-writeback.c:2142 [inline] wb_do_writeback fs/fs-writeback.c:2230 [inline] wb_workfn+0x874/0xfd0 fs/fs-writeback.c:2257 process_one_work+0x887/0x15d0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8bb/0x1290 kernel/workqueue.c:2784 kthread+0x33a/0x430 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 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 89 3e a8 ff e9 ad ed ff ff e8 6f bd 52 ff <0f> 0b e8 68 bd 52 ff 48 8b 84 24 b0 00 00 00 48 8d 78 40 48 b8 00 RSP: 0018:ffffc90000b8f320 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888075e90a50 RCX: 0000000000000000 RDX: ffff888013e9d940 RSI: ffffffff82351601 RDI: 0000000000000007 RBP: ffffc90000b8f528 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffff888021158628 R14: ffff888075e90cb0 R15: 0000000000003400 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055c0927735c0 CR3: 000000007417b000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400