------------[ cut here ]------------ get_vaddr_frames() cannot follow VM_IO mapping WARNING: CPU: 1 PID: 4876 at drivers/media/common/videobuf2/frame_vector.c:59 get_vaddr_frames+0x1d8/0x21c drivers/media/common/videobuf2/frame_vector.c:59 Modules linked in: CPU: 1 PID: 4876 Comm: syz-executor.3 Not tainted 6.1.42-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : get_vaddr_frames+0x1d8/0x21c drivers/media/common/videobuf2/frame_vector.c:59 lr : get_vaddr_frames+0x1d8/0x21c drivers/media/common/videobuf2/frame_vector.c:59 sp : ffff800024ec7300 x29: ffff800024ec7300 x28: ffff0000c3fd3860 x27: 0000000000000000 x26: dfff800000000000 x25: ffff800024ec7678 x24: 1ffff0000568ea00 x23: dfff800000000000 x22: 1ffff0000568ea00 x21: ffff80002b475004 x20: 00000000fffffff2 x19: ffff8000181b9000 x18: 1fffe000368ae376 x17: ffff80001589d000 x16: ffff800008304cec x15: ffff0001b4571bbc x14: 1ffff00002b140b0 x13: dfff800000000000 x12: 0000000000000003 x11: ff8080000aacb748 x10: 0000000000000003 x9 : d448dc52598c2600 x8 : d448dc52598c2600 x7 : ffff80000827b5d0 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 x1 : ffff80001226c340 x0 : ffff80019ed80000 Call trace: get_vaddr_frames+0x1d8/0x21c drivers/media/common/videobuf2/frame_vector.c:59 vb2_create_framevec+0x54/0xd0 drivers/media/common/videobuf2/videobuf2-memops.c:50 vb2_vmalloc_get_userptr+0xe8/0x404 drivers/media/common/videobuf2/videobuf2-vmalloc.c:88 __prepare_userptr drivers/media/common/videobuf2/videobuf2-core.c:1194 [inline] __buf_prepare+0x9b0/0x3708 drivers/media/common/videobuf2/videobuf2-core.c:1436 vb2_core_prepare_buf+0xe4/0x308 drivers/media/common/videobuf2/videobuf2-core.c:1575 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:2148 __video_do_ioctl+0x7f4/0xb68 drivers/media/v4l2-core/v4l2-ioctl.c:3037 video_usercopy+0x938/0x10d4 drivers/media/v4l2-core/v4l2-ioctl.c:3384 video_ioctl2+0x3c/0x50 drivers/media/v4l2-core/v4l2-ioctl.c:3431 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:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581 irq event stamp: 1810 hardirqs last enabled at (1809): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline] hardirqs last enabled at (1809): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5000 hardirqs last disabled at (1810): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (1752): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (1752): [] __do_softirq+0xc14/0xea0 kernel/softirq.c:600 softirqs last disabled at (1627): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79 ---[ end trace 0000000000000000 ]---