linux/drivers/vdpa
Dan Carpenter 2874211fcd vdpa/mlx5: Fix pointer math in mlx5_vdpa_get_config()
There is a pointer math bug here so if "offset" is non-zero then this
will copy memory from beyond the end of the array.

Fixes: 1a86b377aa ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200808093241.GB115053@mwanda
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Eli Cohen <elic@nvidia.com>
Cc: Jason Wang <jasowang@redhat.com>; Parav Pandit <parav@mellanox.com>; virtualization@lists.linux-foundation.org; linux-kernel@vger.kernel.org; kernel-janitors@vger.kernel.org
Fixes: 1a86b377aa ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
2020-08-10 09:01:21 -04:00
..
ifcvf vdpa: Modify get_vq_state() to return error code 2020-08-05 19:00:23 -04:00
mlx5 vdpa/mlx5: Fix pointer math in mlx5_vdpa_get_config() 2020-08-10 09:01:21 -04:00
vdpa_sim vdpa_sim: init iommu lock 2020-08-10 08:44:47 -04:00
Kconfig vdpa/mlx5: Add VDPA driver for supported mlx5 devices 2020-08-05 19:00:24 -04:00
Makefile vdpa/mlx5: Add support library for mlx5 VDPA implementation 2020-08-05 19:00:23 -04:00
vdpa.c vdpa: remove hard coded virtq num 2020-08-05 18:39:18 -04:00