------------[ cut here ]------------ get_vaddr_frames() cannot follow VM_IO mapping WARNING: CPU: 0 PID: 30882 at drivers/media/common/videobuf2/frame_vector.c:63 get_vaddr_frames+0x1fb/0x240 drivers/media/common/videobuf2/frame_vector.c:63 Modules linked in: CPU: 0 PID: 30882 Comm: syz-executor.3 Not tainted 6.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 RIP: 0010:get_vaddr_frames+0x1fb/0x240 drivers/media/common/videobuf2/frame_vector.c:63 Code: 8c 11 ff ff ff 4c 89 ef e8 d2 d5 aa fa e9 04 ff ff ff e8 d8 ea 50 fa c6 05 fd b2 48 07 01 48 c7 c7 c0 6d c1 8b e8 d5 68 17 fa <0f> 0b e9 4b ff ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c 1f ff RSP: 0018:ffffc90015ebf508 EFLAGS: 00010246 RAX: 0c4c6fe897ed0f00 RBX: 1ffff1100e7fd800 RCX: 0000000000040000 RDX: ffffc9000a6f1000 RSI: 0000000000002643 RDI: 0000000000002644 RBP: dffffc0000000000 R08: ffffffff81542432 R09: 1ffff1101730516a R10: dffffc0000000000 R11: ffffed101730516b R12: 00000000fffffff2 R13: ffff888073fec004 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f0e855216c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe36e996c98 CR3: 000000001cd4a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vb2_create_framevec+0x55/0xc0 drivers/media/common/videobuf2/videobuf2-memops.c:52 vb2_vmalloc_get_userptr+0x100/0x410 drivers/media/common/videobuf2/videobuf2-vmalloc.c:88 __prepare_userptr drivers/media/common/videobuf2/videobuf2-core.c:1180 [inline] __buf_prepare+0xc26/0x4460 drivers/media/common/videobuf2/videobuf2-core.c:1422 vb2_core_qbuf+0x2b8/0x1360 drivers/media/common/videobuf2/videobuf2-core.c:1724 vb2_qbuf drivers/media/common/videobuf2/videobuf2-v4l2.c:816 [inline] vb2_ioctl_qbuf+0x28a/0x330 drivers/media/common/videobuf2/videobuf2-v4l2.c:1058 __video_do_ioctl+0xa3e/0xe40 drivers/media/v4l2-core/v4l2-ioctl.c:3048 video_usercopy+0x894/0x1170 drivers/media/v4l2-core/v4l2-ioctl.c:3389 v4l2_ioctl+0x188/0x1d0 drivers/media/v4l2-core/v4l2-dev.c:364 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f0e8487cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0e855210c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f0e8499bf80 RCX: 00007f0e8487cae9 RDX: 0000000020000340 RSI: 00000000c058560f RDI: 0000000000000003 RBP: 00007f0e848c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f0e8499bf80 R15: 00007ffe93867e78