attempt to access beyond end of device loop3: rw=12288, want=12296, limit=8287 ------------[ cut here ]------------ kernel BUG at fs/f2fs/segment.h:657! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 9093 Comm: syz-executor.3 Not tainted 5.9.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:check_seg_range fs/f2fs/segment.h:657 [inline] RIP: 0010:current_sit_addr fs/f2fs/segment.h:721 [inline] RIP: 0010:f2fs_ra_meta_pages+0x112c/0x1140 fs/f2fs/checkpoint.c:247 Code: 0b e8 28 c1 20 fe 0f 0b e8 21 c1 20 fe 48 89 ef 48 c7 c6 5b ff 28 89 e8 12 be 4f fe 0f 0b e8 0b c1 20 fe 0f 0b e8 04 c1 20 fe <0f> 0b e8 fd c0 20 fe 0f 0b e8 76 fe f4 04 66 0f 1f 44 00 00 55 41 RSP: 0018:ffffc900166476c8 EFLAGS: 00010246 RAX: ffffffff83544ccc RBX: 0000000000000001 RCX: 0000000000040000 RDX: ffffc9000eb88000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 000000000000001e R08: ffffffff83544692 R09: ffffffff83543df7 R10: 0000000000000005 R11: ffff88804dcbe500 R12: 0000000000000601 R13: ffff88809379f4c7 R14: dffffc0000000000 R15: 0000000000000037 FS: 00007ff2d6b3c700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000563b4131a160 CR3: 000000009ee39000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: build_sit_entries+0x18f/0x1aa0 fs/f2fs/segment.c:4195 f2fs_build_segment_manager+0x26bf/0x5670 fs/f2fs/segment.c:4779 f2fs_fill_super+0x66e7/0x9880 fs/f2fs/super.c:3633 mount_bdev+0x24f/0x360 fs/super.c:1417 legacy_get_tree+0xea/0x180 fs/fs_context.c:592 vfs_get_tree+0x88/0x270 fs/super.c:1547 do_new_mount fs/namespace.c:2875 [inline] path_mount+0x179d/0x29e0 fs/namespace.c:3192 do_mount fs/namespace.c:3205 [inline] __do_sys_mount fs/namespace.c:3413 [inline] __se_sys_mount+0x126/0x180 fs/namespace.c:3390 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x46004a Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 89 fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007ff2d6b3ba88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ff2d6b3bb20 RCX: 000000000046004a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ff2d6b3bae0 RBP: 00007ff2d6b3bae0 R08: 00007ff2d6b3bb20 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020012400 Modules linked in: ---[ end trace b206e624693cca6d ]--- RIP: 0010:check_seg_range fs/f2fs/segment.h:657 [inline] RIP: 0010:current_sit_addr fs/f2fs/segment.h:721 [inline] RIP: 0010:f2fs_ra_meta_pages+0x112c/0x1140 fs/f2fs/checkpoint.c:247 Code: 0b e8 28 c1 20 fe 0f 0b e8 21 c1 20 fe 48 89 ef 48 c7 c6 5b ff 28 89 e8 12 be 4f fe 0f 0b e8 0b c1 20 fe 0f 0b e8 04 c1 20 fe <0f> 0b e8 fd c0 20 fe 0f 0b e8 76 fe f4 04 66 0f 1f 44 00 00 55 41 RSP: 0018:ffffc900166476c8 EFLAGS: 00010246 RAX: ffffffff83544ccc RBX: 0000000000000001 RCX: 0000000000040000 RDX: ffffc9000eb88000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 000000000000001e R08: ffffffff83544692 R09: ffffffff83543df7 R10: 0000000000000005 R11: ffff88804dcbe500 R12: 0000000000000601 R13: ffff88809379f4c7 R14: dffffc0000000000 R15: 0000000000000037 FS: 00007ff2d6b3c700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000563b4131a160 CR3: 000000009ee39000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400