------------[ cut here ]------------ get_vaddr_frames() cannot follow VM_IO mapping WARNING: CPU: 1 PID: 7698 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: 7698 Comm: syz-executor.2 Not tainted 6.1.54-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/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 : ffff8000203f72a0 x29: ffff8000203f72a0 x28: ffff0000d24a9060 x27: 0000000000000000 x26: dfff800000000000 x25: ffff8000203f7618 x24: 1fffe00026400000 x23: dfff800000000000 x22: 1fffe00026400000 x21: ffff000132000004 x20: 00000000fffffff2 x19: ffff8000181d1000 x18: 1fffe000368adf76 x17: ffff8000158ad000 x16: ffff800008305174 x15: ffff0001b456fbbc x14: 1ffff00002b160b0 x13: dfff800000000000 x12: 0000000000000003 x11: ff8080000aad04a8 x10: 0000000000000003 x9 : 62ed0c9d32094200 x8 : 62ed0c9d32094200 x7 : ffff80000827cb08 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 x1 : ffff80001227c340 x0 : ffff80019ed6e000 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_qbuf+0x230/0x10c4 drivers/media/common/videobuf2/videobuf2-core.c:1738 vb2_qbuf drivers/media/common/videobuf2/videobuf2-v4l2.c:816 [inline] vb2_ioctl_qbuf+0x244/0x2b8 drivers/media/common/videobuf2/videobuf2-v4l2.c:1058 v4l_qbuf+0xac/0xd8 drivers/media/v4l2-core/v4l2-ioctl.c:2108 __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: 86 hardirqs last enabled at (85): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline] hardirqs last enabled at (85): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5000 hardirqs last disabled at (86): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (8): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (6): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---