F2FS-fs (loop5): Mounted with checkpoint version = 48b305e5 F2FS-fs (loop5): Bitmap was wrongly cleared, blk:15362 ------------[ cut here ]------------ kernel BUG at fs/f2fs/segment.c:2075! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8163 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/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:ffff8880991572d0 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88809928f0a0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff83137d7e RDI: ffffed101322ae2c RBP: ffff8880a6495000 R08: 0000000000000036 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000020 R13: 00000000ffffffff R14: 0000000000003c02 R15: 0000000000000000 FS: 0000555555e49400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562e62a87848 CR3: 000000009c1f4000 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_do_write_node_page+0x7f/0x270 fs/f2fs/segment.c:3053 __write_node_page+0x7e7/0x1680 fs/f2fs/node.c:1573 f2fs_sync_node_pages+0x1841/0x1de0 fs/f2fs/node.c:1839 block_operations+0x2a7/0x7d0 fs/f2fs/checkpoint.c:1150 f2fs_write_checkpoint+0x2d3/0x5050 fs/f2fs/checkpoint.c:1480 f2fs_sync_fs+0x285/0x530 fs/f2fs/super.c:1109 __sync_filesystem fs/sync.c:39 [inline] sync_filesystem+0x1b5/0x250 fs/sync.c:67 generic_shutdown_super+0x70/0x370 fs/super.c:442 kill_block_super+0x97/0xf0 fs/super.c:1185 kill_f2fs_super+0x241/0x330 fs/f2fs/super.c:3257 deactivate_locked_super+0x94/0x160 fs/super.c:329 deactivate_super+0x174/0x1a0 fs/super.c:360 cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f9a83ca3537 Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 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:00007ffda9c48548 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f9a83ca3537 RDX: 00007ffda9c4861c RSI: 000000000000000a RDI: 00007ffda9c48610 RBP: 00007ffda9c48610 R08: 00000000ffffffff R09: 00007ffda9c483e0 R10: 0000555555e4a903 R11: 0000000000000246 R12: 00007f9a83cfcb24 R13: 00007ffda9c496d0 R14: 0000555555e4a810 R15: 00007ffda9c49710 Modules linked in: ---[ end trace 9bc20996bbb2a0fa ]--- 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:ffff8880991572d0 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88809928f0a0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff83137d7e RDI: ffffed101322ae2c RBP: ffff8880a6495000 R08: 0000000000000036 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000020 R13: 00000000ffffffff R14: 0000000000003c02 R15: 0000000000000000 FS: 0000555555e49400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f939ad15988 CR3: 000000009c1f4000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400