------------[ cut here ]------------ get_vaddr_frames() cannot follow VM_IO mapping WARNING: CPU: 1 PID: 5400 at drivers/media/common/videobuf2/frame_vector.c:63 get_vaddr_frames drivers/media/common/videobuf2/frame_vector.c:63 [inline] WARNING: CPU: 1 PID: 5400 at drivers/media/common/videobuf2/frame_vector.c:63 get_vaddr_frames+0x220/0x230 drivers/media/common/videobuf2/frame_vector.c:36 Modules linked in: CPU: 1 PID: 5400 Comm: syz-executor.0 Not tainted 6.4.0-rc7-next-20230623-syzkaller-g8d2be868b42c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:get_vaddr_frames drivers/media/common/videobuf2/frame_vector.c:63 [inline] RIP: 0010:get_vaddr_frames+0x220/0x230 drivers/media/common/videobuf2/frame_vector.c:36 Code: a5 0a fb e9 06 ff ff ff e8 3d a5 0a fb e9 cd fe ff ff e8 a3 82 b7 fa 48 c7 c7 c0 83 40 8b c6 05 7f 03 c7 07 01 e8 30 dc 7e fa <0f> 0b e9 53 ff ff ff 66 0f 1f 84 00 00 00 00 00 41 57 41 56 41 55 RSP: 0018:ffffc9000566f778 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8880763a4000 RCX: 0000000000000000 RDX: ffff888025441dc0 RSI: ffffffff814c6687 RDI: 0000000000000001 RBP: ffff8880763a4004 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 00000000fffffff2 R13: 0000000000000000 R14: 0000000021000000 R15: ffff888022977000 FS: 00007f29460d0700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffebf6c0bb8 CR3: 000000006f27a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vb2_create_framevec+0x62/0xd0 drivers/media/common/videobuf2/videobuf2-memops.c:52 vb2_vmalloc_get_userptr+0x13b/0x530 drivers/media/common/videobuf2/videobuf2-vmalloc.c:89 __prepare_userptr+0x6a6/0x1630 drivers/media/common/videobuf2/videobuf2-core.c:1180 __buf_prepare+0x602/0x7d0 drivers/media/common/videobuf2/videobuf2-core.c:1422 vb2_core_qbuf+0xc79/0x14e0 drivers/media/common/videobuf2/videobuf2-core.c:1724 vb2_qbuf+0x13d/0x1d0 drivers/media/common/videobuf2/videobuf2-v4l2.c:816 vb2_ioctl_qbuf+0xff/0x140 drivers/media/common/videobuf2/videobuf2-v4l2.c:1058 v4l_qbuf drivers/media/v4l2-core/v4l2-ioctl.c:2118 [inline] v4l_qbuf+0x96/0xc0 drivers/media/v4l2-core/v4l2-ioctl.c:2112 __video_do_ioctl+0xba6/0xf20 drivers/media/v4l2-core/v4l2-ioctl.c:3046 video_usercopy+0x4bf/0x14c0 drivers/media/v4l2-core/v4l2-ioctl.c:3387 v4l2_ioctl+0x1bd/0x250 drivers/media/v4l2-core/v4l2-dev.c:364 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x19d/0x210 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x466459 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f29460d0188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RDX: 0000000020000140 RSI: 00000000c058560f RDI: 0000000000000004 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffcdfce488f R14: 00007f29460d0300 R15: 0000000000022000