------------[ cut here ]------------ get_vaddr_frames() cannot follow VM_IO mapping WARNING: CPU: 0 PID: 21958 at drivers/media/common/videobuf2/frame_vector.c:63 get_vaddr_frames+0x1e8/0x22c drivers/media/common/videobuf2/frame_vector.c:63 Modules linked in: CPU: 0 PID: 21958 Comm: syz-executor.5 Not tainted 6.5.0-rc7-syzkaller-gfe4469582053 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : get_vaddr_frames+0x1e8/0x22c drivers/media/common/videobuf2/frame_vector.c:63 lr : get_vaddr_frames+0x1e8/0x22c drivers/media/common/videobuf2/frame_vector.c:63 sp : ffff800098fb72f0 x29: ffff800098fb72f0 x28: ffff0000d3bda060 x27: 0000000000000000 x26: dfff800000000000 x25: 1ffff00014d8a800 x24: dfff800000000000 x23: 0000000000100000 x22: 1ffff00014d8a800 x21: ffff8000a6c54004 x20: 00000000fffffff2 x19: ffff800090d43000 x18: 1fffe0003683adc6 x17: ffff80008e09d000 x16: ffff8000803199ec x15: 0000000000000001 x14: 1fffe0003683d530 x13: 0000000000000000 x12: 0000000000000003 x11: 0000000000000001 x10: 0000000000000003 x9 : f5643fe9fb2b1b00 x8 : f5643fe9fb2b1b00 x7 : ffff800080292a1c x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 x1 : ffff80008a6dc4a0 x0 : ffff8001261ea000 Call trace: get_vaddr_frames+0x1e8/0x22c drivers/media/common/videobuf2/frame_vector.c:63 vb2_create_framevec+0x5c/0xd8 drivers/media/common/videobuf2/videobuf2-memops.c:52 vb2_vmalloc_get_userptr+0xfc/0x418 drivers/media/common/videobuf2/videobuf2-vmalloc.c:89 __prepare_userptr drivers/media/common/videobuf2/videobuf2-core.c:1180 [inline] __buf_prepare+0x9b0/0x3708 drivers/media/common/videobuf2/videobuf2-core.c:1422 vb2_core_prepare_buf+0xe4/0x308 drivers/media/common/videobuf2/videobuf2-core.c:1561 vb2_prepare_buf+0xfc/0x174 drivers/media/common/videobuf2/videobuf2-v4l2.c:738 v4l2_m2m_prepare_buf drivers/media/v4l2-core/v4l2-mem2mem.c:823 [inline] v4l2_m2m_ioctl_prepare_buf+0x174/0x428 drivers/media/v4l2-core/v4l2-mem2mem.c:1412 v4l_prepare_buf+0xac/0xd8 drivers/media/v4l2-core/v4l2-ioctl.c:2158 __video_do_ioctl+0x7f4/0xb68 drivers/media/v4l2-core/v4l2-ioctl.c:3046 video_usercopy+0xa00/0x1124 drivers/media/v4l2-core/v4l2-ioctl.c:3387 video_ioctl2+0x3c/0x50 drivers/media/v4l2-core/v4l2-ioctl.c:3441 v4l2_ioctl+0x148/0x18c 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] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x58/0x16c arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 908 hardirqs last enabled at (907): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1378 [inline] hardirqs last enabled at (907): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5133 hardirqs last disabled at (908): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:436 softirqs last enabled at (884): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (884): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (869): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]---