get_vaddr_frames() cannot follow VM_IO mapping WARNING: CPU: 0 PID: 3630 at drivers/media/common/videobuf2/frame_vector.c:59 get_vaddr_frames drivers/media/common/videobuf2/frame_vector.c:59 [inline] WARNING: CPU: 0 PID: 3630 at drivers/media/common/videobuf2/frame_vector.c:59 get_vaddr_frames+0x1f2/0x200 drivers/media/common/videobuf2/frame_vector.c:35 Modules linked in: CPU: 0 PID: 3630 Comm: syz-executor512 Not tainted 6.1.0-rc7-syzkaller-00159-ga1e9185d20b5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:get_vaddr_frames drivers/media/common/videobuf2/frame_vector.c:59 [inline] RIP: 0010:get_vaddr_frames+0x1f2/0x200 drivers/media/common/videobuf2/frame_vector.c:35 Code: 4d 4c fb e9 0b ff ff ff e8 7b 4d 4c fb e9 d2 fe ff ff e8 71 35 00 fb 48 c7 c7 60 43 1b 8b c6 05 78 bc bc 07 01 e8 7b 98 27 03 <0f> 0b e9 56 ff ff ff 0f 1f 80 00 00 00 00 41 57 41 56 41 55 41 54 RSP: 0018:ffffc90003437760 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8880782dd000 RCX: 0000000000000000 RDX: ffff88807e0ea240 RSI: ffffffff8164964c RDI: fffff52000686ede RBP: ffff8880782dd004 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: 00000000fffffff2 R13: 0000000000000000 R14: 0000000000000000 R15: ffff88807bbe4800 FS: 000055555683d300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005d84c8 CR3: 000000007e276000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vb2_create_framevec+0x59/0xd0 drivers/media/common/videobuf2/videobuf2-memops.c:50 vb2_vmalloc_get_userptr+0x128/0x520 drivers/media/common/videobuf2/videobuf2-vmalloc.c:88 __prepare_userptr+0x31e/0x1580 drivers/media/common/videobuf2/videobuf2-core.c:1159 __buf_prepare+0x5e4/0x780 drivers/media/common/videobuf2/videobuf2-core.c:1401 vb2_core_qbuf+0xab6/0x14b0 drivers/media/common/videobuf2/videobuf2-core.c:1703 vb2_qbuf+0x139/0x1a0 drivers/media/common/videobuf2/videobuf2-v4l2.c:816 v4l2_m2m_qbuf+0x18e/0x900 drivers/media/v4l2-core/v4l2-mem2mem.c:773 v4l_qbuf drivers/media/v4l2-core/v4l2-ioctl.c:2108 [inline] v4l_qbuf+0x96/0xc0 drivers/media/v4l2-core/v4l2-ioctl.c:2102 __video_do_ioctl+0xb9d/0xe20 drivers/media/v4l2-core/v4l2-ioctl.c:3037 video_usercopy+0x3b8/0x17f0 drivers/media/v4l2-core/v4l2-ioctl.c:3384 v4l2_ioctl+0x1b7/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+0x197/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:0x7fa99fb7ac49 Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe853717c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa99fb7ac49 RDX: 0000000020000300 RSI: 00000000c058560f RDI: 0000000000000003 RBP: 00007fa99fb3edf0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa99fb3ee80 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000