------------[ cut here ]------------ kernel BUG at mm/filemap.c:1619! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 2 PID: 5988 Comm: syz-executor.3 Not tainted 6.3.0-rc4-syzkaller-00051-g8bb95a1662f8 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:folio_end_writeback+0x391/0x3b0 mm/filemap.c:1619 Code: ef e8 c3 97 25 00 e9 82 fe ff ff 4c 89 e7 e8 d6 97 25 00 e9 c8 fc ff ff 48 89 ef e8 c9 97 25 00 e9 d5 fd ff ff e8 1f 77 d5 ff <0f> 0b e8 b8 97 25 00 e9 11 fe ff ff 48 89 df e8 ab 97 25 00 e9 80 RSP: 0018:ffffc90004f97430 EFLAGS: 00010212 RAX: 000000000000096f RBX: 00000000013e3600 RCX: ffffc90007425000 RDX: 0000000000040000 RSI: ffffffff81ac81e1 RDI: 0000000000000001 RBP: ffffea00013e3600 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea00013e3634 R13: 0000000000001000 R14: 0000000000000011 R15: ffff88800c358000 FS: 00007fc0e111b700(0000) GS:ffff88802cb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000202e3030 CR3: 0000000043d97000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_write_end_io+0x7c0/0x1170 fs/f2fs/data.c:377 bio_endio+0x5bb/0x6c0 block/bio.c:1607 submit_bio_noacct+0x306/0x1a30 block/blk-core.c:814 submit_bio block/blk-core.c:843 [inline] submit_bio+0x8f/0x1c0 block/blk-core.c:831 f2fs_submit_merged_ipu_write+0x3cb/0x5c0 fs/f2fs/data.c:919 f2fs_write_single_data_page+0x14f4/0x1810 fs/f2fs/data.c:2901 f2fs_write_cache_pages+0xce9/0x1ef0 fs/f2fs/data.c:3144 __f2fs_write_data_pages fs/f2fs/data.c:3295 [inline] f2fs_write_data_pages+0xc4e/0x10a0 fs/f2fs/data.c:3322 do_writepages+0x1a8/0x640 mm/page-writeback.c:2551 filemap_fdatawrite_wbc mm/filemap.c:390 [inline] filemap_fdatawrite_wbc+0x147/0x1b0 mm/filemap.c:380 __filemap_fdatawrite_range+0xb8/0xf0 mm/filemap.c:423 sync_file_range+0x1e2/0x2a0 fs/sync.c:292 ksys_sync_file_range fs/sync.c:364 [inline] __do_sys_sync_file_range fs/sync.c:373 [inline] __se_sys_sync_file_range fs/sync.c:370 [inline] __x64_sys_sync_file_range+0xd0/0x140 fs/sync.c:370 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc0e048c0f9 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:00007fc0e111b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000115 RAX: ffffffffffffffda RBX: 00007fc0e05ac1f0 RCX: 00007fc0e048c0f9 RDX: 0000000000000000 RSI: 0000000000008000 RDI: 0000000000000005 RBP: 00007fc0e04e7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd1a8a6aef R14: 00007fc0e111b300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_end_writeback+0x391/0x3b0 mm/filemap.c:1619 Code: ef e8 c3 97 25 00 e9 82 fe ff ff 4c 89 e7 e8 d6 97 25 00 e9 c8 fc ff ff 48 89 ef e8 c9 97 25 00 e9 d5 fd ff ff e8 1f 77 d5 ff <0f> 0b e8 b8 97 25 00 e9 11 fe ff ff 48 89 df e8 ab 97 25 00 e9 80 RSP: 0018:ffffc90004f97430 EFLAGS: 00010212 RAX: 000000000000096f RBX: 00000000013e3600 RCX: ffffc90007425000 RDX: 0000000000040000 RSI: ffffffff81ac81e1 RDI: 0000000000000001 RBP: ffffea00013e3600 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea00013e3634 R13: 0000000000001000 R14: 0000000000000011 R15: ffff88800c358000 FS: 00007fc0e111b700(0000) GS:ffff88802cb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6d3703a920 CR3: 0000000043d97000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400