------------[ cut here ]------------ get_vaddr_frames() cannot follow VM_IO mapping WARNING: CPU: 0 PID: 5317 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: 0 PID: 5317 Comm: syz-executor.4 Not tainted 6.1.39-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/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 : ffff80001eac7300 x29: ffff80001eac7300 x28: ffff0000da6ac860 x27: 0000000000000000 x26: dfff800000000000 x25: ffff80001eac7678 x24: 1ffff0000564ca00 x23: dfff800000000000 x22: 1ffff0000564ca00 x21: ffff80002b265004 x20: 00000000fffffff2 x19: ffff800017ee8000 x18: ffff80001eac6700 x17: 0000000000000000 x16: ffff80001211140c x15: 0000000000000000 x14: 0000000000000002 x13: 0000000000000001 x12: 0000000000040000 x11: 000000000003f8ac x10: ffff8000215ec000 x9 : 43420c96fb784f00 x8 : 43420c96fb784f00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001eac6bf8 x4 : ffff8000156b2ac0 x3 : ffff800008586924 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 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: 1386 hardirqs last enabled at (1385): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:261 hardirqs last disabled at (1386): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (230): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (228): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---