linux-yocto/drivers/vfio/pci
Artem Sadovnikov 9ffc8ba21c vfio/mlx5: fix possible overflow in tracking max message size
[ Upstream commit b306019848 ]

MLX cap pg_track_log_max_msg_size consists of 5 bits, value of which is
used as power of 2 for max_msg_size. This can lead to multiplication
overflow between max_msg_size (u32) and integer constant, and afterwards
incorrect value is being written to rq_size.

Fix this issue by extending integer constant to u64 type.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Suggested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Artem Sadovnikov <a.sadovnikov@ispras.ru>
Reviewed-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/20250701144017.2410-2-a.sadovnikov@ispras.ru
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-20 18:41:30 +02:00
..
hisilicon vfio/pci: Do vf_token checks for VFIO_DEVICE_BIND_IOMMUFD 2025-08-15 16:39:21 +02:00
mlx5 vfio/mlx5: fix possible overflow in tracking max message size 2025-08-20 18:41:30 +02:00
nvgrace-gpu vfio/pci: Do vf_token checks for VFIO_DEVICE_BIND_IOMMUFD 2025-08-15 16:39:21 +02:00
pds vfio/pci: Do vf_token checks for VFIO_DEVICE_BIND_IOMMUFD 2025-08-15 16:39:21 +02:00
qat vfio/pci: Do vf_token checks for VFIO_DEVICE_BIND_IOMMUFD 2025-08-15 16:39:21 +02:00
virtio vfio/pci: Do vf_token checks for VFIO_DEVICE_BIND_IOMMUFD 2025-08-15 16:39:21 +02:00
Kconfig PCI: Add CONFIG_MMU dependency 2025-04-23 15:40:30 -05:00
Makefile vfio/qat: Add vfio_pci driver for Intel QAT SR-IOV VF devices 2024-04-29 13:25:41 -06:00
trace.h
vfio_pci_config.c vfio/pci: Virtualize zero INTx PIN if no pdev->irq 2025-04-14 08:31:45 -06:00
vfio_pci_core.c vfio/pci: Do vf_token checks for VFIO_DEVICE_BIND_IOMMUFD 2025-08-15 16:39:21 +02:00
vfio_pci_igd.c vfio/pci: match IGD devices in display controller class 2025-02-27 11:30:07 -07:00
vfio_pci_intrs.c vfio/pci: Handle INTx IRQ_NOTCONNECTED 2025-03-17 15:15:17 -06:00
vfio_pci_priv.h vfio/pci: match IGD devices in display controller class 2025-02-27 11:30:07 -07:00
vfio_pci_rdwr.c vfio/pci: Expose setup ROM at ROM bar when needed 2025-01-06 08:09:54 -07:00
vfio_pci_zdev.c Merge remote-tracking branch 'mlx5/mlx5-vfio' into v6.1/vfio/next 2022-09-08 10:44:34 -06:00
vfio_pci.c vfio/pci: Do vf_token checks for VFIO_DEVICE_BIND_IOMMUFD 2025-08-15 16:39:21 +02:00