F2FS-fs (loop1): Mounted with checkpoint version = 48b305e5 F2FS-fs (loop1): inject page alloc in f2fs_grab_cache_folio of f2fs_new_node_folio+0x131/0xa40 fs/f2fs/node.c:1349 F2FS-fs (loop1): inject invalid blkaddr in f2fs_is_valid_blkaddr of do_write_page+0x277/0xb10 fs/f2fs/segment.c:3956 ------------[ cut here ]------------ kernel BUG at fs/f2fs/segment.c:3957! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 12826 Comm: syz.1.1024 Not tainted 6.16.0-rc4-next-20250703-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:do_write_page+0xa44/0xb10 fs/f2fs/segment.c:3956 Code: 32 be ad fd 49 89 ed 48 89 e8 48 25 ff 0f 00 00 74 1a e8 3f b9 ad fd e9 9f 00 00 00 e8 35 b9 ad fd 90 0f 0b e8 2d b9 ad fd 90 <0f> 0b 4d 89 ee 4c 89 ef be 08 00 00 00 e8 0a cf 11 fe 49 c1 ee 03 RSP: 0018:ffffc900039cecd8 EFLAGS: 00010283 RAX: ffffffff8411e5f3 RBX: ffffc900039cefc0 RCX: 0000000000080000 RDX: ffffc90004a71000 RSI: 0000000000005114 RDI: 0000000000005115 RBP: ffffc900039cefdc R08: ffffc900039ce867 R09: 1ffff92000739d0c R10: dffffc0000000000 R11: fffff52000739d0d R12: ffff888021b2c000 R13: 1ffff92000739dfb R14: dffffc0000000000 R15: ffffc900039cefdc FS: 00007fa5c80db6c0(0000) GS:ffff888125d1e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffabe4cea90 CR3: 000000003b39e000 CR4: 00000000003526f0 DR0: 0000040000000000 DR1: 000000000000064f DR2: 0000000000000006 DR3: 0000000000000006 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: f2fs_outplace_write_data+0x11a/0x220 fs/f2fs/segment.c:4017 f2fs_do_write_data_page+0x12ea/0x1a40 fs/f2fs/data.c:2752 f2fs_write_single_data_page+0x9f1/0x1680 fs/f2fs/data.c:2868 f2fs_write_cache_pages fs/f2fs/data.c:3133 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3282 [inline] f2fs_write_data_pages+0x195b/0x3000 fs/f2fs/data.c:3309 do_writepages+0x32e/0x550 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] filemap_write_and_wait_range+0x21f/0x320 mm/filemap.c:691 f2fs_flush_buffered_write fs/f2fs/file.c:5032 [inline] f2fs_file_write_iter+0x82c/0x2410 fs/f2fs/file.c:5247 do_iter_readv_writev+0x56b/0x7f0 fs/read_write.c:-1 vfs_writev+0x31a/0x960 fs/read_write.c:1057 do_writev+0x14d/0x2d0 fs/read_write.c:1103 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa5c718e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa5c80db038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fa5c73b5fa0 RCX: 00007fa5c718e929 RDX: 0000000000000001 RSI: 0000200000000140 RDI: 0000000000000005 RBP: 00007fa5c7210b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa5c73b5fa0 R15: 00007ffe10ba37b8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:do_write_page+0xa44/0xb10 fs/f2fs/segment.c:3956 Code: 32 be ad fd 49 89 ed 48 89 e8 48 25 ff 0f 00 00 74 1a e8 3f b9 ad fd e9 9f 00 00 00 e8 35 b9 ad fd 90 0f 0b e8 2d b9 ad fd 90 <0f> 0b 4d 89 ee 4c 89 ef be 08 00 00 00 e8 0a cf 11 fe 49 c1 ee 03 RSP: 0018:ffffc900039cecd8 EFLAGS: 00010283 RAX: ffffffff8411e5f3 RBX: ffffc900039cefc0 RCX: 0000000000080000 RDX: ffffc90004a71000 RSI: 0000000000005114 RDI: 0000000000005115 RBP: ffffc900039cefdc R08: ffffc900039ce867 R09: 1ffff92000739d0c R10: dffffc0000000000 R11: fffff52000739d0d R12: ffff888021b2c000 R13: 1ffff92000739dfb R14: dffffc0000000000 R15: ffffc900039cefdc FS: 00007fa5c80db6c0(0000) GS:ffff888125d1e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbefede7000 CR3: 000000003b39e000 CR4: 00000000003526f0 DR0: 0000040000000000 DR1: 000000000000064f DR2: 0000000000000006 DR3: 0000000000000006 DR6: 00000000ffff0ff0 DR7: 0000000000000400