------------[ cut here ]------------ kernel BUG at mm/filemap.c:1619! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 27463 Comm: syz-executor.5 Not tainted 6.3.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:folio_end_writeback+0x43a/0x700 mm/filemap.c:1619 Code: 84 db 00 00 00 e8 46 32 d1 ff e9 48 fc ff ff e8 3c 32 d1 ff 4c 89 ff 48 c7 c6 e0 aa f2 8a e8 4d a7 0f 00 0f 0b e8 26 32 d1 ff <0f> 0b e8 1f 32 d1 ff 4c 89 ff 48 c7 c6 a0 ad f2 8a e8 30 a7 0f 00 RSP: 0018:ffffc9000397ecf0 EFLAGS: 00010287 RAX: ffffffff81b93afa RBX: 0000000000000081 RCX: 0000000000040000 RDX: ffffc9000c5fe000 RSI: 0000000000016cd1 RDI: 0000000000016cd2 RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff1ca6f7e R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0000ac5034 R13: 1ffffd4000158a06 R14: ffffea0000ac5008 R15: ffffea0000ac5000 FS: 00007f13cb6d8700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556464848 CR3: 000000002007e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_write_end_io+0x639/0xbb0 fs/f2fs/data.c:377 f2fs_inplace_write_data+0x4b7/0x8c0 fs/f2fs/segment.c:3491 f2fs_do_write_data_page+0xbb5/0x1e80 fs/f2fs/data.c:2706 f2fs_write_single_data_page+0x1372/0x1f60 fs/f2fs/data.c:2861 f2fs_write_cache_pages fs/f2fs/data.c:3144 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3295 [inline] f2fs_write_data_pages+0x1fac/0x35e0 fs/f2fs/data.c:3322 do_writepages+0x3a6/0x670 mm/page-writeback.c:2551 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:390 __filemap_fdatawrite_range mm/filemap.c:423 [inline] file_write_and_wait_range+0x20f/0x300 mm/filemap.c:781 f2fs_do_sync_file+0x681/0x1c00 fs/f2fs/file.c:273 generic_write_sync include/linux/fs.h:2452 [inline] f2fs_file_write_iter+0x701/0x2380 fs/f2fs/file.c:4727 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7b2/0xbb0 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f13ca88c0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f13cb6d8168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f13ca9abf80 RCX: 00007f13ca88c0f9 RDX: 00000000000ffe00 RSI: 0000000020004200 RDI: 0000000000000005 RBP: 00007f13ca8e7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffe408862f R14: 00007f13cb6d8300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_end_writeback+0x43a/0x700 mm/filemap.c:1619 Code: 84 db 00 00 00 e8 46 32 d1 ff e9 48 fc ff ff e8 3c 32 d1 ff 4c 89 ff 48 c7 c6 e0 aa f2 8a e8 4d a7 0f 00 0f 0b e8 26 32 d1 ff <0f> 0b e8 1f 32 d1 ff 4c 89 ff 48 c7 c6 a0 ad f2 8a e8 30 a7 0f 00 RSP: 0018:ffffc9000397ecf0 EFLAGS: 00010287 RAX: ffffffff81b93afa RBX: 0000000000000081 RCX: 0000000000040000 RDX: ffffc9000c5fe000 RSI: 0000000000016cd1 RDI: 0000000000016cd2 RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff1ca6f7e R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0000ac5034 R13: 1ffffd4000158a06 R14: ffffea0000ac5008 R15: ffffea0000ac5000 FS: 00007f13cb6d8700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c007056e00 CR3: 000000002007e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400