------------[ cut here ]------------ kernel BUG at fs/f2fs/segment.c:2075! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 30457 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:update_sit_entry+0x100a/0x1300 fs/f2fs/segment.c:2075 Code: ff df 48 c1 ea 03 80 3c 02 00 0f 85 d7 02 00 00 48 8b 7d 00 44 89 f1 48 c7 c2 e0 4b a8 88 48 c7 c6 a0 4a a8 88 e8 06 7b f6 ff <0f> 0b 4c 89 ff e8 cc 60 7b fe e9 61 f1 ff ff 48 89 df e8 2f 60 7b RSP: 0018:ffff88809e116f78 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88808b7e4650 RCX: ffffc9000904e000 RDX: 00000000000027e3 RSI: ffffffff83137d7e RDI: 0000000000000005 RBP: ffff8880993d0880 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000080 R13: 00000000ffffffff R14: 0000000000001600 R15: 0000000000000000 FS: 00007fd1a4eb5700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff29ff0c20 CR3: 000000009ff54000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_allocate_data_block+0x5f3/0x1e10 fs/f2fs/segment.c:2936 do_write_page+0x2de/0x670 fs/f2fs/segment.c:3003 f2fs_outplace_write_data+0x163/0x3c0 fs/f2fs/segment.c:3066 f2fs_do_write_data_page+0x1761/0x2950 fs/f2fs/data.c:1838 __write_data_page+0x1eaf/0x22d0 fs/f2fs/data.c:1920 f2fs_write_cache_pages+0x96e/0x13e0 fs/f2fs/data.c:2107 __f2fs_write_data_pages fs/f2fs/data.c:2217 [inline] f2fs_write_data_pages+0xcc3/0x1060 fs/f2fs/data.c:2244 do_writepages+0xe5/0x290 mm/page-writeback.c:2344 __filemap_fdatawrite_range+0x27d/0x350 mm/filemap.c:446 f2fs_sync_dirty_inodes+0x220/0xdf0 fs/f2fs/checkpoint.c:1034 block_operations+0x149/0x7d0 fs/f2fs/checkpoint.c:1121 f2fs_write_checkpoint+0x2d3/0x5050 fs/f2fs/checkpoint.c:1480 f2fs_sync_fs+0x285/0x530 fs/f2fs/super.c:1109 f2fs_mkdir+0x4b1/0x610 fs/f2fs/namei.c:673 vfs_mkdir+0x508/0x7a0 fs/namei.c:3819 do_mkdirat+0x262/0x2d0 fs/namei.c:3842 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fd1a69430f9 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:00007fd1a4eb5168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fd1a6a62f80 RCX: 00007fd1a69430f9 RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000004 RBP: 00007fd1a699eae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff3e3711df R14: 00007fd1a4eb5300 R15: 0000000000022000 Modules linked in: ---[ end trace 62e70fce0e464054 ]--- RIP: 0010:update_sit_entry+0x100a/0x1300 fs/f2fs/segment.c:2075 Code: ff df 48 c1 ea 03 80 3c 02 00 0f 85 d7 02 00 00 48 8b 7d 00 44 89 f1 48 c7 c2 e0 4b a8 88 48 c7 c6 a0 4a a8 88 e8 06 7b f6 ff <0f> 0b 4c 89 ff e8 cc 60 7b fe e9 61 f1 ff ff 48 89 df e8 2f 60 7b RSP: 0018:ffff88809e116f78 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88808b7e4650 RCX: ffffc9000904e000 RDX: 00000000000027e3 RSI: ffffffff83137d7e RDI: 0000000000000005 RBP: ffff8880993d0880 R08: 0000000000000000 R09: 0000000000000000 EXT4-fs (loop2): mounting with "discard" option, but the device does not support discard EXT4-fs (loop2): mounted filesystem without journal. Opts: dioread_nolock,discard,errors=remount-ro, R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000080 R13: 00000000ffffffff R14: 0000000000001600 R15: 0000000000000000 FS: 00007fd1a4eb5700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f995a873829 CR3: 000000009ff54000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400