/linux-6.6.21/include/uapi/linux/ |
D | vfio.h | 147 __u32 argsz; member 206 __u32 argsz; member 272 __u32 argsz; member 535 __u32 argsz; member 585 __u32 argsz; member 741 __u32 argsz; member 776 __u32 argsz; member 810 __u32 argsz; member 859 __u32 argsz; member 890 __u32 argsz; member [all …]
|
D | fpga-dfl.h | 79 __u32 argsz; /* Structure length */ member 99 __u32 argsz; /* Structure length */ member 128 __u32 argsz; /* Structure length */ member 147 __u32 argsz; /* Structure length */ member 229 __u32 argsz; /* Structure length */ member
|
D | iommu.h | 151 __u32 argsz; member
|
/linux-6.6.21/drivers/vfio/ |
D | vfio_main.c | 842 size_t argsz) in vfio_ioctl_device_feature_mig_device_state() argument 853 ret = vfio_check_feature(flags, argsz, in vfio_ioctl_device_feature_mig_device_state() 892 size_t argsz) in vfio_ioctl_device_feature_migration_data_size() argument 901 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_GET, in vfio_ioctl_device_feature_migration_data_size() 919 size_t argsz) in vfio_ioctl_device_feature_migration() argument 929 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_GET, in vfio_ioctl_device_feature_migration() 992 size_t argsz) in vfio_ioctl_device_feature_logging_start() argument 1009 ret = vfio_check_feature(flags, argsz, in vfio_ioctl_device_feature_logging_start() 1077 size_t argsz) in vfio_ioctl_device_feature_logging_stop() argument 1084 ret = vfio_check_feature(flags, argsz, in vfio_ioctl_device_feature_logging_stop() [all …]
|
D | device_cdev.c | 71 if (bind.argsz < minsz || bind.flags || bind.iommufd < 0) in vfio_df_ioctl_bind_iommufd() 168 if (attach.argsz < minsz || attach.flags) in vfio_df_ioctl_attach_pt() 203 if (detach.argsz < minsz || detach.flags) in vfio_df_ioctl_detach_pt()
|
D | vfio_iommu_spapr_tce.c | 791 if (op.argsz < minsz || op.flags) in vfio_spapr_ioctl_eeh_pe_op() 816 if (op.argsz < minsz) in vfio_spapr_ioctl_eeh_pe_op() 878 if (info.argsz < minsz) in tce_iommu_ioctl() 897 if (info.argsz >= ddwsz) in tce_iommu_ioctl() 919 if (param.argsz < minsz) in tce_iommu_ioctl() 986 if (param.argsz < minsz) in tce_iommu_ioctl() 1032 if (param.argsz < minsz) in tce_iommu_ioctl() 1061 if (param.argsz < minsz) in tce_iommu_ioctl() 1125 if (create.argsz < minsz) in tce_iommu_ioctl() 1166 if (remove.argsz < minsz) in tce_iommu_ioctl()
|
D | vfio_iommu_type1.c | 2775 if (info.argsz < minsz) in vfio_iommu_type1_get_info() 2778 minsz = min_t(size_t, info.argsz, sizeof(info)); in vfio_iommu_type1_get_info() 2801 if (info.argsz < sizeof(info) + caps.size) { in vfio_iommu_type1_get_info() 2802 info.argsz = sizeof(info) + caps.size; in vfio_iommu_type1_get_info() 2834 if (map.argsz < minsz || map.flags & ~mask) in vfio_iommu_type1_map_dma() 2856 if (unmap.argsz < minsz || unmap.flags & ~mask) in vfio_iommu_type1_unmap_dma() 2867 if (unmap.argsz < (minsz + sizeof(bitmap))) in vfio_iommu_type1_unmap_dma() 2911 if (dirty.argsz < minsz || dirty.flags & ~mask) in vfio_iommu_type1_dirty_pages() 2941 size_t data_size = dirty.argsz - minsz; in vfio_iommu_type1_dirty_pages()
|
/linux-6.6.21/drivers/iommu/iommufd/ |
D | vfio_compat.c | 173 if (map.argsz < minsz || map.flags & ~supported_flags) in iommufd_vfio_map_dma() 216 if (unmap.argsz < minsz || unmap.flags & ~supported_flags) in iommufd_vfio_unmap_dma() 460 if (info.argsz < minsz) in iommufd_vfio_iommu_get_info() 462 minsz = min_t(size_t, info.argsz, sizeof(info)); in iommufd_vfio_iommu_get_info() 477 if (info.argsz > total_cap_size) in iommufd_vfio_iommu_get_info() 479 info.argsz - total_cap_size); in iommufd_vfio_iommu_get_info() 488 if (last_cap && info.argsz >= total_cap_size && in iommufd_vfio_iommu_get_info() 502 if (info.argsz >= total_cap_size) in iommufd_vfio_iommu_get_info() 504 info.argsz = total_cap_size; in iommufd_vfio_iommu_get_info()
|
/linux-6.6.21/Documentation/userspace-api/ |
D | iommu.rst | 63 structure passed by setting argsz appropriately. 64 Though at the same time, argsz is user provided data which is not 65 trusted. The argsz field allows the user app to indicate how much data 130 __u32 argsz; 138 In order to determine the size and feature set of the user data, argsz 142 A "__u32 argsz" field is *always* at the beginning of each structure. 148 __u32 argsz; 165 VFIO is responsible for checking its own argsz and flags. It then 170 - Generic IOMMU layer checks argsz range based on UAPI data in the 178 - Vendor IOMMU driver checks argsz based on vendor flags. UAPI data [all …]
|
/linux-6.6.21/drivers/vfio/pci/ |
D | vfio_pci_core.c | 308 void __user *arg, size_t argsz) in vfio_pci_core_pm_entry() argument 314 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_SET, 0); in vfio_pci_core_pm_entry() 330 size_t argsz) in vfio_pci_core_pm_entry_with_wakeup() argument 338 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_SET, in vfio_pci_core_pm_entry_with_wakeup() 385 void __user *arg, size_t argsz) in vfio_pci_core_pm_exit() argument 391 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_SET, 0); in vfio_pci_core_pm_exit() 968 if (info.argsz < minsz) in vfio_pci_ioctl_get_info() 971 minsz = min_t(size_t, info.argsz, sizeof(info)); in vfio_pci_ioctl_get_info() 997 if (info.argsz < sizeof(info) + caps.size) { in vfio_pci_ioctl_get_info() 998 info.argsz = sizeof(info) + caps.size; in vfio_pci_ioctl_get_info() [all …]
|
/linux-6.6.21/tools/testing/selftests/iommu/ |
D | iommufd.c | 1432 unmap_cmd.argsz = 1; in TEST_F() 1435 unmap_cmd.argsz = sizeof(unmap_cmd); in TEST_F() 1451 map_cmd.argsz = 1; in TEST_F() 1454 map_cmd.argsz = sizeof(map_cmd); in TEST_F() 1468 info_cmd.argsz = 1; in TEST_F() 1471 info_cmd.argsz = sizeof(info_cmd); in TEST_F() 1612 ASSERT_GE(info_cmd->argsz, info_cmd->cap_offset + sizeof(*cap)); in check_vfio_info_cap_chain() 1620 cap_size = (buffer + info_cmd->argsz) - (void *)cap; in check_vfio_info_cap_chain() 1649 ASSERT_GE(info_cmd->argsz, cap->next + sizeof(*cap)); in check_vfio_info_cap_chain() 1663 .argsz = offsetof(struct vfio_iommu_type1_info, cap_offset), in TEST_F() [all …]
|
/linux-6.6.21/include/linux/ |
D | vfio.h | 123 void __user *arg, size_t argsz); 241 static inline int vfio_check_feature(u32 flags, size_t argsz, u32 supported_ops, in vfio_check_feature() argument 252 if (argsz < minsz) in vfio_check_feature()
|
D | vfio_pci_core.h | 119 void __user *arg, size_t argsz);
|
/linux-6.6.21/drivers/s390/cio/ |
D | vfio_ccw_ops.c | 360 if (info->argsz < sizeof(*info) + caps.size) { in vfio_ccw_mdev_get_region_info() 361 info->argsz = sizeof(*info) + caps.size; in vfio_ccw_mdev_get_region_info() 526 if (info.argsz < minsz) in vfio_ccw_mdev_ioctl() 544 if (info.argsz < minsz) in vfio_ccw_mdev_ioctl() 562 if (info.argsz < minsz || info.index >= VFIO_CCW_NUM_IRQS) in vfio_ccw_mdev_ioctl()
|
/linux-6.6.21/drivers/vfio/cdx/ |
D | main.c | 65 if (info.argsz < minsz) in vfio_cdx_ioctl_get_info() 87 if (info.argsz < minsz) in vfio_cdx_ioctl_get_region_info()
|
/linux-6.6.21/samples/vfio-mdev/ |
D | mdpy.c | 530 if (info.argsz < minsz) in mdpy_ioctl() 555 if (info.argsz < minsz) in mdpy_ioctl() 578 if ((info.argsz < minsz) || in mdpy_ioctl() 602 if (plane.argsz < minsz) in mdpy_ioctl()
|
D | mbochs.c | 1062 ext->base.argsz = sizeof(*ext); in mbochs_get_region_info() 1203 if (info.argsz < minsz) in mbochs_ioctl() 1224 outsz = info.base.argsz; in mbochs_ioctl() 1249 if ((info.argsz < minsz) || in mbochs_ioctl() 1273 if (plane.argsz < minsz) in mbochs_ioctl()
|
D | mtty.c | 1219 if (info.argsz < minsz) in mtty_ioctl() 1244 if (info.argsz < minsz) in mtty_ioctl() 1267 if ((info.argsz < minsz) || in mtty_ioctl()
|
/linux-6.6.21/drivers/vfio/fsl-mc/ |
D | vfio_fsl_mc.c | 138 if (info.argsz < minsz) in vfio_fsl_mc_ioctl() 161 if (info.argsz < minsz) in vfio_fsl_mc_ioctl() 184 if (info.argsz < minsz) in vfio_fsl_mc_ioctl()
|
/linux-6.6.21/Documentation/driver-api/ |
D | vfio.rst | 171 { .argsz = sizeof(group_status) }; 172 struct vfio_iommu_type1_info iommu_info = { .argsz = sizeof(iommu_info) }; 173 struct vfio_iommu_type1_dma_map dma_map = { .argsz = sizeof(dma_map) }; 174 struct vfio_device_info device_info = { .argsz = sizeof(device_info) }; 219 struct vfio_region_info reg = { .argsz = sizeof(reg) }; 230 struct vfio_irq_info irq = { .argsz = sizeof(irq) }; 334 .argsz = sizeof(bind), 342 .argsz = sizeof(attach_data), 427 void __user *arg, size_t argsz); 518 struct vfio_eeh_pe_op pe_op = { .argsz = sizeof(pe_op), .flags = 0 };
|
/linux-6.6.21/drivers/fpga/ |
D | dfl-afu-main.c | 662 if (info.argsz < minsz) in afu_ioctl_get_info() 691 if (rinfo.argsz < minsz || rinfo.padding) in afu_ioctl_get_region_info() 720 if (map.argsz < minsz || map.flags) in afu_ioctl_dma_map() 751 if (unmap.argsz < minsz || unmap.flags) in afu_ioctl_dma_unmap()
|
/linux-6.6.21/drivers/vfio/platform/ |
D | vfio_platform_common.c | 291 if (info.argsz < minsz) in vfio_platform_ioctl() 311 if (info.argsz < minsz) in vfio_platform_ioctl() 333 if (info.argsz < minsz) in vfio_platform_ioctl()
|
/linux-6.6.21/drivers/gpu/drm/i915/gvt/ |
D | kvmgt.c | 1151 if (info.argsz < minsz) in intel_vgpu_ioctl() 1177 if (info.argsz < minsz) in intel_vgpu_ioctl() 1293 if (info.argsz < sizeof(info) + caps.size) { in intel_vgpu_ioctl() 1294 info.argsz = sizeof(info) + caps.size; in intel_vgpu_ioctl() 1322 if (info.argsz < minsz || info.index >= VFIO_PCI_NUM_IRQS) in intel_vgpu_ioctl() 1389 if (dmabuf.argsz < minsz) in intel_vgpu_ioctl()
|
/linux-6.6.21/fs/nilfs2/ |
D | ioctl.c | 847 static const size_t argsz[5] = { in nilfs_ioctl_clean_segments() local 873 if (argv[4].v_size != argsz[4]) in nilfs_ioctl_clean_segments() 893 if (argv[n].v_size != argsz[n]) in nilfs_ioctl_clean_segments()
|
/linux-6.6.21/io_uring/ |
D | io_uring.c | 3574 static int io_validate_ext_arg(unsigned flags, const void __user *argp, size_t argsz) in io_validate_ext_arg() argument 3579 if (argsz != sizeof(arg)) in io_validate_ext_arg() 3587 static int io_get_ext_arg(unsigned flags, const void __user *argp, size_t *argsz, in io_get_ext_arg() argument 3607 if (*argsz != sizeof(arg)) in io_get_ext_arg() 3614 *argsz = arg.sigmask_sz; in io_get_ext_arg() 3621 size_t, argsz) in SYSCALL_DEFINE6() argument 3714 ret2 = io_validate_ext_arg(flags, argp, argsz); in SYSCALL_DEFINE6() 3725 ret2 = io_get_ext_arg(flags, argp, &argsz, &ts, &sig); in SYSCALL_DEFINE6() 3730 argsz, ts); in SYSCALL_DEFINE6()
|