------------[ cut here ]------------ kernel BUG at mm/filemap.c:1604! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 144 Comm: kworker/u4:1 Not tainted 5.15.109-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Workqueue: writeback wb_workfn (flush-7:4) RIP: 0010:end_page_writeback+0x501/0x690 mm/filemap.c:1604 Code: 00 00 e8 92 62 d8 ff 4d 89 fd e9 45 01 00 00 e8 85 62 d8 ff 4c 89 e7 48 c7 c6 e0 e3 92 8a e8 a6 33 0e 00 0f 0b e8 6f 62 d8 ff <0f> 0b e8 68 62 d8 ff 4c 89 ff 48 c7 c6 a0 de 92 8a e8 89 33 0e 00 RSP: 0018:ffffc900012ae6b0 EFLAGS: 00010293 RAX: ffffffff81a77c11 RBX: 0000000000000000 RCX: ffff888012dd3a00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000081 R08: ffffffff81a779c1 R09: fffffbfff1bc7466 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea000068a4c0 R13: dffffc0000000000 R14: ffffea000068a4c8 R15: ffffea000068a4c0 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5484613000 CR3: 000000007e8a3000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_write_end_io+0x651/0xdb0 fs/f2fs/data.c:347 submit_bio_checks+0x323/0x1920 block/blk-core.c:905 __submit_bio+0x5a1/0x850 block/blk-core.c:917 __submit_bio_noacct_mq block/blk-core.c:1003 [inline] submit_bio_noacct+0x955/0xb30 block/blk-core.c:1033 submit_bio+0x2dd/0x560 block/blk-core.c:1095 f2fs_submit_merged_ipu_write+0x47c/0x4f0 fs/f2fs/data.c:853 f2fs_write_single_data_page+0x1277/0x1830 fs/f2fs/data.c:2870 f2fs_write_cache_pages fs/f2fs/data.c:3079 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3230 [inline] f2fs_write_data_pages+0x17de/0x2c00 fs/f2fs/data.c:3257 do_writepages+0x481/0x730 mm/page-writeback.c:2364 __writeback_single_inode+0x15b/0xe30 fs/fs-writeback.c:1622 writeback_sb_inodes+0xbf0/0x1a50 fs/fs-writeback.c:1905 wb_writeback+0x451/0xc50 fs/fs-writeback.c:2079 wb_do_writeback fs/fs-writeback.c:2222 [inline] wb_workfn+0x46c/0x1130 fs/fs-writeback.c:2263 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2306 worker_thread+0xaca/0x1280 kernel/workqueue.c:2453 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Modules linked in: ---[ end trace f6bd992580b8f2c3 ]--- RIP: 0010:end_page_writeback+0x501/0x690 mm/filemap.c:1604 Code: 00 00 e8 92 62 d8 ff 4d 89 fd e9 45 01 00 00 e8 85 62 d8 ff 4c 89 e7 48 c7 c6 e0 e3 92 8a e8 a6 33 0e 00 0f 0b e8 6f 62 d8 ff <0f> 0b e8 68 62 d8 ff 4c 89 ff 48 c7 c6 a0 de 92 8a e8 89 33 0e 00 RSP: 0018:ffffc900012ae6b0 EFLAGS: 00010293 RAX: ffffffff81a77c11 RBX: 0000000000000000 RCX: ffff888012dd3a00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000081 R08: ffffffff81a779c1 R09: fffffbfff1bc7466 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea000068a4c0 R13: dffffc0000000000 R14: ffffea000068a4c8 R15: ffffea000068a4c0 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f547c630000 CR3: 0000000020bbd000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400