linux/drivers/vdpa
Eugenio Pérez ddb5735463 vhost: move vdpa group bound check to vhost_vdpa
[ Upstream commit cd025c1e87 ]

Remove duplication by consolidating these here.  This reduces the
posibility of a parent driver missing them.

While we're at it, fix a bug in vdpa_sim where a valid ASID can be
assigned to a group equal to ngroups, causing an out of bound write.

Cc: stable@vger.kernel.org
Fixes: bda324fd03 ("vdpasim: control virtqueue support")
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20260119143306.1818855-2-eperezma@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-04 07:21:50 -05:00
..
alibaba eni_vdpa: implement vdpa_config_ops.get_vq_size 2024-03-19 02:45:50 -04:00
ifcvf vDPA/ifcvf: Fix pci_read_config_byte() return code handling 2024-11-06 04:40:07 -05:00
mlx5 vhost: move vdpa group bound check to vhost_vdpa 2026-03-04 07:21:50 -05:00
octeon_ep virtio: vdpa: Fix reference count leak in octep_sriov_enable() 2026-01-08 10:14:29 +01:00
pds vdpa/pds: use %pe for ERR_PTR() in event handler registration 2025-12-18 13:55:10 +01:00
solidrun vdpa: solidrun: Fix UB bug with devres 2024-11-06 04:40:07 -05:00
vdpa_sim vhost: move vdpa group bound check to vhost_vdpa 2026-03-04 07:21:50 -05:00
vdpa_user vdpa: Fix IDR memory leak in VDUSE module exit 2025-08-15 12:13:58 +02:00
virtio_pci vp_vdpa: fix id_table array not null terminated error 2024-11-06 04:40:07 -05:00
Kconfig dma-mapping: clearly mark DMA ops as an architecture feature 2024-09-04 07:08:51 +03:00
Makefile virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices 2024-07-09 08:42:39 -04:00
vdpa.c vdpa: support set mac address from vdpa tool 2024-09-10 02:51:48 -04:00