------------[ cut here ]------------ get_vaddr_frames() cannot follow VM_IO mapping WARNING: CPU: 1 PID: 4173 at drivers/media/common/videobuf2/frame_vector.c:59 get_vaddr_frames drivers/media/common/videobuf2/frame_vector.c:59 [inline] WARNING: CPU: 1 PID: 4173 at drivers/media/common/videobuf2/frame_vector.c:59 get_vaddr_frames+0x1ac/0x1c0 drivers/media/common/videobuf2/frame_vector.c:35 Modules linked in: CPU: 1 PID: 4173 Comm: syz-executor.0 Not tainted 6.1.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:get_vaddr_frames drivers/media/common/videobuf2/frame_vector.c:59 [inline] RIP: 0010:get_vaddr_frames+0x1ac/0x1c0 drivers/media/common/videobuf2/frame_vector.c:35 Code: ff 89 44 24 04 e8 94 17 c4 fb 8b 44 24 04 e9 e6 fe ff ff 48 c7 c7 80 75 2f 8a 89 44 24 04 c6 05 51 e8 58 07 01 e8 fa cb dc 02 <0f> 0b 8b 44 24 04 e9 41 ff ff ff 66 0f 1f 84 00 00 00 00 00 48 b8 RSP: 0018:ffffc9000503f898 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888073cdf000 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000004 RDI: fffff52000a07f05 RBP: ffff888073cdf004 R08: 0000000000000001 R09: ffff8880b9b2896b R10: ffffed101736512d R11: 0000000000000000 R12: ffff888073cdf000 R13: 0000000000000001 R14: 0000000000096000 R15: 0000000000000000 FS: 00007fd1ee5cf700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056436efe2048 CR3: 000000007a710000 CR4: 0000000000350ee0 Call Trace: vb2_create_framevec+0x4c/0x90 drivers/media/common/videobuf2/videobuf2-memops.c:50 vb2_vmalloc_get_userptr+0x116/0x460 drivers/media/common/videobuf2/videobuf2-vmalloc.c:88 __prepare_userptr+0x736/0x17c0 drivers/media/common/videobuf2/videobuf2-core.c:1159 __buf_prepare+0x4b4/0x650 drivers/media/common/videobuf2/videobuf2-core.c:1401 vb2_core_prepare_buf+0xb5/0x210 drivers/media/common/videobuf2/videobuf2-core.c:1540 v4l2_m2m_prepare_buf+0xad/0x170 drivers/media/v4l2-core/v4l2-mem2mem.c:823 __video_do_ioctl+0x97d/0xbe0 drivers/media/v4l2-core/v4l2-ioctl.c:3037 video_usercopy+0x508/0x1360 drivers/media/v4l2-core/v4l2-ioctl.c:3384 v4l2_ioctl+0x18e/0x210 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+0x123/0x190 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:0x7fd1ed88c0a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd1ee5cf168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd1ed9abf80 RCX: 00007fd1ed88c0a9 RDX: 0000000020000300 RSI: 00000000c058565d RDI: 0000000000000003 RBP: 00007fd1ed8e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe57c9727f R14: 00007fd1ee5cf300 R15: 0000000000022000