WSL2-Linux-Kernel/drivers/vdpa/vdpa_sim
Dan Carpenter 1f97b97850 vdpasim: Off by one in vdpasim_set_group_asid()
The > comparison needs to be >= to prevent an out of bounds access
of the vdpasim->iommu[] array.  The vdpasim->iommu[] is allocated in
vdpasim_create() and it has vdpasim->dev_attr.nas elements.

Fixes: 87e5afeac247 ("vdpasim: control virtqueue support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Message-Id: <YotGQU1q224RKZR8@kili>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
2022-05-31 12:45:10 -04:00
..
Makefile vdpa: add vdpa simulator for block device 2021-05-03 04:55:53 -04:00
vdpa_sim.c vdpasim: Off by one in vdpasim_set_group_asid() 2022-05-31 12:45:10 -04:00
vdpa_sim.h vdpasim: control virtqueue support 2022-05-31 12:45:08 -04:00
vdpa_sim_blk.c vdpa: Enable user to set mac and mtu of vdpa device 2021-11-01 05:26:49 -04:00
vdpa_sim_net.c vdpasim: control virtqueue support 2022-05-31 12:45:08 -04:00