attempt to access beyond end of device loop5: rw=12288, want=12296, limit=8287 ------------[ cut here ]------------ kernel BUG at fs/f2fs/segment.h:657! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 13565 Comm: syz-executor.5 Not tainted 5.9.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:f2fs_ra_meta_pages+0xa51/0xdc0 fs/f2fs/segment.h:657 Code: 08 49 83 ed 01 e9 3f f8 ff ff c7 44 24 18 80 00 00 00 45 31 ff 45 31 f6 31 f6 41 bc 01 00 00 00 e9 cd fb ff ff e8 7f 5f 1d fe <0f> 0b e8 78 5f 1d fe 4c 8b 6c 24 08 be 04 00 00 00 4c 89 ef e8 06 RSP: 0018:ffffc9000a0677a8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: dffffc0000000000 RCX: ffffc900132f2000 RDX: 0000000000040000 RSI: ffffffff8358dec1 RDI: 0000000000000004 RBP: ffff88804711c000 R08: 0000000000000001 R09: ffffea00010b5c37 R10: 0000000000000037 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000601 R14: ffff88809f83e800 R15: 000000000000001e FS: 00007fcd291e1700(0000) GS:ffff8880ae400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056508fe26160 CR3: 000000009010d000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: build_sit_entries fs/f2fs/segment.c:4195 [inline] f2fs_build_segment_manager+0x4c4e/0xa6d0 fs/f2fs/segment.c:4779 f2fs_fill_super+0x381a/0x6e80 fs/f2fs/super.c:3633 mount_bdev+0x32e/0x3f0 fs/super.c:1417 legacy_get_tree+0x105/0x220 fs/fs_context.c:592 vfs_get_tree+0x89/0x2f0 fs/super.c:1547 do_new_mount fs/namespace.c:2875 [inline] path_mount+0x1387/0x20a0 fs/namespace.c:3192 do_mount fs/namespace.c:3205 [inline] __do_sys_mount fs/namespace.c:3413 [inline] __se_sys_mount fs/namespace.c:3390 [inline] __x64_sys_mount+0x27f/0x300 fs/namespace.c:3390 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x460bca Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 dd 87 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 ba 87 fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007fcd291e0a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fcd291e0b20 RCX: 0000000000460bca RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fcd291e0ae0 RBP: 00007fcd291e0ae0 R08: 00007fcd291e0b20 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020012400 Modules linked in: ---[ end trace ccd4be3937a574ba ]--- RIP: 0010:f2fs_ra_meta_pages+0xa51/0xdc0 fs/f2fs/segment.h:657 Code: 08 49 83 ed 01 e9 3f f8 ff ff c7 44 24 18 80 00 00 00 45 31 ff 45 31 f6 31 f6 41 bc 01 00 00 00 e9 cd fb ff ff e8 7f 5f 1d fe <0f> 0b e8 78 5f 1d fe 4c 8b 6c 24 08 be 04 00 00 00 4c 89 ef e8 06 RSP: 0018:ffffc9000a0677a8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: dffffc0000000000 RCX: ffffc900132f2000 RDX: 0000000000040000 RSI: ffffffff8358dec1 RDI: 0000000000000004 RBP: ffff88804711c000 R08: 0000000000000001 R09: ffffea00010b5c37 R10: 0000000000000037 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000601 R14: ffff88809f83e800 R15: 000000000000001e FS: 00007fcd291e1700(0000) GS:ffff8880ae400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056508fe26160 CR3: 000000009010d000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400