linux/drivers/vdpa
Eugenio Pérez 7441d35d14 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:19 -05:00
..
alibaba vdpa: introduce map ops 2025-10-01 07:24:55 -04:00
ifcvf vdpa: introduce map ops 2025-10-01 07:24:55 -04:00
mlx5 vhost: move vdpa group bound check to vhost_vdpa 2026-03-04 07:21:19 -05:00
octeon_ep virtio: vdpa: Fix reference count leak in octep_sriov_enable() 2026-01-02 12:57:28 +01:00
pds vdpa/pds: use %pe for ERR_PTR() in event handler registration 2025-12-18 14:03:24 +01:00
solidrun vdpa: introduce map ops 2025-10-01 07:24:55 -04:00
vdpa_sim vhost: move vdpa group bound check to vhost_vdpa 2026-03-04 07:21:19 -05:00
vdpa_user vduse: Use fixed 4KB bounce pages for non-4KB page size 2025-10-01 07:24:55 -04:00
virtio_pci vdpa: introduce map ops 2025-10-01 07:24:55 -04:00
Kconfig vduse: switch to use virtio map API instead of DMA API 2025-10-01 07:24:55 -04:00
Makefile virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices 2024-07-09 08:42:39 -04:00
vdpa.c vdpa: introduce map ops 2025-10-01 07:24:55 -04:00